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 need a professional MQL5 developer to build a high-frequency trading (HFT) Expert Advisor for MT5. Key Requirements & Risk Management Rules: 1. Max Trade Limit: The bot must execute a strict maximum of 1,000 trades. 2. Lot Size Cap: Every trade must be capped at a maximum of 0.50 lots. 3. Execution Speed: Optimized for low-latency, rapid execution. 4. Clean code with proper error handling and clear parameter
I need fully automatic scalping robots for XAUUSD Gold the robot should work on M1 and M5 timeframe and open trades based on the scalping logic using EMA and RSI confirmation it should analyze the market on its own and only take high probability trades
I am looking for an experienced MQL5 / MetaTrader 5 developer to help me add alert notifications to an existing MT5 indicator. What I Have I have an indicator that I am currently using on MetaTrader 5 , but I do not have the source code (.mq5) . I only have the compiled indicator file, or I can provide the indicator file that I currently have. What I Need I want to add alerts when the indicator generates its specific
I need best scalping bot 150 - 300 USD
I have attached the video of the EA I want to reproduce in MQL5. Please study the video carefully and build an EA that follows the same trading behavior shown in it. The EA is for XAUUSD (Gold) and appears to use an automated scalping/grid-style strategy with multiple positions opened around the market price. I want the entry sequence, spacing between positions, lot progression, direction of trades, and
New EA for Moj1367 50 - 100 USD
//@version=6 strategy("Ultimate + 11 Filters Bot [M1 - 0.5 pip TP]", overlay=true, max_boxes_count=500, max_labels_count=500, max_lines_count=500, max_bars_back=5000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, initial_capital=1000, commission_type=strategy.commission.percent, commission_value=0.04) // ═══════════════════════════════════════════════════════════ // 1. تنظیمات ورودی (Inputs)
I need an MT5 EA (MQL5) specifically for XAUUSD, trading price gaps when the market opens/reopens. The EA needs 2 independent strategies: 1. Weekend/Monday Gap: Record the last price before the market closes for the weekend and the first price when XAUUSD reopens at the beginning of the week. Calculate the gap size. When the gap meets the required conditions, the EA trades in the direction of the Gap Fill. Gap Up →
Best performing EA MT5 30 - 1000 USD
I am looking for a reliable MQL4/MQL5 EA that creates orders automatically. If anyone has a good-performing EA available for sale, please share it with verified live trading results or a genuine live track record . I am ready to purchase, but live performance proof is mandatory . Please share the live account results, trading history, and EA details before discussing the purchase
Hi In my current EA, you must edit this robot in an Instagram-based mode to construct robots. My old Robot Pending Order is designed to put merely in order, making it easy to update. I've included a link to the rar file, which is plainly referenced in the video. The strategy behind this work is detailed, as are the Instagram videos that are linked to the chart. As shown in this Instagram video link, we need a robot
I’m looking for an experienced MQL5 / MT5 developer to build an EA that acts as a connector between a user’s MT5 trading account and our own web-based performance tracking platform. The concept is similar to platforms like Myfxbook or ShowMyTrades , where users can connect their trading account and automatically track their trading performance, including trade history, profit/loss, win rate, drawdown, account
Account size 50$ to 100$ or 5000USC to 10000USC ( Account $ Size may not matter ) Max Leverage 1000-2000 Min Lot 0.01 [ if averaging possible ] Averaging + Shift TP Faster Required if Trend Direction is Clear Account Protection Maxx Profit Max Loss Key Based Activation News Filter Need Expert to handle this to avoid false entry [ Developer can suggest extra additional filters inputs here ] as i mentioned I have no

Proje bilgisi

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