ROSSA= close < open VERDE= close > open TecSpikeGiu= verde[1] and rossa [0] and High > high[1] and (open <= Close [1] + delta or open >= Close [1] - delta) //DELTA = DIFF TRA CLOSE PRECEDENTE E OPEN ATTUALE TecSpikeSu= rossa[1] and verde [0] and low < low[1] and (open >= (Close [1] + delta) or open <= (Close [1] - delta)) If TecSpikeGiu then IngressoShort = Open-1 Stopp=High+2 Ri = (Stopp)-(IngressoShort) Tgt = IngressoShort-abs(Ri*RRT)//RRT= RISCK REWARD TARGET drawtext ("®Short",barindex,HIGH +(5*PIPSIZE),SansSerif,Bold,20)coloured (200,0,0,1000) drawtext ("Sell",barindex,open-1,SansSerif,Standard,15)coloured (0,0,0,1000) drawtext ("S-t-o-p",barindex,HIGH+2 ,SansSerif,Standard,15)coloured (0,0,0,1000) drawtext (Ri,barindex,HIGH-1 ,SansSerif,Standard,15)coloured (0,0,0,1000) drawtext ("T-g-t",barindex,Tgt, SansSerif,Standard,15)coloured (0,0,0,1000) SIGNAL = -2 elsif TecSpikeSu then IngressoLong = Open+1 Stopp=Low-2 Ri = (IngressoLong)-(Stopp) Tgt =IngressoLong+abs(Ri*RRT) drawtext ("®Long",barindex,LOW - (5*PIPSIZE),SansSerif,Bold,20)coloured (0,100,0,1000) drawtext ("Buy",barindex,open+1,SansSerif,Standard,15)coloured (0,0,0,1000) drawtext ("S-t-o-p",barindex,low-2 ,SansSerif,Standard,15)coloured (0,0,0,1000) drawtext (Ri,barindex,Low+1,SansSerif,Standard,15)coloured (0,0,0,1000) drawtext ("T-g-t",barindex,Tgt, SansSerif,Standard,15)coloured (0,0,0,1000) SIGNAL = +2 ELSE SIGNAL = 0 endif return