Please Help me out

Dear Experts,
With help of my friends i have created few strategies when i am testing i got sell & buy at same time for same script in scanner
buy script -price + volume
(CLOSE > REF(CLOSE,1) * 1.01 AND VOLUME > REF(VOLUME,1) * 2 ) OR
(CLOSE > REF(CLOSE,1) * 1.01 AND VOLUME > SMA(VOLUME,5) * 1.5)
sell script-price +volume
(CLOSE < REF(CLOSE,1) * 0.99 AND VOLUME > REF(VOLUME,1) * 2) OR
(CLOSE < REF(CLOSE,1) * 0.99 AND VOLUME > SMA(VOLUME,5) * 1.5)

kindly correct above code. Also with help of friends i have created few codes but everything works same way

Please

1 Like

Try adding exit criteria for both buy and sell with the following code and see if you get different results:
LAST >= REF(LAST,1) OR LAST<REF(LAST,1)

Hai,
thank you, I placed your suggestion
but same thing happening

can you verify and if any mistake in the code can you please correct

Can you please tell me what logic you want to implement so that we can verify if the code is doing what it’s supposed to be doing?

Dear Member,

I need condition that buy volume increase + price increase & Sell volume increase & price decrease

Ok let me try it out by tonight and get back to you.