Forum

Running a code every 10 seconds

How to run a code every 10 seconds in MQL5 this can be done in a programming language like Javascript setInterval(() => { console. log ( "This will tick every 10 seconds" ); } , 10000 ); where 10000 milli-seconds equals to 10 seconds how to achieve this in MQL5

Using Interactive Brokers inside MetaTrader

Hey , is there anyway to link or integrate Interactive Broker to be used inside MetaTrader which means to open my IB account and trade with it inside MetaTrader

I can't close an order

I'm writing a copy trading service my code receive a signal and should execute it with OrderSend function it opens the position normally without issue but it does not close it , I give it the same attributes which used in opening it (but with reversed side(buy/sell)) inputs to open it market > XYZ

Converting Integer to Enum

I'm communicating with a server (send & receive) the data sent to my server as integer (0,1,2,3,4 .. and so on) this OrderSend function takes some data as MqlTradeRequest) this MqlTradeRequest requires attribute called ENUM_TRADE_REQUEST_ACTIONS action ; I have this ENUM as interger (0,1,2,3,4)

Sending WebRequest with certain data format

I know how to send a POST Request in MQL5 and how to pass the data but I would like to send the body with a certain format what I mean , I have these values int x = 0; int y = 1; I would like to have the body in this format (you know the REST API accept JSON body) { "singalData" : { "x"

Sending signals to a webservice

I'm building application to my client , which should send signals to my web-service I read the docs about OnTrade event , which something similar to what I want the event not have a callback with the new triggered order data the available examples illustrate a bit complicated samples , which I did

APIs for all brokers

I'm building a copy trading system the plan is to support multiple brokers is there a unified API for most of brokers ? I found some social trading platforms support most of brokers <Deleted> also the MQL5 signals here support multiple brokers <Deleted> looks there's a unified APIs for these trading

Can I write the codes with JS instead of MQL4/5 ?

Hey , I'm a senior developer who has a passion towards forex and algorithmic trading so I'm interested to make use of my programming skills and use it in the forex I just want to know if I can write indicators / EAs and so on .. with Javascript instead of MQL4/5 I searched much , but looks there's

Subscription to signals with a leverage exceeding 1:500 is not permitted

I changed my account leverage from 600 to 400 , to fix this issue, but the system still reads my leverage as 1:600 !! I also having more 2 issues Provider is waiting for registration as a seller > I'm working on this Subscription will be enabled when trading starts > what this means

Using Metatrader in MAC-OS after Catalina update

Anyone managed to use MetaTrader in MAC OS Catalina or know any solutions for this compatibility issue? reference for the issue : https://admiralmarkets.com/about-us/news/metatrader-mac-catalina-issue