You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Having played around with this today, there is another problem with lack of synchronization between the local clock and broker.
Gooly's mod is definitely better.
So gooly and honest_knave, i've tried to put it all together, but guess I didn't succeded..
I know I have to study further more, but i'm trying, and this is why i'm here, if I already knew everything I wouldn't be asking for help, so, again, thank you guys for you time and patience..
Here is what i gor so far:
The objective is to open order in the 59th second when there is an arrow of a custom indicator.
Compiling this i got the following errors:
Hello gviali,
The first problem is you haven't created any code to check for a new bar (Gooly was using pseudo code).
The second problem is because TimeCurrent() and Time[0] are datetime, whereas tmeLeft is int.
The third problem was a typo.
It's working fine! A little delay some times, got some trades opened at 3 seconds after, but that must be due to my poor internet connection.
I just had to take off the Sleep function, it was making the EA open position as soon as the sleep time was over.
Thanks a lot for your help guys, I really apreciated that.
Hello guys, i toth it would be good to bring back alive this topic.
I'm having a situation with this code, he is exactly as its written above, except for Sleep function.
So, i'm watching it opens the orders normally when the arrow indicator plots it's arrow, but sometimes it doesnt open the position according to the indicator arrow. It is missing some entries, as if the ea haven't seen the arrow.
I wonder what is making this error, the GetLastError() function doesnt bring back any error, is as if the arrow haven't existed.
Anyone have a guest about what this could be?
Thanks in advance.