help
Visto che ci sono tanti bravi programmatori in VT, ne approfitto per chiedere un aiuto a migliorare sto TS che gira sul fib orario.
Sto provando da giorni ma non riesco a migliorarlo...molte sono le cose che non vanno....ad es. la percentuale di Vincite è troppo bassa.
Metto il listato sperando che qualcuno possa aiutare me e poi tutti Voi...visto che lo condivido.
Grazie
Var: su,sd,ema1,ema2,miostop,delta,som,lin;
su=hhv(h,3);
sd=llv(l,3);
ema1=mov(su,29,e);
ema2=mov(sd,29,e);
If c>lin then miostop=L;
endif;
if c<lin then miostop=H;
endif;
//installstoploss(inperc,2.5,"stop");
InstallTrailingProfit(INperc,3,1.5,"TP",checkmax + exitonlyifcloseon);
//InstalltakeProfit(INperc,4, "take");
if c>ema1[1] then
delta=1;
Som=delta;
elseif c<ema2[1] then
delta=-1;
som=delta;
else
delta=0;
som=som[1];
endif;
if som=1 then
lin=ema1;
else
lin=ema2;
endif;
if c>lin and c>=o then enterlong(nextbar,atopen);
endif;
if positiondir=1 and c<miostop then exitlong(bar,atclose);
endif;
if c<lin and c<=o then entershort(nextbar,atopen);
endif;
if positiondir=-1 and c>miostop then exitshort(bar,atclose);
endif;
plotchart(lin,0,black,solid,1);