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 cmoran13, Yesterday, 01:02 PM
        0 responses
        29 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        21 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        160 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        95 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        148 views
        2 likes
        Last Post CaptainJack  
        Working...
        X