Hi hmp,
Pls add the following lines for 0.2% of high/low
t1= Flip(Buy,Sell);
t2= Flip(Sell,Buy);
BPrice=ValueWhen(t1 AND Ref(t1,-1)==0,C,1);
SPrice=ValueWhen(t2 AND Ref(t2,-1)==0,C,1);
buySLpercent=Bprice*0.002;
SellSLpercent=Sprice*0.002;
Buyplus=(Bprice+buySLpercent)...