Add Money Menagment strategy to my EA

工作已完成

执行时间5 天

指定

Good Morning, i have my personal EA that when the indicator find a trend change, close all the operations on that pair and open new one with new trend direction.

i'd like to implement that every time there is a negative position opened, EA doesn't close that position but opens new one on the opposite direction with double lots and close both positions when the sum is 0.

in this moment EA works like this:

  • when indicator find a signal, EA opens 2 operations with same lots, the first one close at tp1, the second one at tp2.
  • If operations hit tp1 but not the tp2, a trailing SL close the second operations in profit.
  • If operations can't reach tp1, EA closes both only when indicator find a trend change (that's what i'd like to change).


EA has to work as it has done so far except for the third point i wrote. the only thing that has to be changed is that WHEN POSITIONS ARE NEGATIVE AND THEY DIDN'T REACH TP1, EA has to open the next operation with doubles lots and close both operations when the sum is 0. if also the second operation will go in negative and indicator find another trend change, EA has to open a third operations with doubles lots of the second one and close ALL three operations (that being two for each trend change, there are 6 operations in all) when the sum is 0.


Thank you all.

反馈

1
开发者 1
等级
(390)
项目
416
30%
仲裁
74
19% / 72%
逾期
52
13%
工作中
2
开发者 2
等级
(93)
项目
133
35%
仲裁
13
38% / 31%
逾期
32
24%
空闲
3
开发者 3
等级
(217)
项目
369
33%
仲裁
34
41% / 29%
逾期
108
29%
空闲
发布者: 1 代码
4
开发者 4
等级
(115)
项目
129
18%
仲裁
11
27% / 55%
逾期
4
3%
空闲
5
开发者 5
等级
(40)
项目
58
22%
仲裁
10
10% / 70%
逾期
13
22%
空闲
相似订单
I need an MT5 Expert Advisor for XAUUSD (Gold) running on an Exness account. STRATEGY LOGIC The exact entry and exit rules will be provided in writing before development starts. Please quote for a single rule-based strategy with clearly separated logic, so the rules can be adjusted later without rewriting the whole EA. RISK MANAGEMENT (this is the priority of the project) - Risk per trade as a percentage of account
Modification of Trade_Panel_7 7.05 Objective . I have this utility “Trade_Panel_7 7.05” with which I open and close positions. Please refer to attached “Trade Panel Modification.jpg”. It shows an input parameter “Volume Step”. This parameter has the initial value of 0.02 as shown. This feature needs to be amended. Present Status . Value of lot size is increased by this “Volume Step”. I have built a whole series of
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
please share: Strategy description — entry/exit rules, indicators used, timeframe(s), and instrument(s) (a written explanation, screenshots, or an existing indicator/EA to reference all work) Risk management rules — position sizing method (fixed lot / % risk), stop loss / take profit logic, max drawdown or daily loss limits, and whether martingale/grid/hedging is involved Broker & account details — broker name
I need a unique grid trading system for XAUUSD that combines entry, controlled two-sided grid expansion, DCA (Dollar Cost Averaging) basket profit control, hedging. Unlike traditional grid EAs that only trade against price, this unique grid system should dynamically build positions in both directions based on market movement, allowing flexible adaptation to changing conditions ie the grid needs to dynamically move
I need an experienced MQL5 developer to create a fully automated MT5 Expert Advisor called Ayoub Gold EA , focused exclusively on XAUUSD (Gold) . Main requirements: Platform: MT5 / MQL5. Fully automated BUY and SELL trading on XAUUSD. Must support broker suffixes such as XAUUSD, XAUUSD.f and XAUUSDm. Trading strategy based mainly on Range Breakout with trend confirmation. EMA, ADX and ATR filters. London/New York
Mashiri 50 - 10000 USD
I need a custom MetaTrader 5 indicator designed specifically for XAUUSD gold trading. The indicator should identify potential buy and sell opportunities, display clear entry and exit signals on the chart, provide alerts, and help identify market trends and possible reversals
Looking for an experienced Sierra Chart ACSIL/C++ developer to customize an existing footprint chart. I need 3 things: 7-Day ATR – calculate and display a configurable 7-day ATR. Custom Footprint – modify my existing footprint chart to match my preferred layout/data display. Automatic LVN – detect and plot Low Volume Nodes automatically based on volume distribution. I already have a working footprint chart, so no
//———————————————————————————————————————————————————————————————————— struct S_MCAV { double matureSum; double totalSum; double value; void Init () { matureSum = 0.0; totalSum = 0.0; value = 0.5; } void AddContext (int ctx) { totalSum += 1.0; if (ctx == 1) matureSum += 1.0; } void ApplyDecay (double rate) { matureSum *= rate; totalSum *= rate; } void Update () {
1. Title Development of a Custom MQL5 Expert Advisor for XAUUSD (MetaTrader 5) 2. Requirements Specification Overview: I am looking for an experienced MQL5 developer to build a robust, fully custom Expert Advisor (EA) for MetaTrader 5 tailored for trading Gold (XAUUSD). Core Specifications & Features: Asset & Timeframe: Designed specifically for XAUUSD. Timeframe should be selectable directly from the EA inputs

项目信息

预算
30+ USD
截止日期
 1  2 天