Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Consult about: Performance.RealtimeTrades.TradesPerformance.Curre ncy.CumProfit

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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 ?

    Thanks

    #2
    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

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      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).
      Hi Chelsea, thanks for your attention.

      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


        #4
        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


          #5
          Thank you very much for your clear answer.

          Best regards

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          3 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          18 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          1 view
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          6 views
          0 likes
          Last Post Javierw.ok  
          Started by timmbbo, Today, 08:59 AM
          2 responses
          10 views
          0 likes
          Last Post bltdavid  
          Working...
          X