MetaTrader 5 (Expert Advisors) for opening new orders from JSON.

Job finished

Execution time 3 days
Feedback from customer
Awesome work! Clean and efficient code. Will definitely work with him again!
Feedback from employee
Thank you for the order. Hopefully you will enjoy your product :

Specification

I need a MetaTrader5 EA that will call a URL (WebRequest) every N seconds, and based on the JSON data it sees in the response, it should open a new order in MetaTrader.
(When doing the WebRequest, the url being connected to requires a key/value to be passed in the header of the WebRequest to successfully connect. The URL and key/value will be hardcoded in the code and won't be a setting.)

It will then follow a very simple set of rules of when to close the order. Those rules are pre-set in the settings of the EA along with 2 other global settings.


*************** EA Settings ***************

Pair: EURUSD
Lot Size (%): 5
Candle Period: H1
Close Rule: 3
Algorithm: 100258
_________________________

Pair: XAUUSD
Lot Size (%): 20
Candle Period: M30
Close Rule: 1
Algorithm: 504703
_________________________

Pair: XAUUSD
Lot Size (%): 10
Candle Period: M15
Close Rule: 2
Algorithm: 401062
_________________________

etc... there are 50+ entries that will be added here.


************ EA Global Settings *********

Don't open an order if older than (seconds): 25
WebRequest (seconds): 3

********************************************



"Lot Size" Definition:

Represents the order size as a percentage of the free margin available in the account.
For example, if the free margin in the account is $1000, and the "LotSize" of a pair is set to 20%, the order size for that pair should not be more than $200. (The "free margin" calculation must be done every time prior to opening a new order)



"Close Rule" Definition:

1 = Close order 3 seconds BEFORE the current candle period ends.
2 = Close order 3 seconds BEFORE the second candle period ends.
3 = Close order 3 seconds BEFORE the current candle period ends IF order profit is greater than $0.01. ELSE, close order 3 seconds BEFORE the second candle period ends regardless of profit.
4 = Close order 3 seconds BEFORE the third candle period ends.
5 = Close order 3 seconds BEFORE the current candle period ends IF order profit is greater than $0.01. ELSE, close order 3 seconds BEFORE the third candle period ends regardless of profit.



Global Settings Definition:

- For the "Don't open an order if older than" setting, in the JSON of an order there's a field called "HoldingPeriod". Before opening a new order, check that field and make sure it's "less than the amount of seconds" set in the settings. If the "HoldingPeriod" of the order is greater than the value in the settings, do NOT open the order.

- For the "WebRequest" setting, that's how often the EA should do a WebRequest to check and see if there are new orders to open.


You'll see a lot of entries/orders (see attachment) in the JSON response. Each entry is a separate order.

(The ONLY fields that you need to take into consideration from an entry/order in the JSON are: ActionType, CurrencyPair, HoldingPeriod, Algorithm --- You'll match the " Algorithm" and " CurrencyPair" of an order to what is found in the settings of the EA, and based on the setting that it got matched to, you then know what timeframe that order is using.)


Note: The JSON will NEVER display orders for the same pair in 'opposite' directions. Meaning, you'll never see an order for a BUY/long and another order for a SELL/short at the same time for the same pair!


All source code is required. (I do not test or accept compiled EA's).


Files:

Responded

1
Developer 1
Rating
(144)
Projects
199
42%
Arbitration
20
25% / 55%
Overdue
10
5%
Free
Similar orders
The EA will have 3 moving average and trade are executed upon cross over.The EA will finally be in MQL4 and MQL5. The EA will also be protected with a password. Further description will be given after agreement
I need a good programmer who will build a forex EA with exact specifications. The EA parameters should be easily activated by on/off clicks... It's so multiple timeframe filters, monthly, weekly, daily and a H4 entry. Using Moving averages, RSI, %R, and candlestick ranges
Technical Skills: - Programming Languages: Proficiency in low-latency programming languages like C++ is crucial for developing high-speed trading algorithms. - Algorithmic Trading: Experience with algorithmic trading strategies, including market making, statistical arbitrage, and trend following. - Market Data Analysis: Ability to analyze large datasets and extract meaningful insights to inform trading decisions
I need a trading robot expert advisors/EA on MQL5. With the following strategies. Trend Following and Mean Reversion/Scalping and Range Trading* 1. *Trend Following and Mean Reversion*: Capture trends and profit from mean reversion opportunities. 2. *Scalping and Range Trading*: Profit from short-term price movements and range-bound opportunities. *Trend Following and Mean Reversion* - *Indicators:* - Moving
Hi guys Does anyone have experience with K-Means and MQL5? I would like to get an include file which I can use in my EAs. I would need to work with an ML Engineer who has deep understanding with K-Means. The include file should be used for regime detection. I can drop more information about my EA once I see that you qualify for the job :-) Cheers
Please translate the FX Blue copy trading EA into Chinese EA. Additionally, the software must centrally manage newly installed and uninstalled MT4/MT5 platform directories to uniformly manage the association between multi-terminal login trading accounts and copy trading accounts. Existing program solutions are preferred; candidates with relevant project development experience will be given priority consideration
READ CAREFULLY And if you have done 50 projects before then apply others i will reject SEPARATE LOGIC MUST BE SEPARATE AND ALL INPUTS MUST BE VISIBLE WITH FALSE TRUE OPTION TO ON OFF FUNCTION 🔺 BUY Signal (Boom Market) ✅ Pattern Formation (Spike-Based Buy Setup) First Spike : Large bullish spike candle . Mitigation Candle : Small bearish candle inside or partially inside the bullish spike. Second Spike
Hello Developers, I am looking for an already profitable binary options trading bot that works specifically on the IQ Option broker . I don’t want a new development from scratch, but rather a tested and proven system with consistent results. 🔎 Requirements: •The bot must be able to run on IQ Option smoothly. •Should be profitable and reliable (not experimental). •Full access to use the bot without restrictions
Job Description I am looking for a highly skilled MQL5 DEVELOPER and A TRADER to work on an MT5 Expert Advisor (EA) project. The main tasks will include: 1. Code Compilation & Optimization – Reviewing, compiling, and streamlining the existing EA code to ensure efficiency and stability. 2. Backtesting Setup & Execution – Running professional backtests to ensure the EA produces consistent, gradual profit growth curves
Ultra-High-Speed Trade Replication (Low Latency) Supports MT4 and MT5 Simple Setup, User-Friendly Interface Contact me for detailed specifications and standard documentation Priority given to candidates with experience developing similar copy-trading software

Project information

Budget
100 - 345 USD
For the developer
90 - 310.5 USD
Deadline
to 3 day(s)