Home Forums General Discussion Trades are not closed in the end of the trading session

Trusted Trading Brokers banner
Viewing 14 reply threads
  • Author
    Posts
    • #6687
      User Avatarseotrader
      Participant

      Hello,

      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?

      Thanks

    • #6688
      User AvatarHaliffa
      Participant

      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.

    • #6689

      Hello,

      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?

      • #6690
        User Avatarseotrader
        Participant

        Hi Petko,

        you have marked the boxes before generating the EAs right?

        yes

        you kept the same settings while exporting the EAs?

        yes

        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;”

        Thanks

    • #6693
      User AvatarThetrader
      Participant

      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.

    • #6696

      Hello Seotrader,

      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.

    • #6710
      User Avatarseotrader
      Participant

      Hi Petko,

      I sent it to info@eaforexacademy.com

      Thanks!

    • #6711

      Yes, we will review it and come back to you!
      Cheers

    • #6716

      Hello Gilad,

      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:

      Download Portfolio Expert Content

    • #6724
      User Avatarseotrader
      Participant

      Hi Petko,

      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 🙂

    • #6739

      Hey Gilad,

      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 A

    • #6877
      User AvatarThetrader
      Participant

      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…

    • #7292
      User AvatarAndi
      Member

      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.

    • #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.

    • #7529
      User AvatarPete
      Participant

      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

    • #7545

      Hey Pete,

      this is what everyone is looking for – fully automated trading. Now many decide to interfere the EAs after they see some negative results when there are hot economic news.

      I receive this question so many times: Should we pause the EAs on the news? And to be honest with you, so far I can not provide 100% answer to that.

      On one side is the fact that we can limit a bit the risk(but in the same time we can miss profits)

      On the other side is exactly what you say, we generate the EAs over all the data, so they should work during the news.

      I keep on looking the right answer, but probably it won’t come.

Viewing 14 reply threads
  • You must be logged in to reply to this topic.
Shopping Cart