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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        50 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        16 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X