Allow EA to trade multiple pairs, all enter/exit with the symbol of the default chart, but have each added symbol generate their own ATR based stop, take profit and partial take profit

MQL4 Uzmanlar

İş tamamlandı

Tamamlanma süresi: 5 gün
Müşteri tarafından geri bildirim
The coder is one of the best. He knows how to execute complex ideas into efficient and flawless code.
Geliştirici tarafından geri bildirim
Many thanks!

İş Gereklilikleri

I would like the ability of my MA based EA to enter/exit the trade of the symbol chart (ex. EURUSD) it is dropped to, which it does now and in addition, to do the following:

1) enter/exit at the exact same time the open/close trades of default chart (EURUSD) for symbols that I custom input. 

2) Add ATR based stop loss for each added symbol

3) Add ATR based take profit for each added symbol

4) Add ATR based partial take profit for each added symbol 


So if the moving average gives a buy signal on EURUSD, the default chart of the EA, it will take a buy signal on symbol1 and sell signal on symbol2 (if set to reverse, such as USDCAD) and when moving average reverses to short, it will give a short signal on symbol1 and a buy signal on symobl2, and so forth for all symmbols, up to 10 symbols. 


When it outputs a buy or short for symmbol1 or symbol2, they will be given their own ATR based stop loss, take profit and partial take profit, as inputed in the custom variables below. 

symbol1 = GBPUSD;

symbol1-rev = false; //  revserse feature, off, same direction as default chart

symbol1-stopATR = true; 

symbol1-stopATRmult = 9; // atr stop multiplier

symbol1-proiftATR = true; 

symbol1-profitATRmult = 9; // atr take profit multiplier

symbol1-partialprofit = true; 

symbol1-partialATRMult = 5; // atr partial profit multiplier

symbol1-ATRpartiallotsize  = 50; // percent of lots to close with partial


symbol2 = USDCAD;

symbol2-rev = true; //  revserse feature, on, so when EA detects that EURUSD enters long, then it enters short on USDCAD and vice versa

symbol2-stopATR = true; 

symbol2-stopATRmult = 9; // atr stop multiplier

symbol2-proiftATR = true; 

symbol2-profitATRmult = 9; // atr take profit multiplier

symbol2-partialprofit = true; 

symbol2-partialATRMult = 5; // atr partial profit multiplier

symbol2-ATRpartiallotsize  = 50; // percent of lots to close with partial


same for up to 10 symbols


Note: I aleady have the following ATR based stop, take profit and partial profit for my EA as follows: 

extern string _group_8_     = "+++";

extern bool   stoplossATR   = true;   // 

extern int    stopATRlen    = 45;    //

extern double stopATRMult   = 9;    //

extern int    MinSL         = 10;

extern int    MaxSL         = 230;


extern string _group_9_     = "+++";

extern bool   takeprofitATR   = true;   // 

extern bool   takeprofitSATR   = true;   //

extern int    profitATRlen    = 25;    //

extern double profitATRMult   = 12;    //

extern double profitSATRMult  = 19;

extern int    MinTP         = 10;

extern int    MaxTP         = 0;


extern string _group_10_0     = "+++";

extern bool   takePartialprofitATR   = true;   // 

extern int    profitPartialtime = 60;

extern int    profitPartialATRlen    = 25;    //

extern int    partialATRMult = 14;

extern int    MinPartialTP         = 10;

extern int    MaxPartialTP         = 0;

extern double ATRpartiallotsize  = 50; 


The new symbols will inherit the default chart's values of period, stopATRlen, MinSL, MaxSL, profitATRlen, MinTP, MaxTP, profitpartialATRlen, MinPartialTP, MaxPartialTP. 

I'm only interested in manipulating the mulitplier of ATR based stop, take profit and partial take profit. 


I'll share my EA in the comments. 

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(588)
Projeler
1065
50%
Arabuluculuk
39
28% / 41%
Süresi dolmuş
49
5%
Serbest
Yayınlandı: 1 makale, 8 kod
Benzer siparişler
Criei um Robô para a venda alta precisão que automatiza a estratégia de correção média de Larry Williams. Possui filtros de tendência seletiva, controle de lote por risco percentual e execução rápida. Compatível com contas Hedge e Netting. Configuração simples e otimizada para mercados de alta volatilidade. *55(16) 993786056
SMC ORDER BLOCK 30 - 60 USD
I want already build FULLY AUTOMATED order block MT5 XAUUSD HTF H4 ENTRY LTF M15 - Show result on live account. m15 ob entry in the direction of h4 ob bias the developper to provide source code in the end
I need an MT5 Expert Advisor built as a high-precision volumizer for Forex. Its core purpose is to generate controlled trading volume for rebates, while still maintaining low-risk account growth. I am not looking for aggressive profit chasing. I am looking for a stable, intelligent EA that can produce volume in a disciplined way without damaging the account. The ideal system should trade major currency pairs, avoid
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot
I need a high frequency trading robot for gold in one or 5 minute timeframe the robot should have spread filter where it should only open trades below a set spread should have news filter to allow trading during fundal news or not the robot should have input in number of minutes to close all open trades and remove pending orders before fundamental news as part of news filter. It should also have the number of minutes
Hello! I want to programm EA that uses volume profile indicator, but I am not sure if this is possible. Only experienced programmers please, I will not select a programmer who did only few jobs. Before starting I need to make sure you understand everything and that this is for sure technically possible
Hello, I am looking for a professional trading system including: 1- Trading Bot (Expert Advisor): - Good profit performance - High security and strong risk management - Works efficiently during high market volatility (news and strong movements) - Works on all pairs (Forex + Gold) 2- Signal Indicator: - Provides clear Buy and Sell signals - Includes Take Profit and Stop Loss - No repaint (signals must not change or
Hi, I’m looking for a top-tier, profit-optimized EA that has the potential to scale trading returns significantly. My goal is to maximize growth over time. Can you help develop a bespoke EA that could potentially scale to high six or seven figures
Max amount grid 30+ USD
max amount grid step for magic number do keep deleting .only when it is in negative floating .but when it is profit allow to go over the max and replays to grid step

Proje bilgisi

Bütçe
30+ USD