AFL help needed for candlestick chart


Well-Known Member
Hi Friends -Just started getting my hands dirty on AFL.

I am not able to understand about how do I code for this?

1. On a 5 min intraday chart, skip first two candles of the day?

2. Now note high of second candle (Candle2) if it is bullish, or low if the candle is bearish and then generate an alert if price reaches rs. 1 less than high of candle2or rs.1 greater than low of candle2. And generate one more alert when price touches high of candle2 if going long or low of candle2 if going short.

3. If price does not touch either side, then we use the newly formed candle as our entry candle and repeat step2 .

Any help here would be highly appreciated...

Similar threads