Adjustment to 'include' file to prohibit new trades for X bars if last X trades were loss-making

MQL4 Uzmanlar

İş tamamlandı

Tamamlanma süresi: 3 saat
Geliştirici tarafından geri bildirim
All is good.

Şartname

 

Hi,

 I use an 'include' file to manage trades, stop-losses and various other functions to manage the trading of my EA. I have recently experienced that some of my EAs, which otherwise produce solid returns - turn nasty for periods ranging from 5-40 periods, consecutively open trades and run into stop-losses. I want to prevent my EAs to trade for a defined period (should be variable) based on the following conditions: if over the last 20 bars (the number of bars should be smth, which can be set within the actual EA) if it did one or two loss-making trades in the same direction (Again, the number of permitted loss-making breaks). So it is meant to be function as a time-out for my EAs if it clearly does not produce valid signals! So to summarize the function

IF last X trades were loss-making in the last X bars, do not trade for X bars 

 Attached you will find the 'include' file I use and a random simple EA - I choose one which produces a substantial number of consecutive losses. Of course, I want to be able to amend any settings within the EA itself.   Please feel free to write if you need any further information.

 

Cheers,

 

Philipp 

 

 

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(215)
Projeler
302
79%
Arabuluculuk
4
25% / 0%
Süresi dolmuş
62
21%
Serbest
Yayınlandı: 7 kod
Benzer siparişler
I have three indicators that operate independently. I want to combine them into one indicator with custom expert programming that automatically enters trades when a signal is generated by one of the indicators. I will pay for this service Thanks you
Existing EA: NEW_CORE_ORB_M5_v021 | MT5 | XAUUSD M5 Early-stage research prototype, not a new EA from scratch. Need an experienced MQL5 developer to audit, complete, repair, improve and test BOTH independent strategies equally: Opening Range Breakout (ORB) and Scalp. Keep code lightweight and preserve an untouched baseline. No unnecessary rewrite or complex filters. 1. ORB Strategy Verify opening-range construction
أود تحسين استراتيجية المستشار الخبير الهجين، مع التركيز على جودة الدخول والأداء الصافي بعد تكاليف التداول. يرجى الإشارة إلى ما يلي: تدقيق النظام الحالي: تحديد أخطاء الترميز، والظروف المتضاربة بين الوحدات، وأسباب الإدخالات الفائتة أو المتأخرة. حدد قواعد واضحة للشراء والبيع: استخدم هيكل السوق، الاتجاه، الزخم، ومستويات الدعم/المقاومة. تجنب الشراء بعد ارتفاع مطول أو البيع بعد انخفاض مطول. راجع الفرص الضائعة: قارن بين
I need a robot that will grow small accounts to bigger amounts like this one in this link, https://youtu.be/d38pMbJihew?si=3NeIOVyrlwDr4X_o. Please click the link and watch how this EA grow small accounts. Then create a robot like that. I will test it on demo first then if it does what i want, i will take it. Please it must be simply to use. It must set targets, for example, once it reaches $500 profit, it must
Looking for a Pre-Built Gold Trading Bot (MQL5 / MT5) I am looking for an existing, ready-made Gold (XAUUSD) trading bot for MT5 with Stop Loss (SL) and Take Profit (TP). If you have a pre-built EA, please share: Trading strategy and entry/exit logic. SL, TP, and risk management features. Backtesting results and verified trading history, if available. Price and source code availability. Existing bots are welcome
I am looking for an experienced MQL5 Expert Advisor (EA) developer to analyze an existing trading setup and develop a similar automated trading robot. Project Overview I have access to a demo trading account where trades are being executed automatically. The trading results look very promising, but I do not know exactly what strategy, logic, indicators, or trade-management rules are being used. I will provide access
Espert 30+ USD
I want to create a robot with 10 indicators.All to take a trade and all in stop folowing. Thanks to put in THE PARAMETERS Yes/No for the indicators to entry in position AND to the stop A trade with 2 takes profit and a breakeaven at the first TP. The goal is to be able to try the multiple combinations with these indicators
Staddle 30+ USD
10 * 0.01, 10 * 0.03, 10 * 0.05. Place a limit order one dollar above the market price, a sell-side limit order below the market price, and a trailing stop loss. The goal is to safely book profits incrementally as the market moves." ulti-tiered lot sizing (0.01, 0.03, 0.05 scaled across 10 levels). Place a buy/sell limit order at a $1 offset from the current market price along with a trailing stop loss to secure and
Hello International Developer, I need LIFETIME MT5 EA for XAUUSD Gold. REQUIREMENTS: 1. Lifetime bot - No expiry date, unlimited accounts, unlimited installations 2. Must include source code .mq5 file - This makes it lifetime 3. Every trade MUST have Stop Loss 300 points and Take Profit 600 points 4. No martingale, No grid, No averaging - Clean safe strategy 5. Auto lot size = 1% risk per trade for good margin growth
Expert advisor 150+ USD
Hiring: Forex Strategist & MQL5 Developer for Long-Term EA Development I am looking for an experienced Forex Strategist and MT5 (MQL5) Developer to work with me on an ongoing project to develop, test, improve, and optimize a profitable Forex Expert Advisor (EA). My Message to the Developer My budget is $150 . However, this is not intended to be a one-time payment for a finished product. I want an ongoing working

Proje bilgisi

Bütçe
10 - 30 USD
Son teslim tarihi
from 1 to 5 gün