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 mic414, Yesterday, 11:52 PM
        0 responses
        2 views
        0 likes
        Last Post mic414
        by mic414
         
        Started by fmcap, Yesterday, 10:49 PM
        0 responses
        2 views
        0 likes
        Last Post fmcap
        by fmcap
         
        Started by iradielt, Yesterday, 10:06 PM
        0 responses
        2 views
        0 likes
        Last Post iradielt  
        Started by gbajaj, Yesterday, 03:35 PM
        2 responses
        11 views
        0 likes
        Last Post gbajaj
        by gbajaj
         
        Started by space_trader, Yesterday, 03:19 PM
        2 responses
        8 views
        0 likes
        Last Post space_trader  
        Working...
        X