EA Forex Academy – Algorithmic & Manual Trading Courses Forums Forex Trading Forum Trades are not closed in the end of the trading session

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #6687
    seotrader
    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.

    View post on imgur.com

    Any idea why it happened?

    Thanks

    #6688
    Admin bar 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
    seotrader
    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
    Thetrader
    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
    seotrader
    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
    seotrader
    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
    Thetrader
    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
    Admin bar avatarAndi
    Participant

    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
    Pete
    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

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.