jeudi 2 mars 2017

Tradescript code for zerodha pi

can you please help in giving tradescript code for Pi alert and scan for BUY SCRIPT SELL SCRIPT EXIT LONG EXIT SHORT
Logic:
low price = A, open price = B, high price = C
B-A=D
B-C=E
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


Tradescript code for zerodha pi

1 commentaire: