Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy is not working in SIM
Collapse
X
-
Strategy is not working in SIM
I have created a strategy with Strategy Builder. It works in Strategy Analyzer but not in SIM101 with Continuum. The strategy has been added to the chart. The strategy is in the Strategies tab and is enabled and showing as green. Plot executions is set to Text and Marker in the Data SeriesTags: None
-
Hello Itachi,
Welcome to the NinjaTrader forums!
Please try testing the Sample MA Crossover included with NinjaTrader on the same instrument, bar type, and interval.
Are you seeing the Sample MA Crossover has historical and/or real-time orders submitted?
Are you looking at the strategy performance window?
If yes, are you viewing Historical, Real-time, or Real-time and Historical?
[url]https://ninjatrader.com/support/helpGuides/nt8/index.html?running_a_ninjascript_strateg2.htm#HowToViewStrategyPerformance[/url]
If the expected trade(s) are not appearing, this would indicate that the condition to place the order is not evaluating as true or the order is being ignored for other reasons.
To understand why the script is behaving as it is, such as placing orders or not placing orders or drawing objects when expected, it is necessary to add prints to the script that print the values used for the logic of the script to understand how the script is evaluating.
Below is a link to a forum post that demonstrates how to use prints to understand behavior and includes links to videos.
[URL]https://ninjatrader.com/support/forum/forum/ninjatrader-8/indicator-development/97575-sample-scripts?p=786040#post786040[/URL]
Please let me know if you would like assistance analyzing the output from the NinjaScript Output window.
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Waxavi, Today, 02:00 AM
|
0 responses
2 views
0 likes
|
Last Post
by Waxavi
Today, 02:00 AM
|
||
Started by elirion, Today, 01:36 AM
|
0 responses
4 views
0 likes
|
Last Post
by elirion
Today, 01:36 AM
|
||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
0 responses
4 views
0 likes
|
Last Post Today, 01:30 AM | ||
Started by samish18, Yesterday, 08:31 AM
|
2 responses
9 views
0 likes
|
Last Post
by elirion
Today, 01:28 AM
|
||
Started by Mestor, 03-10-2023, 01:50 AM
|
16 responses
391 views
0 likes
|
Last Post
by z.franck
Today, 01:04 AM
|
Comment