Forum

Issue on OnTradeTransaction

Hi All, I hit a rare issue in OnTradeTransaction , which I suspect could be a bug. Basically, what I did is in OnTradeTransaction, I will check the order_state and if the order_state is TRADE_TRANSACTION_DEAL_ADD, then it will print the following Print("On Trade for Ticket:", lastOrderID, "

After upgrade to MT5 build 4231 , ObjectGetInteger(chart_ID,name,OBJPROP_STATE) cannot get the state correctly

Hi, I realized after upgrade to build 4231, some of the terminal cannot get state for button correctly, I am using this code ObjectGetInteger(chart_ID,name,OBJPROP_STATE) to get the button state , but no matter ther state is active or not , it keep returning 0. Can we get MQL5 team to check on this

MT5 Calendar library can't get RBA Interest Rate Decision for 6 Feb 2024 and throw error 5035

I used GetCalendarEventbyCurrency(Symbol(),3,Events); to get a list of important event and I know that RBA Interest Rate decision is 36030008 [id] [type] [sector] [frequency] [time_mode] [country_id] [unit] [importance] [multiplier] [digits] [source_url]