Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Total Net Profit != Cumulative Profit?

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

    #16
    Thanks Bertran, by the way I want to know if there a way that I can add all the value that has been recorded in a list?

    Comment


      #17
      Originally posted by NinjaTrader_Bertrand View Post
      FlattenEverything will disable your strategy, so to have it trade again, you would need to restart it first.

      A hotkey for FlattenEverything can be setup in NT7's hotkey manager - http://www.ninjatrader.com/support/h...ey_manager.htm

      Unfortunately NinjaScript strategies would not cross communicate, so you could not access the PnL of strategy A in strategy B - a workaround could be using txt files to 'globally' store the values for reference.
      Hello Bertran, can I ask for a hint how to globally store the values of my strategies for reference? And how to add all the values in one text file line by line. I have 5 strategies running on test then I will store the 5 values in one line using splitting and then I want to add it all then the sum would be in the split 6. Is this possible? Or is there a way that I could add all the values in one line each bar? Sorry for my tricky thing.

      Comment


        #18
        I would unfortunately not have a complete coded out sample available for you, the basic idea is to store what you need globally in a text file so other scripts could access it then - if you feel this would be above your current coding skills and wish to have it professionally programmed for you, contacting a consultant would be a good route to choose - http://www.ninjatrader.com/partners#...pt-Consultants

        Comment


          #19
          Hello, I have a question. Is there a way to check weather my target 1 or target was hit? I know that there is a GetAtmStrategyPositionQuantity method to check the quantity and I am also assuming that there is also a method for checking a target.

          Comment


            #20
            Question:

            How can I connect my current DataSeries value to the last 3rd prior bar value of the same DataSeries.

            3rd bar prior value: j = 23;
            current bar value c = 2;

            myDataSeries.Set(j,c);
            myDataSeries.Set(c);

            Is it correct? I want my DataSeries to plot only in every 3 bars ellapse then 3rd bars back should connect to the current bar.

            Comment


              #21
              yes, you can check for the stop and target order fill state of your ATM template generated orders - http://www.ninjatrader.com/support/h...rgetorders.htm

              Correct for the dataSeries, you would 'connect' then the current value to a value x bars ago - an example would be the plot color sample we have up for 6.5 still - http://www.ninjatrader.com/support/f...ead.php?t=3227

              Comment


                #22
                Bertran can I ask help on you on make a strategy to run only until May 1,2011 and it will never be used again?

                Comment


                  #23
                  luxurious_04,

                  To do this you want to create a time filter. You can use the concept shown in this reference sample, but instead of using ToTime() you can use ToDay().

                  Josh P.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  647 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  367 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  108 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  571 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  573 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X