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
Stanley 30 - 200 USD
I strictly need a trading robot to trade in stocks and forex. I am a beginner and woul like to trade in simple stocks and forex with the aim of growing my trade capital in the trade platform
I would like traders who want to code their own expert advisors to visit and test my site and give feed back. Please visit stratobot.trade and give feedback so that I can develop it to help traders. For feedback please email : admin@stratobot.trade. Regards www.stratobot.trade
Gold liquidity expert 40 - 60 USD
#property strict #property version "1.00" #property description "XAUUSD Liquidity Sweep + Fibonacci Extension EA" #include <Trade/Trade.mqh> CTrade trade; //==================== INPUT SETTINGS ==================== input group "01. Strategy" input ENUM_TIMEFRAMES SignalTimeframe = PERIOD_CURRENT; input double SL_Buffer_Points = 20; input ulong MagicNumber = 20261122; input group "02. Fibonacci Extension" input double
أحتاج إلى مطور MQL5 ذو خبرة لإنشاء مستشار خبير آلي بالكامل ل MetaTrader 5. المتطلبات: - رمز التداول: XAUUSD (ذهبي) - الإطار الزمني: M5 - حجم القطعة الثابت: 0.01 - صفقات شراء وبيع تلقائية - وقف الخسارة وجني الأرباح - حماية يومية قصوى من الخسارة - حد أقصى لصفقة مفتوحة واحدة في كل مرة - إدارة المخاطر ومرشح الانتشار - لا توجد استراتيجية خطيرة للمارتينجيل أو الشبكة - الاختبار الرجعي والتحسين - كود مصدر MQ5 الكامل وملف EX5
1. Platform & Scope Platform: MetaTrader 5 (MQL5) Expert Advisor. Target market / symbols: [Specify symbols, e.g., EURUSD, XAUUSD, or all chart symbols]. Timeframe: [Specify timeframe, e.g., M15, H1, or input parameter for timeframe]. Trading mode: [Specify: Hedging or Netting], with configurable MagicNumber. 2. Entry & Exit Logic Entry conditions: [List exact buy and sell entry rules, e.g., EMA crossover + RSI
This utility manages the stop loss of positions that are already open, whether you opened them by hand or with another Expert Advisor. It never opens or closes trades by itself: it only moves the stop loss, and only in your favour. What it does Break-even: when a position reaches the profit you choose (in points), the stop moves to the entry price plus a small locked profit. Trailing stop: after a second profit
Robert for life money's cash maximum 16mb the jobs future linuox Trading robots are programs, which operate according to underlying algorithms. An algorithm is a set of actions that need to be performed in response to certain events. For example, the most common task in algo trading is the identification of the "New bar" event . When the event occurs, the robot checks the emergence of trading signals and acts
Hi there I need someone who knows how to create smart ea,s but this must fool the broker spread meaning ,, it must make an spread that it had been paid but ,it had not placef an order buy if it place an order it will Start at 00 meaning it has foil the broker spread message Me if you can or any plan you have
I would like to commission the development of a custom Expert Advisor (Trading Robot) for MetaTrader 5 (MT5) that replicates the exact logic of the "Custom Range Bar" study from Sierra Chart, renders the range bar levels as an independent background layer on the chart, displays a live/historical performance statistics dashboard, and executes/manages trades automatically based on the rules below. 1. Range Bar
MultiScalping 30+ USD
Je souhaite un robot avec une dizaine d'indicateurs sélectionnables en entrée et aussi en SL puis suiveurs. L'objectif de se robot est de me permettre de tester plusieurs backtest avec un ou plusieurs paramètres en M1. TOUS LES indicateurs sont sélectionnables avec: - oui/non - SL et Stop Suiveur - Croisement avec le prix - croisement de l'oscillateur à 0 - utilisation de l'une autre période (type M5 , ....) - retour

Proje bilgisi

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