|
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 |
[sol]
|
Post subject: My strategy hangs at 21.30 on Friday in tester |
Post rating: 0
|
Posted: Tue 06 Jan, 2009, 12:43
|
|
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?
|
|
|
|
|
API Support
|
Post subject: Re: My strategy hangs at 21.30 on Friday in tester |
Post rating: 0
|
Posted: Tue 06 Jan, 2009, 16:13
|
|
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.
|
|
|
|
|
[sol]
|
Post subject: Re: My strategy hangs at 21.30 on Friday in tester |
Post rating: 0
|
Posted: Wed 07 Jan, 2009, 19:23
|
|
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.
|
|
|
|
|
|
Pages: [
1
]
|
|
|
|
|