PROTECTED SOURCE SCRIPT
已更新 Simple MACD Strategy

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.
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提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。