Forum

MT4 Orderbook consitency

Hello, We handle large amount of orders and it is crutial to have the order book in a valid state. Lets take the OrdersTotal(); OrdersHistoryTotal(); OrderSelect(); functions,and data they get from the broker as an example. My question is, if the order book changes (trade is

Processing initial bars load in indicator

Hello, when you create an indicator and attach it to a chart, a buffer of bars is fed to the indicator. Is there a way to tell that these are history bars and not the realtime stream in the indicator? I tried a "newBar" function , but this works on history too, simply getting a new bar in the