Bearish and bullish candles?
-
I am planing to program an indicator needing to determine the candle status(bearish or bullish). how can I code this?
-
As you may understand, the definition of bearish and bullish may be clear to you, but may not be so obvious for some other people.
For example:
- Is it bullish because the high of the day is higher than the high of previous day?
There are many more variants ... but for example for that case you would compare:
self.data.high[0]
againstself.data.high[-1]
-
@backtrader
I mean that the candle is increasing is bullish ( its open is lower than its close). -
self.data.open < self.data.close
? -
@backtrader
Thanks for your help.
Is there any indicator that I can use to code my indicator regarding bearish and bullish candle as i explained above? -
There is no indicator, you have to code the comparison of the points you want as pointed out above
@backtrader said in Bearish and bullish candles?:
self.data.open < self.data.close