Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trade lastTrade =

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

    #16
    Please attach your strategy file and I will try it on my end. Thank you.
    Josh P.NinjaTrader Customer Service

    Comment


      #17
      Here it goes.

      Thanks
      Attached Files

      Comment


        #18
        jriverac,

        Please try this instead:

        Change: Trade lastTrade = Performance.AllTrades[0];
        To: Trade lastTrade = Performance.AllTrades[Performance.AllTrades.Count - 1];
        Josh P.NinjaTrader Customer Service

        Comment


          #19
          OK, that did the trick!!

          Thanks a lot!!

          Best regards

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by kiffgj, Today, 04:23 AM
          0 responses
          10 views
          0 likes
          Last Post kiffgj
          by kiffgj
           
          Started by Lando Calrissian, Today, 07:30 AM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by lismartin, Yesterday, 04:47 PM
          1 response
          15 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by facuevasm, Today, 07:28 AM
          3 responses
          13 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by ballston, Today, 06:32 AM
          0 responses
          8 views
          0 likes
          Last Post ballston  
          Working...
          X