Advanced AFL Trend Strategy Coding

Job ID: 39810059

Budget: ₹100 – ₹400 INR

I need my detailed trend-following rule set turned into a single, well-structured AFL script that can run flawlessly in Amibroker’s real-time environment. The logic is already mapped out in pseudocode and spreadsheets; your task is to translate it into efficient Amibroker Formula Language, integrate several indicators, and embed the custom calculations I will provide.

The finished code has to stream real-time data, trigger non-repainting entry and exit signals, manage pyramiding, and calculate dynamic position sizing based on volatility filters. All variables should be parameterised so I can fine-tune the look-back periods, stop levels, and risk percentages directly from the Parameter window.

Deliverables:
• Fully commented AFL file ready for real-time execution
• Parameter block with sensible defaults and input validation
• Brief implementation notes outlining any assumptions and the best way to optimise or extend the script

Acceptance criteria:
1. Script compiles with zero errors or warnings in Amibroker 6.x.
2. Real-time chart displays entry/exit arrows and text alerts exactly as in my reference screenshots.
3. CPU load remains reasonable when applied to a 200-symbol watchlist on tick data.

If you have deep AFL experience with advanced, multi-indicator systems and can keep the code clean and extensible, I’d love to hand this over to you right away.