Comment on Managing your Script

majorkkr commented on 02 Mar 2017, 09:12 PM

Hello Nitin ,
I am Zerodha user id ZT9357
can you please help in giving tradescript code for Pi alert and scan for BUY SCRIPT SELL SCRIPT EXIT LONG EXIT SHORT
low price = A, open price = B, high price = C
IF D<E generate a Buy call
IF D<E generate a Sell call

IF {(B-(B=C)-1} generate Exit long and generate Sell Call
IF {(B+(B=A)+1} generate Exit Short and generate Buy Call

IF {B+(B*0.75)} generate Exit long
IF {B-(B*0.75)} generate Exit Short

View the full comment thread »