TradingView
vitelot
19 de Dic. de 2018 19:53

MA cross strategy Vts 

Canadian Dollar/Swiss FrancFXCM

Descripción

The simple Moving average cross strategy is here implemented.
I guess there are multitudes of similar scripts around.
I post this one since I was asked by some friends, and I'll let it free to use for anybody.
Here you can choose the year where to start backtesting, the source, the type of MA, the SL and TP multiplicators of ATR, for which you can also choose the averaging period.
Feel free to modify this script. I would be grateful if you could preserve the first lines of comments including my user names.
The MA cross strategies can be very effective, especially when used on the daily TF.
Try for example the combo EMA15-EMA30 SL=1.5ATR TP=1ATR on EURCHF daily to get an impressive 83% win ratio.
Or EMA20-EMA81 on the GBPCHF to get an 87%.
In those cases where EMA does not perform well, try to set a less lagging MA, like the Hull MA.
I hope you like this script so that you could push the like button multiple (odd) times and you start following me.
I've got a bunch of other interesting scripts to share.
Comments and suggestions are welcome.

Notas de prensa

1) added Tenkan lines
2) no need to treat JPY differently

Notas de prensa

// March 2019:
// nr of traded lots adjusted according to SL and risk
// cleaner trade management, avoid superposed trades
// added ema200 filter: if active long possible only when ema200 is increasing
// short only if it decreases
// cleaner code
Comentarios
hanko75
Nice work V.
BrentMcDonald
@hanko75, Agreed. This is awesome mate. Thanks for your contribution to the discord channel.
View4U
Using this indicator along with a LBR trading strategy is making for an even better and ALOT more profitable technique. This Indicator has been giving me a GREAT edge in my trading !
vitelot
@View4U, I'm really happy to hear that. Thanks.
FXPDM
Great work as always, I really love this indicator specially because I relay a lot on MA Cross as triggers for upcoming trends. But I been having a hard time undestanding de diferecne between activating the tab of recarlculating after the order is filled. In sime cases my strategy even revers to negative and other more thank doubles de profit. I'm I missing something or misinterpreting the results.
FXPDM
@FXPDM, Spelling corrected :) Great work as always, I really love this indicator especially because I rely a lot on MA Cross as triggers for upcoming trends. But I been having a hard time understanding de difference between activating the tab of recalculating after the order is filled. In some cases, my strategy even revers to negative and other more than doubles de profit. I'm I missing something or misinterpreting the results.
vitelot
@FXPDM, Hello. Which tab are you referring to? perhaps the EMA filter?
If so, that tab forces the trades to be long if the price is over the EMA and to be short if price is below the EMA.
Of course, you should expect completely different results. Usually, that filter is useful but not always.
FXPDM
@vitelot, thanks for the answer, is not the tap for EMA200 filter, this one under properties, not imputado, on the bottom it give you the option to check recalculate ether “after order is filled” or “on every tick”. The tick ones doesn’t alter the results but the one after order is filled make a lot of extra mini trades that give you a lot more winners or losers. Just having a hard time getting the logic behind it. thanks
Pardon3000
Hello, I installed, but there aren't any signals?
Más