|
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.
| Stop client.startStrategy from inside onStart() method |
|
ipsec
|
| Post subject: Stop client.startStrategy from inside onStart() method |
Post rating: 0
|
Posted: Wed 03 Jul, 2013, 14:15
|
|
User rating: 0
Joined: Wed 03 Jul, 2013, 14:08 Posts: 16 Location: BrazilBrazil
|
|
I'm running many strategies.
My tests run inside onStart method from IClient.startStrategy(IStrategy s) While my tests finish I want to exit this method (onStart) and stop the running startStrategy. It continue running other methods like onBar, onTick...
How to do this?
Thanks
|
|
|
|
|
 |
|
API Support
|
| Post subject: Re: Stop client.startStrategy from inside onStart() method |
Post rating: 0
|
Posted: Wed 03 Jul, 2013, 15:37
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
|
 |
|
kurak777
|
| Post subject: Re: Stop client.startStrategy from inside onStart() method |
Post rating: 0
|
Posted: Wed 03 Jul, 2013, 15:50
|
|
User rating: 7
Joined: Fri 13 Jan, 2012, 20:49 Posts: 94 Location: Poland, Warsaw
|
|
Hi Support,
By the way I would like to ask about IContext#stop() method. Javadoc says that it does not work in IStrategy.onStart() - what are the side effects of that? I mean I've been using stop() method in onStart(), it works and I haven't seen any side effects so far.
best regards, Kurak
|
|
|
|
|
 |
|
API Support
|
| Post subject: Re: Stop client.startStrategy from inside onStart() method |
Post rating: 0
|
Posted: Wed 03 Jul, 2013, 15:53
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
The sentence is obsolete and will be removed from javadocs.
|
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|