• Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)

XauUsd M5 Superscalper source code

Суть советника (XAU Impulse Scalper):

Это сеточный скальпинговый робот для золота (XAUUSD) , работающий на быстрых импульсах цены.

  1. Вход в рынок: Ловит резкое движение за последние 9 секунд (импульс от 60 пунктов). Подтверждает вход по индикатору SAR и уровням полос Боллинджера, выставляя отложенные ордера (Buy Stop/Sell Stop).
  2. Сетка: Если цена идет против первой позиции, робот доливает сетку (до заданного количества заказов, например, до 4-х или 8-ми), усредненную цену.
  3. Закрытие (Главная фишка):
    • Тейк-профит: Закрывает всю корзину при получении общей прибыли (например, 10$).
    • PBBC (Закрытие счетной прибыли): Если общая прибыль корзины достигает целей, робот закрывает только убыточные приказы, о введении прибылей на рынке (или закрывает все).
  4. Защита: встроенный трейлинг-стоп, фильтр по максимальному спреду и защита по просадке депозита (если эквити падает ниже заданного %, новые входы блокируются).
  5. Панель: Красивая инфо-панель в графике со статистикой (баланс, просадка, прибыль за сегодня/вчера/месяц, статус).
Коротко: Импульсный вход -> усреднение сеткой -> закрытие всей корзины или убыточных позиций за счёт профита.
 

Attachments

Суть советника (XAU Impulse Scalper):

Это сеточный скальпинговый робот для золота (XAUUSD) , работающий на быстрых импульсах цены.

  1. Вход в рынок: Ловит резкое движение за последние 9 секунд (импульс от 60 пунктов). Подтверждает вход по индикатору SAR и уровням полос Боллинджера, выставляя отложенные ордера (Buy Stop/Sell Stop).
  2. Сетка: Если цена идет против первой позиции, робот доливает сетку (до заданного количества заказов, например, до 4-х или 8-ми), усредненную цену.
  3. Закрытие (Главная фишка):
    • Тейк-профит: Закрывает всю корзину при получении общей прибыли (например, 10$).
    • PBBC (Закрытие счетной прибыли): Если общая прибыль корзины достигает целей, робот закрывает только убыточные приказы, о введении прибылей на рынке (или закрывает все).
  4. Защита: встроенный трейлинг-стоп, фильтр по максимальному спреду и защита по просадке депозита (если эквити падает ниже заданного %, новые входы блокируются).
  5. Панель: Красивая инфо-панель в графике со статистикой (баланс, просадка, прибыль за сегодня/вчера/месяц, статус).
Коротко: Импульсный вход -> усреднение сеткой -> закрытие всей корзины или убыточных позиций за счёт профита.
Overview of the Expert Advisor (XAU Impulse Scalper):

This is a grid-based scalping robot designed for gold (XAUUSD) that operates by capitalizing on rapid price impulses.

Market Entry: It detects sharp price movements occurring over the last 9 seconds (an impulse of at least 60 points). Entry is confirmed using the Parabolic SAR indicator and Bollinger Bands, with the robot placing pending orders (Buy Stop/Sell Stop).
Grid Strategy: If the price moves against the initial position, the robot adds to the grid—up to a pre-set number of orders (e.g., 4 or 8)—to average out the entry price.
Exit Strategy (Key Feature):
Take-Profit: The robot closes the entire basket of trades once a specific total profit target (e.g., $10) is reached.
PBBC (Profit-Based Basket Closing): When the total profit of the basket hits a target, the robot can close only the losing positions (using the accumulated profit) or exit all open trades.
Risk Management: Includes a built-in trailing stop, a maximum spread filter, and drawdown protection (if equity falls below a specified percentage, new entries are blocked).
Dashboard: An intuitive, well-designed on-chart information panel displaying key statistics, such as account balance, drawdown, profit (for today, yesterday, and the current month), and the robot's operational status.
In short: Impulse-based entry → grid-based averaging → closing the entire basket or offsetting losing positions using the generated profit.
 
Saya dapet source code ea ini, sudah coba bt hasil bagus. Sy coba pake live account dlm 3 hari dapet sekitar 250%, hari ke 4 MC. Ternyata tidak ada stop loss (ga tau saya apakah ada sl tapi gak work).

Buat para suhu, barangkali berminat utk oprek ini ea, supaya ada stop loss yg work, boleh beraksi
here is a MT5 version that I converted from the Scalper Bot. with option to choose to use SAR strategy or Bollinger Bands strategy, and resuslts are going to be the same in backtest or Real account.
 

Attachments

Need help with the team who can modify this mq5 to work on demo / REAL account
here is grow scalper, originally was waygrow ea, ea was placing only buy orders, any way I got this fixed:
EA is runing fine on live account, spread 10-11 points, don't use broker with high spread, will eat your profits, also dynamic trailling has to be adjusted, don't have time now, it's late in my neck of woods, see what settings you think are good.
What I changed to fix the buy-only problem


  • The Envelopes bands are fixed: lower band uses PRICE_LOW, upper band uses PRICE_HIGH.
  • The EA now skips any tick where the indicator isn’t ready or the bands are crossed (low >= high). That stops a zero or bad value from forcing one direction.
  • Indicator handles are created once in OnInit and released in OnDeinit, instead of being created on every tick.
  • Failed orders now print trade.ResultRetcode() and its description.

Other fixes


  • Position management (trailing, break-even, hidden TP) now runs even when the indicators aren’t ready.
  • InpFilter (140) is used for entries when you’re flat. Before, it was always overwritten by the value 11.
  • The time filter handles overnight windows.
  • The fake spread-commission calculation is gone.
  • Slippage is raised from 3 to 30 points, because 3 is too tight for gold.
  • The fill mode is set from the symbol.
  • Lot rounding follows the broker’s lot step.

Gold settings to check


  • Lot size: with the old defaults the EA traded 1.0 lot every time, which is 100 oz on gold. I changed it to UseMM=false, FixedLots=0.01, MinLots=0.01. Change these back if you really want 1.0 lot.
  • Points: all the inputs are in points. On most gold symbols (2 digits) 1 point = $0.01, so Pending_Limit=150 is $1.50 and Active_TrailingStop=9 is 9 cents. Those small values only matter when UseATR=false. With ATR on, stops, trailing and hidden TP follow the ATR instead.
  • Broker digits: if your broker quotes 3 digits, multiply the point-based inputs by 10.
  • Band width: Env_deviation=0.1 means 0.1% of price. With gold around $4,000 that’s about $4 each side. Tune this to taste.
  • Time filter: the 9:00–23:59 window uses broker server time.
 

Attachments

Back
Top