Expert to open 2 positions at certain negative floating equity levels

Termos de Referência

 I had an ea coded, to 'open a new position when the terminal floating equity is at certain negative levels', but it does not work very well. 

I am including it here, as some of the code may be useful. 


I will first explain how I currently trade for clarity. Its not too complicated :) 

1. I open 2 positions at the same time. ( I call this a SET; I currently use an EA to open the positions, and it works pretty well ) 

2. When terminal drawdown gets to a specific equity drawdown level ( -$ 10 for example) > I open the SAME SET again. I do this manually   

* ( I cannot monitor the dd all the time so this is the main reason why I need an EA  > to open a new SET at the specific equity drawdown level ( of terminal) 

4. If the terminal drawdown goes down more ( to $ -20 for example) > the EA ( or me) must open the SAME SET again. 

This carries on unlimited,,,until step 5 below.

5. If the floating equity goes into profit , I have a ea that closes it.This EA can also disable autotrade once all positions are closed. 

6. If the disable function is not used, no1 ( 2 position = a SET) starts again


I need the EA for the reason at *  above. 


I need to know what will work the best in terms of the logic , to get everything to work the way it should: 

For example : The EA must know the values of the SET it must open ; The SET is always 2 pairs 

SET = Pair ; Buy or Sell ; Lot size 

Example : of a SET :

Pair 1 :  USDCAD , sell , 0.1 lot  

Pair 2 AUDUSD, buy , 0.1 lot.

I have a separate ea hat opens the trade on launch, Currently I attach the ea to a chart of each pair and switch on autotrade to open 2 positions at the same time.

Maybe ONE EA should do this ? 

Why I say this : Point 2 above refers:  The SAME 2 positions, with the same values ( buy / sell ; lot size) must open at the specified DD level of the MT4 terminal 

So to me its logical that the EA that opens the first SET  (2 pairs) , must also open the 2nd SET ( same 2 pairs with same values) on trigger ( - negative DD level reached)   agian

....and I guest one EA could also close ALL open trades at a certain floating equity PROFIT level ; and disable any further trading 

        

 How I used the EA attached :

I  attached the EA to 2 charts ( the 2 pairs trade) . It is suppose to monitor the floating equity and open another position(  of each pair) when the Floating P?L reaches the levels on the INPUTS. But it does not work correctly. EA on chart 1 sees dd of $-10 and same  EA on chart 2 sees $-10 dd > so 2 positions are opened at that dd level.   


If you can advise what the best way would be to do this I will appreciate it ; to me there are the following options:

A Fix the EA attached so it can execute point * 2 above effectively

B-Build one EA that 'does it all'

- Open 2 position with on launch at the same time;

- open the 2nd, 3rd, 4th etc SETs  ( same 2 pairs with same trade values as opening pairs )- when equity drawdown reaches ... minus $ ...; and again when equity reaches  ..- minus ,,,, etc   

- Close all open positions when floating Equity profit reaches $ ....;

- True / false option to disable all further trading when all positions close at specified profit , (if NOT not selected EA must start a new cycle ( as per point 1)

above)   

note : The ea should only open the 2 positions ONCE at the specified level ( Example : if the level to open a SET is -$10 and the 2 positions is opened ; if price then turns and goes to - $8 and the back to -10 , it must not open the same 2 positions again , it must only open the 2 positions at the next specified level again ( $- 20 for example)      


I appreciate your advice on best way to do this 

Regards,Mike

                       

        

   

Arquivos anexados:

Respondido

1
Desenvolvedor 1
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(50)
Projetos
64
20%
Arbitragem
11
27% / 55%
Expirado
5
8%
Livre
3
Desenvolvedor 3
Classificação
(53)
Projetos
91
52%
Arbitragem
2
0% / 50%
Expirado
1
1%
Livre
4
Desenvolvedor 4
Classificação
(45)
Projetos
46
24%
Arbitragem
34
9% / 85%
Expirado
10
22%
Livre
5
Desenvolvedor 5
Classificação
(31)
Projetos
35
46%
Arbitragem
0
Expirado
0
Livre
Publicou: 3 códigos
6
Desenvolvedor 6
Classificação
Projetos
0
0%
Arbitragem
1
0% / 0%
Expirado
0
Livre
Pedidos semelhantes
This robot is going to help me to assist my parents about their needs, it also going help me build a house and purchase my own car. Additionally, it is going to play an essential role upon my life as I will not struggle with the foods and transport for taking the trips
I need an MT5 Expert Advisor for US100 and XAUUSD. The EA must use risk management and must not use martingale or grid. Main requirements: Platform: MetaTrader 5 / MQL5 Symbols: US100 and XAUUSD Timeframes: M15 and M30, with higher timeframe trend filter Trend filter: EMA 50 and EMA 200 Momentum filter: RSI 14 Stop loss: ATR-based or recent swing high/low Take profit: minimum 1.5R risk/reward Risk per trade
I am looking for a serious marketer with experience in promoting trading tools or Expert Advisors for MetaTrader 5. The product is an automated MT5 trading EA focused on Gold trading, with risk-management tools and trading filters designed to improve trade quality. For credibility, I will provide: An Investor Account for a live/demo account where the EA has been running for a while Backtest reports for the EA Clear
Gold Precision Pro 30 - 100 USD
I want the indicator to be built professionally and carefully because the strategy is strong, but it requires advanced and clean programming. The indicator should work mainly on XAUUSD M15 and should generate more than 2 high-quality signals per day, ideally around 2 to 4 signals maximum, without flooding the chart. The logic must not be random. Each signal must be based on: HTF Bias from H1/H4, Liquidity Sweep
FINAL EA STRATEGY DOCUMENT (Chandelier Exit + EMA Breakout System) ------------------------------------ CORE INDICATOR - Chandelier Exit (MAIN LOGIC) - ATR Period: Editable (Default 22) - ATR Multiplier: Editable (Default 3) IMPORTANT: - ATR must NOT be shown as a separate indicator - ATR must be used ONLY internally inside Chandelier Exit - All SL & trailing must strictly follow Chandelier Exit line
Super scalper 30 - 200 USD
Articles 1 How to create Requirements Specification for ordering a trading robot 28 MetaQuotes 225 289 Table of Contents Prerequisites for ordering a trading robot Why is it important to have a well-prepared Requirements Specification? Requirements Specification examples What is contained in the Requirements Specification? Where do I get Requirements Specification if I can't create it? Terms to use How to write an
i have a tradingview simple indecator of 40 lines of code ,i want it to convert it into mt5 EA strategy details given below AUTOMATED TRADING STRATEGY Multi-Lot Execution & Dynamic Trailing Stop Logic System Architecture & Operational Rules Trading Bot Strategy Profile Entry Conditions Buy Logic • • • Wait for Buy Signal candle. Confirmation: Future candle must break the signal high. Execution: Open 2 orders of 0.01
Situation: Please contact me privately so I can provide the source code for review. Thank you. Project Overview: I have developed a high-frequency trading (HFT) EA that performs consistently in demo environments and passes most prop-firm requirements. While short live phases showed profitability, the results were not reproducible over time. My primary goal is stable live performance on retail accounts , not just
"I need an MT5 EA based on price action — liquidity sweep + hammer/shooting star reversal strategy. TREND: Identified by HH/HL for uptrend, LL/LH for downtrend on selected timeframe. No trade in ranging conditions. BUY SETUP: In uptrend, price retraces to swing low zone, wicks below it (liquidity sweep), hammer forms (lower wick min 2x body, closes above swept low). Buy stop entry at hammer high. SL below hammer
EA SPECIFICATION SHEET OBJECTIVE: Build a transparent, non-martingale, non-grid breakout EA for XAUUSD that trades only high‑quality breakouts during London + New York sessions. 1. TRADING INSTRUMENT - XAUUSD only - MT4 platform - 5‑digit ECN broker 2. CORE STRATEGY LOGIC (BREAKOUT + CONFIRMATION) A trade is allowed ONLY when ALL conditions are true: - Candle closes beyond previous high/low (no wick breakouts) -

Informações sobre o projeto

Orçamento
30+ USD
Prazo
de 1 para 3 dias