if B and B[1] and B[2] and (R) > (2*MOV(R,30,s)) and V > ( 3*MOV(V,30,s)) then enterlong(nextbar,atopen);endif;
if W and W[1] and W[2] and R > (2*MOV(R,30,s)) and V > ( 3*MOV(V,30,s)) then entershort(nextbar,atopen);endif;
installtakeprofit(INTICK,12);
installstoploss(INTICK,25);
testato con questa formula