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 manueldecastro, Today, 01:16 PM
        2 responses
        8 views
        0 likes
        Last Post manueldecastro  
        Started by tradingnasdaqprueba, Today, 03:42 AM
        9 responses
        34 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by llanqui, Yesterday, 03:51 PM
        6 responses
        26 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by AlgoDreamer, Today, 12:39 PM
        2 responses
        9 views
        0 likes
        Last Post AlgoDreamer  
        Started by ninza33, Today, 12:31 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Working...
        X