I need somebody with prior experience in amibroker afl language to write a relatively simple afl code for me.
I am using Amibroker 5.0 so the code should work with this version.
1. The purpose of the code is to locate a “Bullish Divergent Bar” (BDB) on the chart.
Definition of a “Bullish Divergent Bar” (BDB) is a bar that has a lower low than previous bar and closes in the top half of the bar.
Refer to figure 1.0 on the attachment.
2. We are only interested in BDB that closes below the green line on the chart. The code and definition of this green line will be given to you, so you do not need to worry about it. Once a BDB that is below the green line is found, put a mark on it.
Refer to figure 2.0 on the attachment
3. I need to be able to do a scan on this. You should help me by providing instructions on how to do this on Amibroker.