Skip to content

Community – Community

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • seotrader

    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 🙂

  • seotrader

    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

Viewing 3 posts - 1 through 3 (of 3 total)

Learn the method behind the answers.

The Academy’s free courses take you from a demo account to your first Expert Advisor, taught by the traders who answer here.