EA to Close Trades Using Exchange File

MQL4 专家

工作已完成

执行时间20 小时
员工反馈
His project description is very clear. He is smart and professional in EA description.5 stars. Thank you.
客户反馈
He demonstrated his professional skills when he completed the job correctly and promptly. Great work!

指定

I need an EA that compares the candle close price of 2 MT4 terminals, and closes trades according to a formula. I already have a seperate arbitrage EA to open and close the trades. This EA that you are doing will add an additional method to close the trade, in case the original EA fails to close it. Reliability and stability of this EA is the priority.


On the same computer, I will use 2 MT4 terminals - Primary MT4 and Secondary MT4. There will also be 2 EAs - Primary EA and Secondary EA. The Primary EA will be installed in Primary MT4 M1 chart. Secondary EA will be installed in Secondary MT4 M1 chart. There will be one Secondary EA, and one Primary EA.

The Secondary EA will send candle close prices (bid price) of all the symbols in the market watch to an exchange file. This exchange file is to be located in C:\Users\Username\AppData\Roaming\MetaQuotes\Terminal\Common\Files. The secondary will send the candle close prices of the previous minute and the previous previous minute, as well as the corresponding time of the candle. For example, if the broker time is 10:03:23, secondary EA will send the close prices of the 10:02 and 10:01 candles, and their candle times. For each symbol in the secondary market watch, the exchange file will contain 4 data: 10:01 candle close price, 10:01 candle time, 10:02 candle close price, 10:02 candle time. Secondary EA will update the exchange file every second. So whenever a new candle is formed, the exchange file will get updated. The exchange file will contain data for all the symbols in the market watch.

This is an example of what the exchange file should look like. You can use a different format, as long as all the required data is included.
AUDCAD 10:01 0.91978
AUDCAD 10:02 0.91944
AUDJPY 10:01 80.381
AUDJPY 10:02 80.393
GBPAUD 10:01 1.87760
GBPAUD 10:02 1.87743

etc



The Primary EA will read the exchange file every second. First, it will look at the same symbol. Then, it will look at the secondary MT4 candle times, and compare that candle to the same candle in the primary MT4. For example, for each symbol, the primary EA will look at the 10:01 and 10:02 candle in the primary MT4, and compare it to the same candle in the exchange file.


The Primary EA will close trades according to the following formula:

Close trade condition:
(ClosePrimary - CloseSecondary) of previous minute = (ClosePrimary - CloseSecondary) of previous previous minute

ClosePrimary- Candle closing price of primary MT4
CloseSecondary- Candle closing price of secondary MT4


The Primary EA will do this calculation every second to check the close trade condition. This calculation is done for all the symbols. For any particular symbol, if the close trade conditions are met, all trades of that symbol will close.

Please show the calculation in the Experts log when Primary EA closes a trade. This is so that I can check if calculation is correct. 

Sometimes, the broker will have missing candles. If any of the 4 candles are missing, calculation cannot be done and EA does not close trade. EA will wait until all 4 candle data are present before doing a calculation.



Note 1: Primary MT4 and Secondary MT4 are using same broker and have the same broker time.
Note 2: The suffix of the Primary and Secondary MT4 are different. Maybe I need to input the suffix in the EA settings.


反馈

1
开发者 1
等级
(30)
项目
52
52%
仲裁
6
0% / 100%
逾期
18
35%
空闲
2
开发者 2
等级
(102)
项目
118
31%
仲裁
4
0% / 50%
逾期
2
2%
空闲
3
开发者 3
等级
(5)
项目
6
50%
仲裁
2
0% / 50%
逾期
0
空闲
4
开发者 4
等级
(42)
项目
47
30%
仲裁
12
17% / 75%
逾期
6
13%
空闲
5
开发者 5
等级
(155)
项目
239
70%
仲裁
3
67% / 33%
逾期
20
8%
空闲
6
开发者 6
等级
(62)
项目
84
26%
仲裁
22
23% / 50%
逾期
23
27%
工作中
相似订单
@page { size: 21cm 29.7cm; margin: 2cm } p { line-height: 115%; margin-bottom: 0.25cm; background: transparent } Hi, The task involves adding functions to an existing EA and correcting an error. The developer must have a thorough understanding of the following: Trailing Take Profit function Calculating a decreasing distance between orders Ability to code a function for Global Profit decrement/increment size in
The first section will describe the EAs trading strategy logic and features. The second section is an outline of the inputs that the EA should contain. 1. The idea of the trading system is as follows : This EA enters trades based on fibonacci retracement levels when other (MACD, RSI) conditions are met. It will use a MACD from a particular time frame to establish the swing high and swing lows which the fibonacci
Expert Advisor (EA) will provide automatic entry and exit using Black Dragon indicator as per the description below. Long (entry): on the first blue candle. Long (exit): on the first red candle, stop loss or take profit/break-even. Whatever happens first. Short (entry): on the first red candle. Short (exit): on the first blue candle, stop loss or take profit/break-even. Whatever happens first. Long (stop loss value)
1. **Timeframe and Liquidity:** Focus on the 5-minute timeframe for liquidity analysis.(timeframe for liquidity should be editble) 2. **Candlestick MSS:** Monitor 1-minute candlestick patterns for entry signals.(should be editble) 3. **Swing Points:** Identify swing points using the high and low of the last three candles.(ict swimg high and low) 4. **Sell Setup:** - Wait for a 5-minute candle to take out the swing
Hello Greetings. I have a custom tradingview strategy I would like to convert to Metatrader 5 ( mt5 ) . I have the source code a and with me. Kindly bid if it is what you can do for me and let discuss about the project. Thanks
I'm looking for a developer who has already working on a HFT tailored to pass prop firm challenges within a short period, maintaining a very low drawdown. Here is a link to a video demonstrating an existing EA executing the same strategy: https://youtu.be/N6NEcIpPzV4 Any developer having already worked on this type of project and able to provide quickly a test version is welcome to contact me
have trade signals i get by telegram messaging, i would like to have a robot designed to read those message for trade inputs and open and close trades base on the signals Ea must be able to scan my telegram Message app Read signals sent Open trades on the mt4 and manage them to close Read signals every one minute (user changeable input) I also need the programmer to teach me how to install and make the robot work
MACD EA 50+ USD
Hello Freelancers, I am seeking an experienced developer to create an Expert Advisor (EA) for MetaTrader 5 (MT5). The EA will be based on the MACD indicator and should adhere to the following specifications: EA Requirements: Trading Logic: 1. Long Trades: • Entry: Open a long trade when the MACD line crosses above the signal line below the zero level. • Exit: Close the long trade when the signal line crosses above
EA Configuration. FIBO ------------------------------------------------------------------- Magic: 123456 Stop: Real or Virtual Order: Pending / CLOSE / price== LOT Description: 0.01 ------------------------------------------------------------------- STOP: -0.25 ------------------------------------------------------------------- ENT_1: 1.00 Lot_1: 0.01 ENT_2: 0.50 Lot_2: 0.01 ENT_3: 1.00 Lot_3: 0.01
Hi I'm looking for a professional programmer to modify my EA the EA send signal alert to telegram and screen shot of the chart patterns my EA is dased to the harmonic pattern but I want to see on the screen shot the pattern of the harmonic pattern and on the chat as well

项目信息

预算
50+ USD
开发人员
45 USD