Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Crossover thresholds

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

    #16
    Hi billr,

    This is Tim stepping in for Austin, what is the issue with TickSize in that context? I don't see this specifically mentioned in previous posts.
    TimNinjaTrader Customer Service

    Comment


      #17
      Hi Tim, I just saw your post. Austin noticed unexpected results using this sort of approach:
      if (CrossAbove(SMA(10), SMA(20)[0] + TickSize, 1));
      to requiring a minimum crossover threshold of at least 1 tick to trigger a signal. (the crossover values are apparently several decimals beyond what is shown on the Data Box, and the crossovers calculated on such a tight tolerance are sometimes spurious)

      He was going to look into why it was not working the way one would expect.

      Comment


        #18
        billr, sorry for the late reply - it has likely do with the rounding of the values producing the crossover, as you're dealing with double values here - I'll ask Austin what he found out, so he can update the thread.

        Thanks for your patience

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        65 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X