TradingView
LonesomeTheBlue
21 Şub 2019 10:10

MACD Enhanced System MTF with optional TSL and Alerts [LTB] 

Euro Fx/U.S. DollarFXCM

Açıklama

This script is developed to analyse MACD, MACD Signal, MACD Histogram movements by using current and higher time frame. Script calculates higher time frame automatically, no manuel entry. there is trailing stop loss line that is optional.

You can change the parameters as you wish.

btw. you should know that MACD is more successful when there is a trend.

I already shared this as a strategy script. Some ppl wanted to see the code.
You might want to see strategy test => tr.tradingview.com/script/PA2ndF2Q/


by LonesomeTheBlue [LTB]

Sürüm Notları

.

Sürüm Notları

Stop Loss Line removed.

Sürüm Notları

Fix for repainting issue and higher time frame correction for weekly chart
Yorumlar
ryanr317
Great strategy and thanks for sharing. If you add this indicator to a chart that already has the same strategy you shared applied, the alert is delayed by 2 to 3 bars. This is with the same MACD settings. Is there a way to remove the alert lag on the indicator so it more closely matches the strategy? Thanks
LonesomeTheBlue
This indicator may have repaint issue, and signals may push you to give wrong decisions. better not use it.
JordanBRX
Is not the same that with stop line and I couldn't put in strategy tester...
aciriaco
the strategy "enhanced macd" you developed, has triggers that appear before this indicator. so i guess this one doesn't make much sense to exist. any chance to access the strategy code, to compile it with other indicators?
LonesomeTheBlue
@aciriaco, both of them may have repaint issue. you can use it but possible to make wrong decisions
Chtoesli
@LonesomeTheBlue, Please tell me what is the higher timeframe for 5 minutes? One hour? What is the logic?
LonesomeTheBlue
@Chtoesli, below you can see the table. if current period is 5 minutes then htf is 15 minutes.
period == '1' ? '5'
period == '3' ? '15'
period == '5' ? '15'
period == '15' ? '60'
period == '30' ? '60'
period == '45' ? '60'
period == '60' ? '240'
period == '120' ? '240'
period == '180' ? '240'
period == '240' ? 'D'
period == 'D' ? 'W'
period == 'W' ? '5W'
dpanday
Screenshot 2019-02-21 at 17.41.33
dpanday
Unfortunately i have to say it repaints heavy
Daha Fazla