adr_adr

Simple MACD Strategy

adr_adr Обновлено   
This simple MACD strategy takes in account a given a time frame and the basic MACD parameters ( short, long, signal values).
The current implementation does not takes persistance or thresholds in accounts.
Информация о релизе:
EMA open instead of close value in calculation
Информация о релизе:
Option for choosing open / close for ema calculation function
Информация о релизе:
Custom label in for EMA input switch
Информация о релизе:
Strategy update:
  • after the long trade closed it automatically opens a short trade until the next MACD crossover, when short is closed and long is opened.
Информация о релизе:
Updated switch for Short and Long strategy options
Информация о релизе:
Long Short switch update
Информация о релизе:
"Short only" option added to strategy types
Информация о релизе:
Multiple updates issued:
  • Threshold values implementation, which can offset the MACD histogram crossing value. Eg.: thresholdUp: +10 => Long open triggers at MACD histogram value 20
  • Persistance implementation, which sets a history offset after crossing over threshold
  • Gekko strategy mode for using thresholdUp/thresholdDown and persistence
  • Plotting persistance - last bar since cross
Информация о релизе:
This update merges the previously developed threshold and persistence values into the basic Long/Short/Long&Short strategies.

All strategy types are currently supporting the original Gekko MACD strategy parameters. If you don't need threshold and persistence values use zero values in those parameters.

Changelog:
  • Pyramiding OFF by default
  • Initial capital set to 6500 by default
  • Long/Short/Long&Short final startegies implemented
  • Bars since buy/sell are calculated and plotted based on threshold and persistence
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом, вы можете свободно им пользоваться. Можно добавить его в избранное и использовать на графике. Вы не можете просматривать или менять его исходный код.
Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать этот скрипт на графике?