Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bars are wrong on strategy performance (negative bars)

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

    Bars are wrong on strategy performance (negative bars)

    Getting some strange "bars" results on running a "historical and real-time" performance on a running strategy. See the attached graphic, trade 2 and 3 are wrong. This is a strategy running on 1 minute bars.

    This is with the latest beta, downloaded tonight.

    -Erik
    Attached Files

    #2
    Related to the above post, in my strategy I have the following code to wait 15 bars before entering a trade after exit. This seems to work fine in real time, but in back testing it doesn't. Using the following in my multi period strategy:

    && (BarsSinceExit(0,"ShortLimit", 0) > 15 || BarsSinceExit(0,"ShortLimit", 0) == -1 )

    If you look at trades 7 and 8, trade 8 entered before trade 7 closed, and when I do a right-click chart of trade 7, it doesn't appear, only trade 8. See attached chart.
    Attached Files

    Comment


      #3
      Hmm. Could you send me a simple as possible strategy that highlights the issues you are experiencing? I would like to run some tests based on your environment. Thanks for the help.
      Josh P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by EB Worx, 04-04-2023, 02:34 AM
      7 responses
      161 views
      0 likes
      Last Post VFI26
      by VFI26
       
      Started by Mizzouman1, Today, 07:35 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by Radano, 06-10-2021, 01:40 AM
      20 responses
      616 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by i019945nj, 12-14-2023, 06:41 AM
      6 responses
      68 views
      0 likes
      Last Post i019945nj  
      Started by aa731, Today, 02:54 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X