miércoles, 10 de junio de 2020

x Emanuele
ti metto il ts che parlavamo ieri
tiene in memoria i massimi e minimi di ogni ora

Var: wmax,wmin;


if isfirstbarday then
   WMAX=H;
   WMIN=L;
   else
   WMAX=iif(H>=WMAX[1],H,WMAX[1]);
   WMIN=iif(L<=WMIN[1],L,WMIN[1]);
endif;
////////////////////////////////////////
if t=1000 then wmax=h;endif;
if t=1100 then wmax=h;endif;
if t=1200 then wmax=h;endif;
if t=1300 then wmax=h;endif;
if t=1400 then wmax=h;endif;
if t=1500 then wmax=h;endif;
if t=1600 then wmax=h;endif;
if t=1700 then wmax=h;endif;

if t=1000 then wmin=l;endif;
if t=1100 then wmin=l;endif;
if t=1200 then wmin=l;endif;
if t=1300 then wmin=l;endif;
if t=1400 then wmin=l;endif;
if t=1500 then wmin=l;endif;
if t=1600 then wmin=l;endif;
if t=1700 then wmin=l;endif;

PlotChart(WMAX,0, green, solid, 2);
PlotChart(WMIN,0, red, solid, 2);
DrawText(3,0 ,D ,wmax , "max.orario=",wmax , green, 10, 2+3,Alright);
DrawText(2,0 ,D ,wmin , "min.orario=",wmin , red, 10, 2+3,Alright);

se vuoi ho anche la versione che plotta in una zona sotto tutti i livelli orari...fammi sapere


2 comentarios:

  1. Ciao Bruno, come faccio ora a dire al ts di entrare ad esempio: entra long se il prezzo è più alto della barre delle ore 12? Io pensavo che bastava scrivere (if c>(t=1200) then
    EnterLong(nextbar,atopen);
    endif;). Grazie mille Emanuele

    ResponderEliminar

 era dal 26 marzo che i sistemi non si posizionavano long...oggi lo han fatto...area 21.90 posizionano il 1º take profit