Hai fatto un copia & incolla errato probabilmente, lo riporto qui, ma forse è meglio se importi il file ITF allegato al link che hai indicato sopra:
|
//parameters : boxsize = 50 once topprice = close once bottomprice = close - boxsize*ticksize*2 if(close > topprice + boxsize*2) THEN topprice = close bottomprice = topprice - boxsize*2 ELSIF (close < bottomprice - boxsize*2) THEN bottomprice = close topprice = bottomprice + boxsize*2 ELSE topprice = topprice bottomprice = bottomprice ENDIF RETURN topprice as "box top", bottomprice as "bottom box" |