Forum

How to make my MQL4 script run on a certain past date and time

Hello, I am trying to make my script runs on a certain point (past not future) but all the functions I see is current or checking cyclically for a future point. Any idea how to do so? For example if today is 25th Nov 2022 and I want my script to run in a certain time in date 20th Nov 2021

EA is triggering too many orders at the same Bar

Hello I have noticed that my EA is trigger is triggering too many orders at the same Bar although I've done my calculations to be judged for bar only once. (see attached EA triggers...png) This is making it so hard for me to debug/analyze each order to evaluate my EA EA algo is as simple as updating

Attempt to access the data of an indicator and get its data into an array to check against later.

Hello, I'm trying to access the data of customer indicators I have "Aroon Up&Dn" and "MCAD" and get its Data in an array to do some checks on it later. But I always get " Array out of range " error. Maybe that's because I'm attempting to access the data of an indicator buffer while its size has not

Unexpected token" error when declaring a struct using typedef

Hello I am getting this strange error for me when I define a struct like in the image using typedef. Can anyone help me with what is the "unexpected token" erros and how to fix this ??! Thanks a lot in advance