Pubblico anche io un codice che mi ha dato discrete soddisfazioni ma che ho abbandonato
con qualche idoneo filtro secondo me andrebbe alla grande
se volete provarci voi, aspetto con fiducia
Lavora con l'oscillatore CHANDE TRENDSCORE, long quando tocca il valore 10, short reverse il valore -10, lavora il ts in intraday, con sl e profit.
Ho trovato la soluzione migliore con il fib sul tf 2 minuti
se c'è qualcuno di buona volontà che me lo testa con uno storico a 2 minuti a diversi anni....sarebbe un grande!
Codice:
Var: miavar(0),MioMOV1,MioCHTRENDS0;
MioCHTRENDS0 = CHTRENDS(c);
MioMOV1 = MOV(MioCHTRENDS0, 21, 0, 0, 0);
if (MioCHTRENDS0 = 10) and (MioCHTRENDS0[1] < 10) and t>902 and t<1700 and c>c[1] and c>c[2] Then
If PositionDir = -1 Then
ExitShort(nextBar, atOpen);Endif;
EnterLong(nextBar, atOpen);
installstoploss (intick,15, "stopp");
installtakeprofit (intick,8, "profit");Endif;
If t>1701 then ExitShort(nextBar, atOpen); endif;
if (MioCHTRENDS0 = -10) and (MioCHTRENDS0[1] > -10) and t>902 and t<1700 and c<c[1] and c<c[2] Then
If PositionDir = 1 then
ExitLong(nextBar, atOpen); Endif;
EnterShort(nextBar, atOpen);
installstoploss (intick,15, "stopp");
installtakeprofit (intick,8, "profit");Endif;
If t>1701 then ExitLong(nextBar, atOpen); endif;