INVITE-ONLY SCRIPT

Amazin FX Bot 2

20
What this strategy does

This strategy implements a UT-style ATR trailing stop with a simple flip logic:

Long bias when price is above the dynamic ATR stop and a 1-period EMA crosses above the stop.

Short bias when price is below the stop and the 1-EMA crosses below it.

Once in a position, the script attaches a bracket: stop-loss and take-profit expressed in ticks from the average fill price.

Optional Heikin-Ashi source can be used to smooth signals (calculated via request.security() — no lookahead).

It’s designed to be simple, reproducible, and easy to optimize on intraday charts.

How to use

Add to chart (any market/timeframe). Default settings are conservative.

Choose source:

Keep Heikin-Ashi = off to use the regular chart price, or

Turn Heikin-Ashi = on to compute signals from HA close (entries/exits can shift vs. regular candles—this is expected).

Set your brackets in ticks:

Stop Loss (ticks)

Take Profit (ticks)

These are multiplied by the symbol’s syminfo.mintick.

Position sizing:

Contracts per trade controls fixed size. (Pyramiding is off—one position per side.)

Backtest window:

Use From and To dates to constrain the test to a specific period.

Run the backtest and tune inputs.

Alerts (optional): create a strategy alert with “Order fills only” to be notified on entries/exits.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.