Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Consult about: Performance.RealtimeTrades.TradesPerformance.Curre ncy.CumProfit
Collapse
X
-
Consult about: Performance.RealtimeTrades.TradesPerformance.Curre ncy.CumProfit
If I run 3 separate Strategies simultaneously, and I'd like to know this variable for each Strategy, will it give me the 3 separate results if I ask for it through email ( one for strategy )? or rather a global trading performance for all trades done in the same account ?
ThanksTags: None
-
Hello pstrusi,
This depends on what you are sending, however, yes, all private variables are local to that instance of the script and are not shared between instances and all strategy performance is local to that instance of the script and is not shared between instances.
When I say instance, I mean each active strategy of the same or different types. (There may be one script run multiple times. I am referring to each run of the script.)
So if you are sending private variables and performance of the strategy, then yes, the information is unique to that instance.
That said, if you are purposely sharing information with multiple scripts in a static class, then an static variables would be the same through all instances of all scripts (not just instances of the same type).Chelsea B.NinjaTrader Customer Service
-
Originally posted by NinjaTrader_ChelseaB View PostHello pstrusi,
This depends on what you are sending, however, yes, all private variables are local to that instance of the script and are not shared between instances and all strategy performance is local to that instance of the script and is not shared between instances.
When I say instance, I mean each active strategy of the same or different types. (There may be one script run multiple times. I am referring to each run of the script.)
So if you are sending private variables and performance of the strategy, then yes, the information is unique to that instance.
That said, if you are purposely sharing information with multiple scripts in a static class, then an static variables would be the same through all instances of all scripts (not just instances of the same type).
What I'd like to know separately is this variable for each strategy:
Performance.RealtimeTrades.TradesPerformance.Curre ncy.CumProfit
Since it's a system variable, I'm not sure if it will behave as a local variable. So could you confirm this variable will give me separated info?
Comment
-
Hello pstrusi,
Yes, everything that is listed in the Strategy section of the help guide that is made by NinjaTrader, including all Performance collections, all Positions, and all other things that are specific to strategies, are local to that instance of the script with the exception of one item.
http://ninjatrader.com/support/helpG...7/strategy.htm
The one exception to this is the GetAccountValue() call.
http://ninjatrader.com/support/helpG...countvalue.htm
This gets the account value which is the value of the account which would be the same for all scripts.
I recommend that you test this so that you are sure.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
3 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
1 view
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
6 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
||
Started by timmbbo, Today, 08:59 AM
|
2 responses
10 views
0 likes
|
Last Post
by bltdavid
Today, 04:10 PM
|
Comment