The EA should establish a Websocket connection with a Server and sends and receives commands.
Commands:
- send account information on EA Init:
"account=%d|name=%s|server=%s|broker=%s|balance=%.f2|equity=%.2f|pair=%s|owner=%s!"
It should send the account number, account name, server name, broker name, balance, equity, symbol on which the EA is active and owner is a email which needs to be changeable via the EA settings. Each command ends with an "!"
- send account information on every new bar in the following format:
"account=%d|balance=%.f2|equity=%.2f|ping=true!"
It should send the account number, balance, equity and ping=true on every new bar.
- receive Market Order informations in the following format:
"op=Buy|entry=2.0010001|sl=2.0010001|tp=2.0010001|lots=0.01|id=9|account=123123|idea=9!"
op can be Buy or Sell
Entry can be ignore, since we execute market orders
Sl is the price where the SL needs to be placed
TP is the price where the TP should be placed
Lots is the Lotsize of the order
id should be the comment, save it as a variable
account should be the account, make a check if the account == current account
idea is the ID to identify the trade on the server, save it as a variable
- send status of Market Order execution in the following format:
Once a Trade Execution is received and the trade is opened send a command to inform the server that the order has been executed
"account=123123|ticket=1122|status=success|idea=9|id=9!"
account is the current account
ticket is the ticket number of executed trade
status should be "success" if the order opened, if not please send the error code + message as status
idea is the ID (server side) which has been send in the order command (above)
id is the Order ID (server side) which has been send in the order command (above)
If the websocket connection is lost, establish a new connection
Similar orders
An intelligent robot designed for gold trading with the aim of achieving sustainable profits and minimizing the risks associated with sharp fluctuations and sudden market movements. The robot determines the ideal trading range based on past market data analyses. Opens buy and sell trades according to daily price changes. Monitors economic indicators that affect gold (such as interest rates and US Federal Reserve
I want to create forex expert advisor for mt5 platform i need it trade on my behalf the way i want it and i only waht developer from Nigeria to bide for this project so i can relate with them better If you from nigeria bid for this project we can discuss my strategy better. Thanks
Hello Everyone, I want to create an Expert advisor with a simple logic of taking trades at a specific price position over a period of time with a capability of increasing the lot size if the bid closed at a loss from the initial position. So what happens is that at beginning of installation, the market identifies the high price and low price position after the installation. It then uses a gap position (in real price)
I need a trade copier, MetaTrader 4 to tradelocker. Looking for experienced programmers to create this trade copier for me. Let me know if you can. Thank you very much
I'm looking forward to create an account and start ea trading On-balance volume (OBV) Accumulation/distribution (A/D) line Average directional index Aroon oscillator Moving average convergence divergence (MACD) Relative strength index (RSI) Stochastic oscillator
EXPERT ADVISOR BASED ON BOTTOM UP/BOTTOM HEAD SHOULDER/IHS, SUPPORT AND RESISTANCE LOOKING FOR MQ5 CODE AND EX5 BASED ON MAIN LOGIC FOR TRADING: HTF INPUTS, CANDLE PATTERN TRUE/FALSE INPUT, 5 MULTIPLE INPUT TAKE PROFIT WITH BREAKEVEN IN PERCENTAGE INPUT, 3 STOPLOSS TRAILING IN PERCENTAGE INPUTS, PANEL SHOWING TRADES, PROFIT, LOSS, ACTIVE BUY/SELL LOT IN PERCENTAGE BUTTON, SELL/BUY/TRADE BUTTON TO DISABLE ALGO
tenho uma estratégia PINESCRIPT do tradingview e transformar queria em EA mql5 pra mt5 e adicionar trailingstop e opção de não trabalhar em horários de notícias 3t sobre USD. emitir poup upps de entradas dos ativos
Binary options / forex trading is one of the most reliable online global wealth creation, highly profitable as a lot of investors do made away thousands of dollars from the market on daily, weekly & monthly basis
Firstly, I have created this order before. However, I was let down by the developer, therefore only apply if you are completely able to carry out this this order. Requirements and Specifications for Dobby Mining 12th November 2024 1. I will provide V5 Pine Script strategy (82 lines of code). 2. The Pine script provided is and will remain the customer’s intellectual property. 3. The MQL5 source code
I want a robot that will trade automatically be able to open and enter trades and also be able to close trades or take profit using exponential moving average strategy and also analyze the charts before taking any trades , the slow moving average will be exponential moving average median price of 10 and the fast exponential moving average median price will be 23