AmiBroker AFL Developer (Pattern Engine framework + Backtesting System) , Multi-leg pattern system (2, 3, 4 legs),multi time frame Analysis

Job ID: 40413119

Budget: ₹15,000 – ₹40,000 INR

Hiring: Advanced AmiBroker AFL Developer (Pattern Engine + Backtesting System)
(Project document attached)

I am building a professional-grade trading engine based on a custom multi-leg pattern framework with multi-variable logic and future scalability.

This is a high-complexity project.
Do NOT apply if you are a beginner or only work on simple indicators.

---
PROJECT OVERVIEW

- Multi-leg pattern engine system (2, 3, 4 legs)
- Parameter derived multi variable
- Each leg follows strict rules:
- Same color candles only (no mixing)
- Direction-based structure (up/down)
- Reversal logic:
- Half reversal
- Full reversal
- Dynamic entry, stop loss, and target logic

This is a pattern engine, not a fixed indicator.

---
CORE REQUIREMENTS

You must have strong experience in:

- AmiBroker AFL (advanced level)
- Sequential / multi-leg pattern coding
- Backtesting systems with realistic execution
- Handling complex trading logic (not just indicators)

---

BACKTESTING REQUIREMENTS (CRITICAL)

You must ensure:

- No repainting
- No look-ahead bias
- Candle-by-candle execution logic

System must include:

- Slippage handling
- Spread consideration
- Execution timing logic
- Accurate entry/exit simulation

Backtest results must be as close as possible to real market behavior.

---
CODE EXPECTATIONS

- Modular and scalable structure
- Parameter-based (NOT hardcoded)
- Ability to expand into multi-variable combinations
- Clean and optimized code

---
TEST TASK (MANDATORY)

Before selection, you must complete the following task:

2-LEG PATTERN SYSTEM

Build a 2-leg pattern in AmiBroker AFL with the following rules:

1. Leg 1 (Directional Move)
- Continuous move in one direction
- Minimum 5 candles
- All candles must be same color only (all bullish or all bearish)

2. Leg 2 (Reversal Move)
- Opposite direction of Leg 1
- Minimum 5 candles
- All candles must be same color only
---

LOOKBACK CONDITION

- Pattern must form at Top or Bottom
- Use Lookback = 20 candles:
- Top = highest high in last 20 candles
- Bottom = lowest low in last 20 candles

---

REVERSAL LOGIC

HALF REVERSAL

- Leg 2 retraces partially
- Does NOT cross start of Leg 1

Example:
Leg 1: 100 → 70
Leg 2: 70 → 90

Entry: At end of Leg 2
Stop Loss: End of Leg 1
---
FULL REVERSAL
- Leg 2 crosses beyond start of Leg 1
- Must CLOSE beyond it

Example:
Leg 1: 100 → 70
Leg 2: 70 → 105

Entry: At close of Leg 2
Stop Loss: End of Leg 1
---

ADDITIONAL RULES
- No repainting
- No future data usage
- Proper sequential logic

---
OUTPUT REQUIREMENTS

- Plot both legs clearly (color-coded)
- Mark:
- Entry
- Stop Loss
- Identify:
- Half vs Full reversal
---

SUBMISSION
Provide:
1. AFL Code
2. Brief explanation of logic
3. Chart screenshot with plotted pattern

---

MANDATORY QUESTIONS (ANSWER TO APPLY)
1. How do you prevent repainting in AFL?
2. How do you avoid look-ahead bias in backtesting?
3. How do you simulate slippage and execution issues?
4. Have you built any multi-leg or sequential systems before?

---

DO NOT APPLY IF:
- You don’t understand trading execution
- You cannot handle complex logic systems
- You rely on repainting indicators
- You have only basic AFL knowledge
---

GOAL
To build a high-accuracy, scalable trading engine where:
- Backtest ≈ Real market behavior
- No logical errors
- Ready for multi-variable expansion

---
Only experienced and serious developers should apply.