I have several different exit strategies with counters that keep track of the number of times each exit strategy is executed. But I only want to keep track of the exits when it's a realtime trade and not including the days that are loaded prior to the realtime executions. How do I go about? Thanks.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Realtime executions
Collapse
X
-
Realtime executions
Hi,
I have several different exit strategies with counters that keep track of the number of times each exit strategy is executed. But I only want to keep track of the exits when it's a realtime trade and not including the days that are loaded prior to the realtime executions. How do I go about? Thanks.Tags: None
-
Hello 2Look4me,
Thanks for your post.
You can use the system bool Historical as part of the conditions to increment your counter.
Reference: https://ninjatrader.com/support/help...historical.htm
For example:
if (your condition to exit this exit strategy)
{
if (!Historical) // if NOT historical, meaning must be realtime (or market replay)
{
myExitStrategyCounter++; // increment my exit strategy colunter
}
// exit strategy stuff
}Paul H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by TheTradingMantis, 10-31-2017, 03:18 PM
|
5 responses
1,250 views
0 likes
|
Last Post
by TheAngryCube
Today, 04:06 PM
|
||
Started by Padan, Today, 02:02 AM
|
9 responses
23 views
0 likes
|
Last Post Today, 03:27 PM | ||
Started by spottysallrite, Today, 11:31 AM
|
7 responses
22 views
0 likes
|
Last Post Today, 03:26 PM | ||
Started by nandhumca, Today, 03:15 PM
|
1 response
4 views
0 likes
|
Last Post Today, 03:23 PM | ||
Started by PopovDS, 03-11-2024, 12:49 PM
|
3 responses
17 views
0 likes
|
Last Post
by PopovDS
Today, 03:16 PM
|
Comment