When the Supertrend closes below the Price, a Buy signal may be generated, and when the Supertrend closes above the Price, a Sell signal can be generated.
BUY : When current close crossed above PSAR and current close greater than supertrend and EMA 9 period is greater than EMA 21 period.
SELL : When current close is less than PSAR and current close is less than supertrend and EMA 15 period crossed above ema 9 period.
BUY{ set ma1 = EMA(CLOSE,9); set ma2 = EMA(CLOSE,21); set st = SUPERTREND(10,2,SIMPLE); set ps = PSAR(0.2,0.02); CROSSOVER(CLOSE,ps) and CLOSE > st and ma1 > ma2;}
LONGEXIT{ set ma1 = EMA(CLOSE,9); set ma2 = EMA(CLOSE,15); set st = SUPERTREND(10,2,SIMPLE); set ps = PSAR(0.2,0.02); ps > CLOSE and CLOSE < st and CROSSOVER(ma2,ma1);}