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
198
42%
Arbitration
20
25% / 55%
Overdue
9
5%
Free
Similar orders
***** THIS IS FOR MT5 ***** The indicator now makes 5 lines and I use it on US30 It is for NY session and has inputs for times - open and close It creates lines at NY open NY open line 100 point 200 points I want to add 300 pt lines and 400 point lines I want On/off box added for dotted or dashed 50 - 150 - 250 and 350 lines I want alerts when the candles reach the 100 - 200 ect...lines but would love "Push
Job Title: MQL5 Trading Bot Code Debugging and Optimization** **Description:** We are seeking an experienced MQL5 developer proficient in debugging and optimizing trading bot codes. The current project involves fixing existing code that runs into debugging issues without errors and optimizing it for efficient performance in live trading environments. **Responsibilities:** - Debug existing MQL5 trading bot code to
Active expert 250+ USD
hi, I must do changes to a dashboard with manual input of trader and active expert. Budget 250$ Can do? the budget is correct based on job to do. If you want me to increase the budget you can message me
HELLO DEAR DEV'S. I'VE AN EA BUT IT STOP WORKING WHEN MT4 HAS BEEN UPDATED TO THE LATEST VERSION (1420). SO I NEED A GOOD DEVELOPPER THAT COULD UPDATE THIS EA TO THE LATEST VERSION OF MT4 SO I CAN USE IT. NB: IT'S A SINGLE FILE (.EX4) AND THE PRICE CAN BE NEGOCIATED TO BE SUITABLE FOR BOTH PARTIES. THANK YOU
hey friends, I am looking to build a smart trading robot, for the capital market. He knew how to trade in all the different types of trade. Example - in shares, currencies, index, indices, ETFs, funds, commodities, options, futures and so on. Suitable for trading on all stock exchanges in the world. It will be possible to install the trading robot in the MetaTrader 5 trading software. But it will also be possible to
STI EA 30 USD
I need to convert this MT4 indicator into MT5 EA/indicator. The problem is I only have the .ex4 file bt not .mq4 file and it is also a repainting indicator. I need preliminary assessment if the conversion can be done based on .ex4 file first before exploring the EA details further. Attached is the indicator Budget below is just indicative for the assessment. We can discuss further once the conversion can be done and
This mql4 got entry blue line and exit red line and pips inside also calculated it uses haiken Ashi and murray Math settings if you this you up for this job let's discuss it we will talk more when you are chosen thanks in advance
i Want to convert this Trading View Code to Mt4 Indicator indicator("NEOM Smart Money Concepts ", "NEOM Smart Money Concepts " , overlay = true , max_labels_count = 500 , max_lines_count = 500 , max_boxes_count = 500 , max_bars_back = 500) //-----------------------------------------------------------------------------{ //Constants //-----------------------------------------------------------------------------{ color
Hello Amazing developer am looking for profitable EA for mt4 and made for some past year and i will be looking forward for your bid if you have mt4 EA let Negotiate in the contact box best regards
Hello Amazing developer am looking for profitable EA for mt4 and made for some past year and i will be looking forward for your bid if you have mt4 EA let negotitate in the contact box best regartds

Project information

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