TradingView
03.freeman
Sep 5, 2018 11:48 AM

MTF stochastic strategy 

Euro Fx/U.S. DollarFXCM

Description

This strategy is based on MTF strategy found on Forex Factory forum and published by bobby2 (credits to him).
This is quite simple but need improvement to work properly:
1- it is made for 5 min chart
2- when 15min stochastic cross above 50 and 5min stochastic is rising, buy
3- when 15min stochastic cross below 50 and 5min stochastic is falling, sell

Release Notes

Major update:
- Updated to pinescript version 4
- Now strategy works with any timeframe;
- MTF is calculated based on current timeframe: if current TF is 30min, MTF is set automatically to 60min;
- MTF stoch is smoothed using linear regression.

Overall performances are very good in terms of profit factor, drawdown and net profit.
Comments
chrisgermano
Thanks for sharing, but have you found a solution for all the repainting? I turned this into a study with signal, completely different results. Cheers
italo_1
@chrisgermano, Hello - Can you share the fixed code for the study and with signals ?
PineScrib
There is a bug on this strategy. Strategy.exit is not set correctly. As a result, tradingview calculate exit strangely :
at the higher value of candle of same long entry candle
at the lowest value of candle for same short entry candle.

Of course then results look awesome.
tradinginchile
tienes más información, algún video?
faith_defender
Hello. I am not understand how to interpret "when 15min stochastic cross above 50 and 5min stochastic is rising, buy" and vice versa. I know what the 50 line is, but Which is the 15m line and the 5 m line? Which color? Can you help? thank you
d14b0ll0s
Thank you, much appreciated!
More