Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Automated strategy becoming disabled
Collapse
X
-
Automated strategy becoming disabled
I left my automated strategy unattended for a couple of hours and for some reason it completely shut off. The indicators the strategy displays stopped showing up and the strategy stopped executing trades. How do I prevent this from happening again. Thanks in advance.
Tags: None
-
Hello Bmatarese,
Thanks for your post.
Please check the "Log" tab of the control center as this would show any error messages that would be related to and include the message of disabling the strategy. These error messages would provide some clue as to the cause. Once the cause is known then you can determine what is needed to prevent that.
If the strategy becomes disabled, it would be expected that any indicators applied by the strategy would be automatically removed from the chart.Paul H.NinjaTrader Customer Service
-
Hello Bmatarese,
Thanks for your reply.
It does indicate a loss of connection with the price data feed server. There could be a number of connection points between your PC and the source server so the connection loss could occur at any of those points, including your wifi. You can eliminate wifi issues by directly connecting to your router/modem.
You may want to review your connection loss settings for strategies. These are found in Tools>Options>Strategies. Please see the help guide section, "Understanding NinjaScript properties" on this page: https://ninjatrader.com/support/helpGuides/nt8/?options_strategies.htm for further information regarding these settings.Paul H.NinjaTrader Customer Service
Comment
-
Hello swjake,
Thanks for your notes.
To clarify, are you reporting that your custom NinjaScript strategy you created is becoming disabled?
If so, please check the Log tab of the Control Center for any error messages that would be related to the disabling of the strategy and includes the message of disabling the strategy. These error messages would provide some clues as to the cause for why the strategy was disabled. Once the cause is known then you can determine what is needed to prevent that.
If the NinjaScript strategy is not behaving as you expect it to, debugging prints should be added to the strategy to confirm exactly how your conditions and logic are evaluating. In the strategy add prints (outside of any conditions) that print the values of every variable used in every condition along with the time of that bar to see how the conditions evaluate.
Prints will appear in the NinjaScript Output window (New > NinjaScript Output window).
Below is a link to a forum post that demonstrates how to use prints to understand behavior.
https://ninjatrader.com/support/foru...121#post791121Brandon H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by f.saeidi, Today, 12:14 PM
|
8 responses
17 views
0 likes
|
Last Post
by f.saeidi
Today, 01:55 PM
|
||
Started by Mikey_, 03-23-2024, 05:59 PM
|
3 responses
49 views
0 likes
|
Last Post
by Sam2515
Today, 01:47 PM
|
||
Started by Russ Moreland, Today, 12:54 PM
|
1 response
7 views
0 likes
|
Last Post Today, 01:01 PM | ||
Started by philmg, Today, 12:55 PM
|
1 response
7 views
0 likes
|
Last Post Today, 01:00 PM | ||
Started by TradeForge, 04-19-2024, 02:09 AM
|
2 responses
32 views
0 likes
|
Last Post
by TradeForge
Today, 12:32 PM
|
Comment