Check syntax whether it generate "Buy" and "Short" signal at same price and make this price "refrence price" in afl

syntax:

Buy=Short=ref(LastValue(),1)=open>close

the above syntax is not correct. please specify your condition in brief.

want to generate “Buy” and “short” signal at same current market price and make this price as reference price…