Set of 2 interconnected EAs

MQL4 Uzman Danışmanlar

İş Gereklilikleri

i will need a set of 2 EAs, based on EA codes I have (see at the end):


one will be used as a controller (ControlEA), the other one will be activated on multiple charts (ExecuteEA)


My principe is that I want to open all the trades on the ExecuteEAs at the same time, as well as closing them at the same time

to do so, the ControlEA will use a boolean global variable: TradeNow


the ExecuteEA should only have 1 trade at the same time, and only work with the ControlEA using the same magic number


if the global variable doesn't exist, it needs to be created and set to False by default


if the ExecuteEA sees TradeNow , then it need to open a trade, according to the direction defined by the ControlEA

the direction can be Forward Reverse None and change every hour

The actual direction will be set in a global variable called TradeDirection, so all ExecuteEA will trade according to this as choices


-Trading Directions-

Hour-0   Forward Reverse None

Hour-1   Forward Reverse None

Hour-2   Forward Reverse None

Hour-3   Forward Reverse None

...


the direction of the trade is then interpreted by the Indicator 3_level_zz_semafor in M5

if the last point (with reference 3) is higher than its previous, then a Buy should occur in Forward mode

a Sell in Reverse mode, and of course nothing in none


also before making a trade a call should be made by the ControlEA by a webrequest to a page (should exist as a parameter CheckAI ) 

if the page return OK then the trade should occur, otherwise a KO will be sent, and the trading should be ignored until next Tradenow instruction

per instance CheckAI parameter http://www.blah.com/checkai.php?pair= 

the ControlEA should add the pair behind , EURUSD

if no parameter CheckAI is set, consider it OK or true by default, otherwise his timeout should be 30 sec


When the TradeNow is set to True, every ExecuteEA should open a trade, the ControlEA will then change the TradeNow status back to False after one minute.


Lot Size 

the lot size should be set by the ControlEA, either by a fixed lot (i.e. 0.01) or by a percentage of the BALANCE expressed in decimal (by the ammount to have 1 lot, ex. 2500)

it will then again be set in a global variable to be used as such by all the ExecuteEA


-Closing Strategy- TODO by the ControlEA

the closing of all the trades will be done by the ControlEA, then it will close the trades with the same Magic. 


when the ControlEA has no open trade anymore, wait a few minutes (should be set as parameter CoolDown

in minutes, 0 would mean immediate), then start the trading again. 


the closing from the ControlEA should be set by 


Manual (as a button in the chart, Close All)

% if positive expressed in decimal (ex. 1.2)

positive money ammount  expressed in decimal (ex. 110.22)

% if negative expressed in decimal (ex. 1.5)

negative money ammount  expressed in decimal (ex. 112.22)

a time expressed in seconds, if the trading exceed this time, all the positions should be closed (ex. 122secs)

if any of those is set to 0, then don't use it. 


-----

the other parameters in the ControlEA are 

StatCall  parameter of a PHP page, which (if not blank) should be called every 5 minutes and adding ?PL= NumberOfTrades= Comment= Magic= StartTrade=

ex. http://www.stat.com/Log.php 

StartTrade would be the time of the last TradeNow



Comment comment of the trades

FridayStop time time after which on friday, no new TradeNow should occur, if there is still a trade open, don't close it.


Running parameter true per default, if set to false, don't make any trade, otherwise operations should be made according to the process

a button with two states should be put on the chart, to control this




-----


in the charts, I'd like to display the following infos:

ControlEA

Active Trades : (active trades using the same magic number)

Combined P/L : (sum of active trades using the same magic number)

Magic : (Magic Number)

Active Direction : (Forward, Reverse, None)

Active Hour :  

Targets 


ExecuteEA

Magic : (Magic Number)

Active Direction : (Forward, Reverse, None)

Detected Direction : Buy Sell


-----

in the case of a backtesting,  just for the ExecuteEA

I will need to be able to define a trading direction depending on the hour, 

Hour-0   Forward Reverse None ... 

Hour-1   Forward Reverse None ... 


the TradeNow would occur every 15 minutes (and only one trade should open at once) 0 15 30 45 

a parameter should be set to close the trade after x minutes

lot can be fixed to 0.1


--- 


Actually  I've the source codes for

Close on Equity EA

Trend detection EA with the indicator embedded with the hours

Calls with WebRequests


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(89)
Projeler
137
24%
Arabuluculuk
35
9% / 40%
Süresi dolmuş
52
38%
Serbest
2
Geliştirici 2
Derecelendirme
(195)
Projeler
395
28%
Arabuluculuk
155
20% / 52%
Süresi dolmuş
112
28%
Serbest
Benzer siparişler
Mbeje fx 50+ USD
I like to own my robot that why I want to build my own.i like to be a best to every robot ever in the life to be have more money
I need an MT5 EA that can do the following: I have to give the EA a price in advance, when the price is reached the EA has to automatically place a buy stop or sell stop order 0.5 pips below or above the price. Is this possible
Dr Pattern 30+ USD
good day i need the service of the seaso coder to help me fix my ea The Job required 1 knowledge of Mt4 and Mt5 indicator coding 2. Telegram code 3. ability to code indicator to work on multiple Time frame combine to trade 4 Ability to Join two or three indicator on same ir different time frame if you have these skill please let chart i will discuss the details of the Job inside to you The required day including
Good day, I want someone to help me create a universal news filter with on/off switch, with start and end settings, and drawdown control with magic number of EAs, etc. Thanks
Hello, I am looking for a professional programmer to optimize my existing EA integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. i want it to be an EA that can be trusted to carry trade with the help of chat gpt and also have a very low drawdown
Hello, I am looking for a professional programmer to create a trading expert on the MT4 platform, integrating it with ChatGPT to analyze currencies using various methods to make the right trading decisions. Further details will be provided to the applicants later
I have developed a very strong TradingView strategy in Pine Script but unfortunately, a third-party connector is requiired and in my opinion, I want a more direct connection. I am not brilliant at coding, but I have coded the majority of the MT5 code and I would like you to make sure that the MT5 code matches my TradingView script and executes the same way as the TradingView script that I will provide if you are
EA based on RSI and MA 100 - 400 USD
Program is based on RSI and MA indicators dynamic as triggers, for Open/Close criteria. Runs automatically but inputs can be updated manually. It uses a GUI to manage it. Multi TF analysis. Log register of every operation for analysis (db) Open Source deliver. Kindly apply IF you have previous experience with trading and mql/python/c bot/algo developing. And if you have a good track record . ps: Better if you have a
This is and EPA (Entry Point Analyzer). Automatically analyzes the algorithm for XAU/USD and places a safe entry point mark for your trade. This has been tested and gives out 90% success rates
I am looking for an experienced MQL5 developer to help me finalize and optimize an Expert Advisor (EA) for the FTMO challenge. I have already built a significant portion of the code, but it requires further refinement and optimization to ensure it functions according to the trading strategy I intend to use. I am happy to share all the resources, including the current code, reference materials, and detailed

Proje bilgisi

Bütçe
30 - 120 USD
KDV (21%): 6.3 - 25.2 USD
Toplam: 36.3 - 145.2 USD
Geliştirici için
27 - 108 USD