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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        42 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        157 views
        2 likes
        Last Post CaptainJack  
        Working...
        X