Forum

Is there any way to limit the number of ticks in a second

Hello everyone, As you know, OnTick() method will get triggered with any new tick gets pushed from the market. Sometimes, there will be only one tick a second, sometimes it can get as high as hundred. This becomes a problem when running multiple terminals on the same computer. Is there any way to

Too Many Opened Files - Error 5001

Hello everyone, I've been struggling with the error for some time now, and I can't seem to make it work. I'd appreciate if someone can help. This is my code: void Writer( string body, string filename, bool ShouldBeEmptied){ int handle; while ( true ){ if (ShouldBeEmptied){

Share Writing Into a File

I have this project in which I need to execute two trades instantly among two different brokers. I use the native MQL4 function such as FileOpen and FileWrite to communicate the orders between brokers. What I had an issue with is that some orders will not write to the file if it was previously

Do Brokers Allow Statistical Arbitrage

Throughout the years I used well over +50 brokers, and from what I know all of them will not allow arbitraging (doing latency arbitrage), meaning, to find a broker with a slow price feed and trading against it knowingly how the price will move based on a fast price feed. Doing this will make you a

Checking If Market Opened or Closed - Mql4

Hello everyone, For the past few days I've been looking for a reliant solution for this issue as many of the solutions I found online have many drawbacks. Market Open or Close - how can I find it? - Day Trading Strategies - MQL4 and MetaTrader 4 - MQL4 programming forum (mql5.com) First of all, I

OrderClose() returns true but the position is never closed.

I had this situation recently in which I was trading among two different brokers. I’d send an order to each broker at the same time, to open, and the same would be if i’m closing. The closing must be on the same time. What I had struggled with is when one broker would accept the order while the

Quick Channel is Not Functioning As Expected

Dears, I have been trying to achieve this one-way communication between two sperate account in two different brokers.. I even tried to make those two accounts within the same broker but still no feed is being sent through, not even the error messages being displayed. Sender #import