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

Lavoro terminato

Tempo di esecuzione 3 giorni
Feedback del cliente
Awesome work! Clean and efficient code. Will definitely work with him again!
Feedback del dipendente
Thank you for the order. Hopefully you will enjoy your product :

Specifiche

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).


File:

Con risposta

1
Sviluppatore 1
Valutazioni
(144)
Progetti
198
42%
Arbitraggio
20
25% / 55%
In ritardo
9
5%
Gratuito
Ordini simili
I want to make a new dashboard using 3 common indicators and the ADX indicator , which you must supply I have a MA dash which you can strip & reuse if it helps you I tried to cover all questions in the attached but i'm sure there'll be more
I want the script in mql5 language for my martingale strategy. The script should open trades in both directions buy and sell and if any trade closes in loss then open new trade in that direction by using the next volume and when trade closes in profit then reset the volume to first from volume list and also maximum consecutive losses limit will apply. If trades closes consecutively in losses and hits the limit then
Long Position 1. Trend Line: When a Lower High (LH) is formed, draw a trend line from the previous Higher High (HH) to the new LH. 2. Trend Line Adjustment: If a new Lower High (LH) is formed without breaking the trend line, redraw the trend line to the new LH. Draw a trend line between the Higher High (HH) and the Higher Low (HL). If a new Higher High (HH) is formed, remove the previous trend line and draw a new one
I have a custom EA that works fine in the live market trading, but when doing a back test in the strategy tester , it does not open sell orders. There are no errors or warnings; it just doesn't open sell orders. I've checked every possible reason that might be the reason why it does not open sell orders, but I can't find anything, especially since it works fine in the real market and it opens both buys and sells
I'm looking for someone to help me create an arbitrage trading robot that can trade on any decentralized exchange and forex market. I already have some source code to a strategy but would like to enhance it to make it profitable and automated
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
I need EA that works on MT5 to be able to do the following: - Can recognize Support/Resistance area - Can recognize VWAP direction. - Can recognize RSI. - Can recognize Double Top/bottom, Bullish/Bearish hammer candle, Bullish/bearish engulfing candle. - Ability to set Stoploss below/above support/resistance, but risk must be fixed at a certain price. - Stoploss
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5
I am seeking a highly skilled and experienced developer to assist with an important project. I need a development of an automated trading bot for NinjaTrader, utilizing a 4 SMA (Simple Moving Average) crossing strategy, with additional custom diversions for trade entries. The bot needs to be based on a strategy involving the crossing of four different SMAs. The exact periods for these SMAs and the conditions for

Informazioni sul progetto

Budget
100 - 345 USD
Per lo sviluppatore
90 - 310.5 USD
Scadenze
a 3 giorno(i)