Hi !
I'm trying to adjust buyprice so stoporder to initiate long could be executed at more correct price if we have gap . It is as simple as possible but still doesn't work, price is not adjusted. Could someone help ?
entrylongprice=Ref( HHV(High,100) ,-1);
Buy=(High>entrylongprice);
if ( (LastValue(O)>LastValue(entrylongprice)) ) {entrylongprice= O;}
BuyPrice=entrylongprice;
Thanks a lot in advance..