Tagged: ea, trading session
- This topic has 15 replies, 6 voices, and was last updated 4 years, 5 months ago by Petko Aleksandrov.
October 26, 2018 at 18:19 #6687
My trades are not closed in the end of the trading session, although I marked these below when I generate the ea’s.
Any idea why it happened?
ThanksOctober 26, 2018 at 21:15 #6688HaliffaParticipant
From what I see, your trades must close at 16:30 from Monday to Thursday and on Friday trading session they should be closed at 13:15. May be you are missing something else.October 26, 2018 at 21:18 #6689
Keep in mind that these are the major settings for the EA Studio. So it will affect all EAs that you are exporting.
So you you have marked the boxes before generating the EAs right? Also, you kept the same settings while exporting the EAs?
Also, do you see in the journal of the EAs in EA studio that the trades are out at the close of the trading session?October 26, 2018 at 21:48 #6690
you have marked the boxes before generating the EAs right?
you kept the same settings while exporting the EAs?
do you see in the journal of the EAs in EA studio that the trades are out at the close of the trading session?
No , when the session day ends, some trades stay open although in the code I have “const bool sessionCloseAtSessionClose = true;”
ThanksOctober 27, 2018 at 8:49 #6693ThetraderParticipant
I have tried that and it worked well for me. I did it for the NY trading session with the USDCAD and with the EURUSD.October 27, 2018 at 11:26 #6696
can you please send this EA to the mail, so we can have a look at it. It is hard to say this way from just one picture.October 29, 2018 at 16:32 #6710
I sent it to email@example.com
Thanks!October 30, 2018 at 10:04 #6711
Yes, we will review it and come back to you!
CheersOctober 31, 2018 at 9:01 #6716
Can you please send me the collection. I see that this is portfolio Expert and in order to see its content of strategies I will need to have the collection of strategies. Also, please tell me the exact hours you have placed in your trading session.
Go to Portfolio, than click on Content and then you will see the Download icon:November 1, 2018 at 14:43 #6724
I believe I found the problem :
My broker time zone is 2 hours later than GMT, so I needed to adjust the time zone by adding 7200 seconds
For the US session pairs I wrote to close the trade at second 86,400 , which is 12:00 am , which is invalid.
I changed it to 86,000 and it is working now
Thanks 🙂November 2, 2018 at 19:13 #6739
Glad to hear that. I supposed it was something similar because I have tested the trading session hours and EA Studio so much so far, and no such issues are there.
Anyway, it is software, there could be always some bug, if you notice something let us know so we can report it.
Have a great weekend!
Petko ANovember 16, 2018 at 22:40 #6877ThetraderParticipant
Petko, if you have red hot news, do you pause the EAs when trading with Expert Advisors during the trading sessions?
It will become very small interval, and also it will be hard to generate EAs, right? They do not repeat daily…December 2, 2018 at 23:29 #7292AndiMember
I would not have in mind the news if I am using the trading session hours. As you said the interval will be too small.December 2, 2018 at 23:33 #7293
Yes, you are right. We should not pause the EAs before the Red Hot news when we do trading session with Expert Advisors.
Actually the most important for me is that when we generate the EAs we put the whole trading session and we ignore the news. As Thetrader says they do not repeat daily, and we can not implement that in the Historical data.December 8, 2018 at 10:04 #7529PeteParticipant
I learned not to look at the news when I do algorithmic trading. For what?
When we generate EAs we use the whole Historical data, we do not eliminate the news. So you should not bother at all with this.
As well if the EAs are not created for trading session, we should just trade them 24 hours from Monday to Friday
You must be logged in to reply to this topic. Login here