Announcement

Collapse
No announcement yet.

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 NullPointStrategies, Today, 05:17 AM
        0 responses
        50 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        126 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        69 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X