EA MT5 Pyramiding Grid Trader

MQL5 전문가

명시

📑 Specification – Directional Grid EA (MQL5)

Name of the EA 7126.01

1. Purpose of the EA

A directional grid Expert Advisor that opens positions only in the chosen direction (LONG or SHORT), never using limit orders.
All positions are triggered exclusively via STOP orders (Buy Stop in bullish scenario, Sell Stop in bearish scenario).


2. Entry Logic

Bullish scenario (Direction = Long):

  • No BUY LIMIT orders allowed.

  • The first order is a BUY STOP placed at the defined price (InitialEntryPrice).

  • Each new BUY STOP is placed above the last executed order, spaced by GridSpacing points.

  • If the price goes down → no new orders are added.

  • New BUY STOP orders are only placed when the price moves back up and breaks above higher levels again.

Bearish scenario (Direction = Short):

  • No SELL LIMIT orders allowed.

  • The first order is a SELL STOP placed at the defined price (InitialEntryPrice).

  • Each new SELL STOP is placed below the last executed order, spaced by GridSpacing points.

  • If the price goes up → no new orders are added.

  • New SELL STOP orders are only placed when the price moves back down and breaks below lower levels again.


3. Lot Management (Pyramiding)

  • Initial lot size and money  (Lot0) is calculated according to a risk percentage (RiskPercent) and money 

Formula:

Lot0 = (AccountBalance * RiskPercent) / (SL_Points * ValuePerPoint) Lot_n = Lot0 * (PyramidFactor ^ n)

  • MaxLevels limits the total number of open positions.


4. Take Profit System

  • A global close occurs when the price pulls back by one standard deviation (σ) from the last reached level.

  • This means multiple positions (e.g., 4, 5 or 6) may be closed simultaneously on a 1σ pullback.

Example: If 6 positions are open and the price retraces 1σ → all positions are closed at market.


5. BreakEven (BE) Option

  • When the global profit reaches a defined threshold (BE_Trigger in $ or %), the global stop is moved to the weighted average price of the open positions (VWAP) + a buffer (BE_Buffer points).

  • At that stage, the risk becomes zero.


6. Stop Loss

  • A global stop loss must be configurable (SL_Points) and applied to all grid positions.

  • Option: individual stop loss per order (enabled/disabled by parameter).


7. User Parameters (Inputs)

  • Direction (Long/Short)

  • InitialEntryPrice (price of the first STOP order, otherwise current price)

  • RiskPercent (e.g., 1.0)

  • SL_Points (e.g., 200)

  • GridSpacing (points, e.g., 100)

  • PyramidFactor (e.g., 1.5)

  • MaxLevels (e.g., 6)

  • TP_Mode (1σ = standard deviation pullback)

  • BE_Trigger (net profit to activate BE, in $ or %)

  • BE_Buffer (margin in points above VWAP)


8. Numerical Example (LONG scenario)

  • Account = $16,000

  • RiskPercent = 1 % ($160)

  • SL = 200 points

  • GridSpacing = 100 points

  • PyramidFactor = 1.5

  • MaxLevels = 4

Lot0 = 160 ÷ 200 = 0.8 lots
Lot1 = 0.8 × 1.5 = 1.2 lots
Lot2 = 1.8 lots
Lot3 = 2.7 lots
→ Total ≈ 6.5 lots max

  • If 4 levels are reached and the price retraces by 1σ → all positions are closed.

  • If profit > BE_Trigger (e.g., $200) → SL is moved to VWAP + BE_Buffer.


파일:

PNG
1.PNG
73.4 Kb
PNG
2.PNG
65.6 Kb
PNG
3.PNG
42.8 Kb

응답함

1
개발자 1
등급
(13)
프로젝트
17
18%
중재
3
67% / 0%
기한 초과
0
무료
2
개발자 2
등급
(10)
프로젝트
13
15%
중재
0
기한 초과
1
8%
작업중
3
개발자 3
등급
(401)
프로젝트
588
53%
중재
29
55% / 24%
기한 초과
7
1%
작업중
4
개발자 4
등급
(11)
프로젝트
12
8%
중재
1
0% / 0%
기한 초과
3
25%
로드됨
5
개발자 5
등급
(295)
프로젝트
525
35%
중재
63
33% / 35%
기한 초과
189
36%
로드됨
6
개발자 6
등급
프로젝트
1
0%
중재
1
100% / 0%
기한 초과
0
무료
7
개발자 7
등급
(496)
프로젝트
738
56%
중재
47
32% / 30%
기한 초과
117
16%
작업중
게재됨: 1 코드
8
개발자 8
등급
(163)
프로젝트
193
48%
중재
2
50% / 50%
기한 초과
1
1%
무료
9
개발자 9
등급
(206)
프로젝트
333
35%
중재
64
13% / 56%
기한 초과
87
26%
무료
10
개발자 10
등급
(9)
프로젝트
18
39%
중재
1
0% / 100%
기한 초과
3
17%
작업중
11
개발자 11
등급
(164)
프로젝트
212
20%
중재
18
44% / 17%
기한 초과
0
작업중
비슷한 주문
I am looking for a developer experienced in MQL5 and/or Python to build a system that automatically replicates trades from the Vantage Copy Trading section (web/app only) into an external MT5 account (different broker) . Main requirements: The system must read trades (symbol, buy/sell direction, lot size, SL/TP) from the Vantage Copy portal (accessible only via mobile app or web browser). The same trades must be
Vortex Pro – Multi-Asset Scalping EA Unlock fast, precise, and professional trading with Vortex Pro, the ultimate scalping EA for MT4 & MT5. Trade Forex, Indices, and Metals with advanced price action, momentum, and breakout detection. Works on Windows, macOS, Android & iOS Fully compatible with any broker and symbol format Optimized for M1, M5, M15, M30, and H1 Advanced trade management: SL/TP, trailing stop
Cześć, szukam programisty MQL4 do stworzenia uniwersalnego eksperta (EA) opartego na Smart Money Concepts (SMC). EA ma działać na różnych instrumentach – złocie, indeksach, walutach – ale przede wszystkim na złocie. Kluczowe jest, żeby EA otwierał zlecenia idealnie w szczytach i dołkach, czyli w punktach zwrotnych rynku. Chodzi mi o to, by wejścia były maksymalnie precyzyjne, a nie spóźnione. EA powinien używać
We are looking for an experienced developer to help us convert our existing Pine Script strategy into a functional Expert Advisor (EA) for MetaTrader. The strategy is already built and tested on TradingView, but we require a reliable EA version that can be deployed for live and demo trading. The ideal candidate should have strong expertise in both Pine Script and MQL4/MQL5, with proven experience in converting
This EA is a trading assistant to make trade entries convenient and consistent. EA enters trade at bar close (00 seconds) based on time, not ticks. The trader prepares the EA to Buy/Sell by arming it using large square on-chart buttons. BUY (prepares a buy entry at end of candle at 00 seconds) CANCEL (immediately cancels existing arming for this symbol) SELL (prepares a sell entry at end of candle at 00 seconds) Max
Hello Developers, I am looking for a profitable Expert Advisor (EA) — not something based on luck, but an EA that can consistently generate profits. It should be effective for scalping trades as well as for the long run, meaning it can perform well in both short-term and long-term trading conditions. Of course, I understand there will be occasional losses, but the overall results must still be positive and profitable
i have EA file Mq4 which is not working when i applied to chart , fix it so it can work , need someone who can do Right Away ...i will only hire if you prove it worked on chart
Optimization of SAR Algo 100 - 150 USD
Description / Brief: I need a complete optimization of my SAR Expert Advisor. Requirements: Instrument: Gold (XAUUSD) only Timeframes: 5-minute (M5) and 15-minute (M15) Run a full optimization to identify the best performing settings for the EA Provide final optimized parameter sets (presets) and a short explanation of the methodology used (e.g., optimization criteria, ranges tested, etc.) Deliverables: Optimized
Hello, I'm looking for a programmer who knows the lwma indicator thoroughly. (mql5) 1, I have an mql5 EA that I start manually from the panel. I want the EA to only monitor the color change of the lwma indicator when the position is started. Only the lwma indicator color created from the data of closed candles is interesting. The color created from the unclosed - currently running - data is not interesting. So, if
BubbleFX Bot 30 - 100 USD
Build me an MT5 Expert Advisor called BubbleFX Bot to trade AUDCAD, XAUUSD, EURUSD, USDJPY, GBPUSD, USDCHF, and AUDUSD. The bot should use EMA200 on H1 as a trend filter, then enter on M15 when RSI(14) shows momentum (buy if <35 rising, sell if >65 falling) or when price breaks the last 8-bar high/low by 1.2× ATR. Stops are ATR×1.5 (2.5 for Gold) with TP at 1.5R, moving to break-even at 60% and trailing after 80%

프로젝트 정보

예산
40+ USD
기한
에서 1  3 일

고객

(14)
넣은 주문38
중재 수0