Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy run in chart or analyzer
Collapse
X
-
Hello Kujista,
Thank you for your post.
There is not a method to determine this. However, you can use the Historical check which would allow you to filter out historical data or not.
if(Historical) return;
This line will only run on live data that is coming in and would exclude any data for a backtest.
http://www.ninjatrader.com/support/h...historical.htm
Let me know if I can be of further assistance.Cal H.NinjaTrader Customer Service
-
Hello Kujista,
There is no method to tell where the strategy is working from.
The reason for the historical is that since the Strategy Analyzer is always historical data you can run that check. Since, when running on a chart you would have real time data coming in and the Historical check would be false at that point.Cal H.NinjaTrader Customer Service
Comment
-
I understood the point, I guess. It's just that I generate a lot of data when in "analysist" mode on historical data, and these data will be generated also when using strategy analyzer. So I am trying for a method to figure when these data should not be generated. Only silly method that comes to my mind is another parametry (true / false).
Comment
-
I needed to know this to avoid an error in Strategy Analyzer when doing an Override of DisplayName that included the Account.Name on the chart. I caused NT to crash in the SA so I'm doing a null check of Account. ( Account == null ? "SA" : Account.Name ) There may be situations where Account is null in the Strategy but seeing as an Account has to be selected to enable it I don't see why it would be.
Comment
-
Hello ctrent,
Thanks for your notes.
To clarify, this is an old forum thread for NinjaTrader 7 which does not have an Account class available and does not have the the DisplayName override for names of scripts that appear on the chart.
These are NinjaTrader 8 features.
NT8 Account Class: https://ninjatrader.com/support/help...ount_class.htm
NT8 DisplayName: https://ninjatrader.com/support/help...isplayname.htm
If you have a NinjaTrader 8 question regarding this topic, please post a new thread in the NinjaTrader Desktop > General Development section of the forums and we will be happy to assist you.Brandon H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by cre8able, Today, 01:16 PM
|
1 response
3 views
0 likes
|
Last Post Today, 01:30 PM | ||
Started by chbruno, 04-24-2024, 04:10 PM
|
3 responses
47 views
0 likes
|
Last Post Today, 01:29 PM | ||
Started by samish18, Today, 01:01 PM
|
1 response
6 views
0 likes
|
Last Post Today, 01:25 PM | ||
Started by WHICKED, Today, 12:56 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:17 PM | ||
Started by WHICKED, Today, 12:45 PM
|
1 response
11 views
0 likes
|
Last Post Today, 01:08 PM |
Comment