AM I RIGHT? IS IT A SUNDAY TRADE (BACK TEST 99.9%) ?

To add comments, please log in or register
soubra2003
31844
soubra2003  



AM I RIGHT? IS IT A SUNDAY TRADE (BACK TEST 99.9%) ?

SEE SCREENSHOT BELOW:



whroeder1
17942
whroeder1  
Yes
soubra2003
31844
soubra2003  

whroeder1:
Yes






I know!!!
Just you want to reply?
..
Have you looked to the back test captured sunday trade?

Checking for Maket Closed
Checking for Maket Closed
  • 2016.12.25
  • www.mql5.com
Is there some method to check if the market is closed or open for trade. Except for getting an return code of 10018 when trying to place an order...
Eleni Anna Branou
Moderator
6620
Eleni Anna Branou  
Mohammad Soubra:



AM I RIGHT? IS IT A SUNDAY TRADE (BACK TEST 99.9%) ?

SEE SCREENSHOT BELOW:




Maybe there is a mix up between local and broker server time and this is a late Sunday - early opening trade.

Anyway this is another proof that backtests can never be 100% accurate! (not even close)

whroeder1
17942
whroeder1  
Mohammad Soubra:

I know!!!
Just you want to reply?
..
Have you looked to the back test captured sunday trade?
  1. If you know, why did you ask?
  2. You asked, I replied. What's your problem?
  3. You posted the journal, and the the date was Sunday. Why do you think I didn't see it?
soubra2003
31844
soubra2003  
Eleni Anna Branou:

Maybe there is a mix up between local and broker server time and this is a late Sunday - early opening trade.

Anyway this is another proof that backtests can never be 100% accurate! (not even close)

Yes it is a back test bug.
whroeder1
17942
whroeder1  
Local time is irrelevant. The tester only uses simulated server time.
soubra2003
31844
soubra2003  
Zee Zhou Ma:
It shouldn't happen. I think the coder needs to filter out the weekends and all public holidays.

I am the coder, and which code leads to trade in Sundays!

just it is a back-test bug.

sure

whroeder1
17942
whroeder1  
It's not a tester bug. Your code traded on a Sunday bar. You didn't code it not to, PICNIC
soubra2003
31844
soubra2003  
whroeder1:
It's not a tester bug. Your code traded on a Sunday bar. You didn't code it not to, PICNIC

Thanks for the wikipedia link above...

but which code or human error which makes the market opened in Sunday(s)??

Alain Verleyen
36131
Alain Verleyen  
Mohammad Soubra:

Thanks for the wikipedia link above...

but which code or human error which makes the market opened in Sunday(s)??

The market is open every Sunday...somewhere, due to timezones. If you have Sunday candles in 2013 and not currently, either you mixed data or your broker did. That's the first thing to check.

After that you can just filter Sunday or any undesirable period from trading. If you are using higher timeframe you can calculate them yourself.

But better and easier is to use reliable data using no Sunday candles at all. 

To add comments, please log in or register