Wanted help in framing a query with the below criteria.
A bullish or bearish candle is formed in a 2 min time frame near a 20 moving average
Wanted help in framing a query with the below criteria.
A bullish or bearish candle is formed in a 2 min time frame near a 20 moving average
For PI EA and Backtest. Use
Buy
CLOSE > OPEN AND CLOSE > EMA(CLOSE, 20)
Sell
OPEN > CLOSE AND CLOSE < EMA(CLOSE, 20)
@coder_kamal thanks Kamal ji for the quick help…
I have moved to Streak, is it possible to do it here ?
It should be possible on the streak platform. Streak Expert should followup on the thread.
Hi @vikram1
You can implement the following conditions
Bearish candle:
Close lower than Open AND Close Lower then 20 EMA
OR
Close lower than Open AND Close higher then 20 EMA
The first 2 conditions are for a red candle below 20 exponential moving average. The next 2 conditions are for a red candle above the EMA 20. Accordingly, you can create conditions for green candle above and below EMA.