Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

TradeStopTime is 1374, i didnt key in this time but it looks weird stop time

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

    TradeStopTime is 1374, i didnt key in this time but it looks weird stop time

    Backtesting using Kinetick Historical minute data
    Hi
    I backtested a strategy and had results of about 10 different strategy results, from that i chose one of them and ran a backtest/optimize. Attached is the image
    If you notice TradeStopTime is 1374, i didnt key in this time but it looks weird stop time. Im based in the UK.
    Why does this happen?
    Attached Files

    #2
    Hello honest-trader,

    Are you asking why this is a whole number instead of in a time format?

    Likely because the input is a public int (integer) and not a public TimeSpan or DateTime.

    Integers can be optimized over so often the start / end hour will be optimized from 0 to 23 and start minute from 0 to 59, and this would be used as the hour and minute parameters to create a DateTime object or TImeSpan object used within the logic of the script.

    I've moved this post to a new thread as it was not on the topic of the original thread.
    Last edited by NinjaTrader_ChelseaB; 04-11-2021, 03:54 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks for moving it.

      My question is 1374 is not a valid time and also Exit time is 1499 which doesn't look like a time related number?

      Comment


        #4
        Hello honest-trader,

        1374 is not a valid time, and this strategy does not appear to be setup correctly to use this input if it is intended to me a time input.

        Most coders will use an int for the hour and an int for the minute (separately) as alluded to in post #2.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by snoussi, Today, 12:26 PM
        0 responses
        5 views
        0 likes
        Last Post snoussi
        by snoussi
         
        Started by SnailHorn, 05-02-2024, 10:49 PM
        3 responses
        28 views
        0 likes
        Last Post SnailHorn  
        Started by giulyko00, Today, 11:49 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by marksingh87, 02-13-2024, 04:55 PM
        6 responses
        213 views
        1 like
        Last Post mshrstv
        by mshrstv
         
        Started by SnailHorn, Today, 08:38 AM
        2 responses
        5 views
        0 likes
        Last Post SnailHorn  
        Working...
        X