How to start with the code?

Hi. I am very new in Amibroker and its AFL code. I want to plot recent swing high and swing low on the chart but unable to understand how to approach. I tried to have reference , some are not matching my needs, some unable to understand the code. Can any help with a proper reference or anything else. Thank you.

Did you try this:

I tried chatGpt for the code using some basic prompt, but unable to have desired result. Its hallucinating. Though i didn't upload AmiBroker user guide, but will try for the same.

I have one more question, can you suggest a practical roadmap to be efficient in AFL.

@ImRaN , welcome to this community.

I described some useful resources I used to learn AFL in a previous post).

One resource I still highly recommend is the AmiBroker Knowledge Base. Go through the archived articles carefully: study each one in detail. Then, as a way to actively build your understanding and memory, try rewriting the formulas from scratch without looking back at the original code.
This kind of hands-on practice really helps reinforce what you've learned.

2 Likes

Uploading users guide is absolutely crucial to get correct answers. Also Gemini 2.5 pro is way better than OpenAi Chatgpt

2 Likes

Thank u. I shall try this.

Thank you. Will try this.