Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bug Report 2

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

    Bug Report 2

    Hello again,

    Plese consider previous post http://www.ninjatrader.com/support/f...ad.php?t=60092. At this post there is a strategy running tick by tick. In this strategy position.marketposition checking with if statements. I mean;

    if (Position.MarketPosition == MarketPosition.Long) { Do someting }
    if (Position.MarketPosition == MarketPosition.Flat) { Do someting }

    if i change this code like this;

    if (Position.MarketPosition == MarketPosition.Long) { Do someting }
    else if (Position.MarketPosition == MarketPosition.Flat) { Do someting }

    test results are trades, entry/exit times, profits, losts are same but in performance report there is little difference; only average MAE, MFE and ETD values are different, all other values(porift, loss, net profit, profit factor, trades counts etc.) for performance report are same.

    I think there is general floting point problem but i wory about is this normal; for example first test average MAE is $60,21 and for second test average MAE is $60,42. I think, this difference is so big. Isn't it?

    Have a nice day.

    #2
    Do you have a simple sample script, test settings, and test period that replicates the issue you are seeing so that I can test on my end?

    Located in (MY)Documents\NinjaTrader 7\bin\Custom\Strategy
    LanceNinjaTrader Customer Service

    Comment


      #3
      Hello Lance,

      Sory, this strategy will use for commercial purposes. I can't share it but maybe draft will be useful for you.I think entry/exit conditions are not important in this situation. I think more important things are, using short term chart for example 2 min chart and generate almost 1000 trades. Actually these average values not very important for, I just wanted to let you know.

      Thanks.

      Comment


        #4
        Ok, In order for me to test it, it would need to be a script simplified down as far as possible that can replicate the issue.

        So just let me know if you'd like me to look further into this.
        LanceNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        649 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        370 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        576 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X