Pi Code required for below strategy

Sir,
I need code for below mentioned condition.

Buy:
Close should be above EMA 13 close
Stacastic momentum index 13,2,3,9 buy cross over
Stacastic momentum index 13,25,3,9 buy cross over
ADX 13 - buy cross ( DI) over
ADX 13 - Value should be in the range of 20 - 30

For the above given condition

CLOSE > EMA(CLOSE,13) AND SOPK(9, 3, 9, SIMPLE) > 80 OR
SOPD(9, 3, 9, SIMPLE) > 80 AND DIP(13) > 30 AND DIP(13) > 20

1 Like