Hi, This is my first EA, so I apologize for my probably simple question.
I am working on an EA that based on certain conditions takes either 2 long, or 2 short trades each hour.
I am getting the following message in the journal –
order with magic number xxxxx already exists, can not open another one!
Thanks, I understand and have done that, but the issue is the next hour, I want the ea to open another 2 trades, and the following hour another 2 trades, regardless of if the previous trades are open or closed. if each new trade requires a new magic number, how can i get the EA to generate or assign its own magic number?
You must be logged in to reply to this topic.