Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

My strategy hangs at 21.30 on Friday in tester
 Post subject: My strategy hangs at 21.30 on Friday in tester Post rating: 0   New post Posted: Tue 06 Jan, 2009, 12:43 
User avatar

User rating: 0
Joined: Wed 19 Nov, 2008, 20:45
Posts: 10
It seems that it is doing so when there are open orders.

Can you help me?


 
 Post subject: Re: My strategy hangs at 21.30 on Friday in tester Post rating: 0   New post Posted: Tue 06 Jan, 2009, 16:13 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
On weekends (after 21:00 GMT) strategy tester rejects all orders, so if you submit order, you get ORDER_SUBMIT_REJECTED. Check your strategy that you don't try to resubmit order again when getting such a message, if you do (and you do) then you will get in infinite cycle sending and getting rejects all the time.


 
 Post subject: Re: My strategy hangs at 21.30 on Friday in tester Post rating: 0   New post Posted: Wed 07 Jan, 2009, 19:23 
User avatar

User rating: 0
Joined: Wed 19 Nov, 2008, 20:45
Posts: 10
Thank you, I have fixed my code, but I still don't get why infinite loops arise.

I thought that messages will go on until monday when the order would be completed.


 

Jump to:  

  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com