Only users who purchased or rented the product can leave comments
Nguyen Xuan Danh Tran  

XD_FlashScalpEA 

Example 1 – SELL Strategy (Basic Setup)

  • Current XAUUSD price: 4113

  • Highest price in the last 27 H1 candles: 4220

  • Lowest price in the last 27 H1 candles: 4070

  • Range = 4220 − 4070 = 150

You want to SELL in the upper 30% zone (~45 points), i.e. 4220–4175.
Each trade takes +2 USD profit, with lot = 0.02 and max total SELL = 0.2 lots.
EA will auto close all if price breaks above 4220.

→ Input parameters:

  • Strategy = SELL

  • Lot per trade = 0.02

  • Max total lot = 0.2

  • Step % to add position = 0.3

  • Profit per trade (USD) = 2

  • Bars for range max/min = 27

  • % Band max/min = 30


Example 2 – SELL Strategy with Reset Condition

Same as Example 1, but adds reset logic.
If a SELL entry opens below 4175, the EA sets flag = false and waits until price returns to the mid-zone (≈50% of 30% band) → around 4193–4175, before reactivating new SELL trades.

→ Input parameters:

  • Strategy = SELL

  • Bars for range max/min = 27

  • % Band max/min = 30

  • % to reset max/min range = 50


Example 3 – SELL Strategy (No Band Trading)

EA ignores high/low bands and trades directly by market logic.
The upper/lower band zones are disabled.

→ Input parameters:

  • Strategy = SELL

  • % Band max/min = 0 // disable band trading


Example 4 – SELL Strategy with Stop Conditions

Same setup as Example 2, but adds stop limits:

  • StopLoss price = 4250 → stop trading if price breaks above 4250

  • TakeProfit price = 4000 → close all when price hits 4000

  • Total profit target (USD) = 1000 → close all when total profit ≥ 1000 USD

→ Input parameters:

  • Strategy = SELL

  • Bars for range max/min = 27

  • % Band max/min = 30

  • % to reset max/min range = 50

  • StopLoss price = 4250

  • TakeProfit price = 4000

  • Total profit target (USD) = 1000


Example 5 – Dual EAs (SELL & BUY on Same Account)

Run two EAs at the same time on one account:

  • SELL EA → Magic = 123

  • BUY EA → Magic = 124

Each EA works in its own zone and resets independently.
When % to reset = 50, there are 3 key points:

  1. SELL Zone (Upper 30%) – EA opens SELLs in 4220–4175

  2. BUY Zone (Lower 30%) – EA opens BUYs in 4070–4115

  3. Reset Zone (50%) – EA waits for price to return halfway (~4193–4175 for SELL) before reactivating

→ Setup steps:

  1. Open two charts (same symbol, e.g. XAUUSD).

  2. Attach the EA to each.

  3. Chart #1 → Strategy = SELL, EA_MAGIC = 123

  4. Chart #2 → Strategy = BUY, EA_MAGIC = 124

→ Input parameters:

  • SELL EA:

    • Strategy = SELL

    • EA_MAGIC = 123

    • % Band max/min = 30

    • % to reset max/min range = 50

  • BUY EA:

    • Strategy = BUY

    • EA_MAGIC = 124

    • % Band max/min = 30

    • % to reset max/min range = 50


Example 6 – Remote Control via Pending Orders (Advanced)

After mastering EA operations, you can control it remotely from your phone by placing special pending orders (Buy/Sell Stop or Limit).
EA reads commands based on the EA_MAGIC + code format.

Example:
To pause SELL trading remotely, place this order on your phone:

SELL LIMIT 123113 // 123 = EA_MAGIC, 113 = command code

  • Lot size can be any (ignored by EA).

  • EA detects and deletes the pending order after executing the command.

  • If syntax is valid → executes instantly.

  • If invalid → order remains after 3 seconds = syntax error.

💡 Tip:
To view all available Remote Control codes and commands,
open the EA menu → HELP inside MetaTrader.

→ Command summary:

  • Format: [Order Type] [EA_MAGIC][code]

  • Works with BUY/SELL Stop or Limit

  • EA auto-executes and deletes valid commands

  • Useful for emergency stop, start, or switch BUY/SELL from phone