x utente sotto..ciao
ti metto codice ts..estrae e tiene in memoria i massimi di ogni operazione long
alla riga 21 se togli i due // ti azzera totalmente il valore( schiaccia un pò il grafico)
[code]
Var: wmax,wmin,wmed,vp1,vp2;
Var: miavar(0),MioSUPERTREND0,maxLastLong;
if isfirstbarday then
WMAX=H;
WMIN=L;
else
WMAX=iif(H>=WMAX[1],H,WMAX[1]);
WMIN=iif(L<=WMIN[1],L,WMIN[1]);
WMED=wmax-(wmax-wmin)*0.5;
endif;
PlotChart(WMAX,0, green, dot, 1);
PlotChart(WMIN,0, red, dot, 1);
DrawText(2,0 ,D ,wmax , "max.intraday=",wmax , green, 10, 2+3,Alleft);
DrawText(3,0 ,D ,wmin , "min.intraday=",wmin , red, 10, 2+3,Alleft);
/////////////////////////////////////////////////////////////////////////////////
if positiondir=1 then maxLastLong=Wmax;endif;
//if positiondir=0 then maxLastLong=0;endif;
MioSUPERTREND0 = SUPERTREND(C, 10, 3);
PlotChart(MioSUPERTREND0, 0, BLUE, solid, 3);
if C > MioSUPERTREND0 then EnterLong(NextBar, AtOpen); endif;
if C < MioSUPERTREND0 then ExitLong(NextBar, AtOpen); endif;
vp1 = Createviewport(550);
Plotchart(maxLastLong,VP1,GREEN,solid,2);
DrawText(1,vp1 ,D ,maxLastLong , "maxUltimoLong",maxLastLong , red, 10, 2+3,Alleft);
[/code]
ti metto codice ts..estrae e tiene in memoria i massimi di ogni operazione long
alla riga 21 se togli i due // ti azzera totalmente il valore( schiaccia un pò il grafico)
[code]
Var: wmax,wmin,wmed,vp1,vp2;
Var: miavar(0),MioSUPERTREND0,maxLastLong;
if isfirstbarday then
WMAX=H;
WMIN=L;
else
WMAX=iif(H>=WMAX[1],H,WMAX[1]);
WMIN=iif(L<=WMIN[1],L,WMIN[1]);
WMED=wmax-(wmax-wmin)*0.5;
endif;
PlotChart(WMAX,0, green, dot, 1);
PlotChart(WMIN,0, red, dot, 1);
DrawText(2,0 ,D ,wmax , "max.intraday=",wmax , green, 10, 2+3,Alleft);
DrawText(3,0 ,D ,wmin , "min.intraday=",wmin , red, 10, 2+3,Alleft);
/////////////////////////////////////////////////////////////////////////////////
if positiondir=1 then maxLastLong=Wmax;endif;
//if positiondir=0 then maxLastLong=0;endif;
MioSUPERTREND0 = SUPERTREND(C, 10, 3);
PlotChart(MioSUPERTREND0, 0, BLUE, solid, 3);
if C > MioSUPERTREND0 then EnterLong(NextBar, AtOpen); endif;
if C < MioSUPERTREND0 then ExitLong(NextBar, AtOpen); endif;
vp1 = Createviewport(550);
Plotchart(maxLastLong,VP1,GREEN,solid,2);
DrawText(1,vp1 ,D ,maxLastLong , "maxUltimoLong",maxLastLong , red, 10, 2+3,Alleft);
[/code]
No hay comentarios:
Publicar un comentario