PDA

View Full Version : How to terminate/stop the strategy within the script


intrader
09-27-2007, 01:25 PM
What is the name of the method/fuction that can be called within NinjaScript to stop running that script further/terminate itself based on some condition. Thank you.

NinjaTrader_Ray
09-27-2007, 01:30 PM
This is not officially supported however you can try -

Running = false;

I am not sure of any potential implications in calling this so you will need to test this.

intrader
09-27-2007, 02:15 PM
Thank you!

scurvy
10-02-2007, 09:38 PM
Is this anywhere on the product roadmap? I'd really like to see this feature myself for account/money management purposes.

This is not officially supported however you can try -

Running = false;

I am not sure of any potential implications in calling this so you will need to test this.

NinjaTrader_Dierk
10-03-2007, 12:32 AM
We have it on our list yet. Unfortunately there is not ETA yet.