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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        89 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        135 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        119 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        69 views
        0 likes
        Last Post PaulMohn  
        Working...
        X