Build a Custom Trading Algorithm (Trendline Breakout System) for TradingView or NinjaTrader

Job ID: 39983363

Budget: $8 – $15 USD

Summary

My Trading Strategy (Clear, Mechanical Rules)
Market:
Primarily Gold Futures (XAU/USD or GC)
Sometimes NQ or FX pairs
System will be optimized for the Asia session
Entry Logic (Breakout System)
Identify fractals (standard 2-left, 2-right or custom if needed).
Draw dynamic trendlines between the most recent fractal highs or fractal lows.
When price breaks a trendline, check the following filters:
Must be in the direction of the 50 EMA slope (EMA is the bias).
Ignore signals if price is chopping through the EMA rapidly.
Use an ATR buffer for the breakout entry:

ATR(14) × 2 = stop distance
ATR(14) × 1 = minimum breakout buffer
Allow me to adjust these inputs.
Entry triggers when price closes beyond the trendline + ATR buffer.
Stop Loss & Take Profit
Default RR = 1:1
Option to trail stop immediately using ATR × 2.
Stop loss anchored at breakout candle’s opposite side OR based on ATR (user configurable).
Close trade early if price closes back inside the trendline area (fakeout filter).
Additional Filters
Ability to turn filters on/off:
No entry if candle breaks too far beyond the trendline (distance filter).
Time filter (only trade during Asia session hours).
Candle body % filter (avoid huge candles).
Volume filter (optional).
Exit Conditions
Take profit hit
Stop loss hit
Trailing stop
Candle closes back beyond the trendline (fakeout exit)
Features Needed
Full custom inputs for ATR, fractal size, EMA period, risk/reward, times allowed to trade
Visual drawing: trendlines, entry markers, stop/TP lines
Alerts for entries/exits
Backtest capability with performance metrics

Deliverables
Develop a NinjaTrader bot
Implement trading algorithms
Test and optimize the bot