Forum

Issue: AccountInfoDouble(ACCOUNT_BALANCE) returns 0 all the time.

Hello everyone, I'm developing an EA and upon trying to get the account balance I'm getting the value 0. Does anyone know which is the reason of this? Here there is an example of how I'm getting a 0. void OnInit () { Print ( "OnInit: " , AccountInfoDouble ( ACCOUNT_BALANCE )); } void OnTick ()

CopyTicksRange does not take ticks

Hello everyone, I'm trying to use the CopyTicksRange function and it does not copy any ticks. I'm connected to the FTMO server and I'm able to download the ticks through the symbols menu and also, I'm able to get rates using CopyRates. Here is an example: void OnInit () { MqlTick ticks[]; int

OnTimer bug

There seems to be a bug with the OnTimer event. I'm trying to restart the timer inisde the OnTimer event and the first cycle after the restart is not executed. Let me show you an example: void OnInit () { EventSetTimer ( 2 ); } bool timer_set = false ; void OnTimer () { if (!timer_set) {