Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Intrabar Crossing Point Indicator

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

    Intrabar Crossing Point Indicator

    The idea is to program an indicator that would consider the range of error in determining the crossing of prices and a SMA of the close without the need of intraday data. The purpose is to use this indicator value as any other value calculated at close and use it as means to enter/exit in today's bar instead of tomorrow's. This artifice would allow me to search 1-2-3 bar setups with daily historical data.

    As an example let us consider a 20 period SMA. The upper maximum value above today's close was (H-C)/20. The lower minimum was (C-L)/20.

    If we consider today's range in % as: 100*(H-L)/C= 5%, it is interesting to note that the maximum range of possible crossing points fall within a relatively narrow 5% / 20 = 0,25% band. In numbers it would look like this (example).

    H=10 doll
    L=9,5 doll
    error range: 0,5/20 = 0,025 doll (1/20 of the bar range)

    To use this value in backtesting one could use the closing value of the SMA as the crossing point and consider the STDEV from it to have an idea of the size of possible error. Calculation for EMAs are not much more difficult.

    Unfortunately I can only consider the idea theoretically. No scripting skills yet.

    rgds

    -geo-

    #2
    geovani,

    As a last resort you could try one of the 3rd party NinjaScript Consultants to make this for you: http://www.ninjatrader.com/webnew/pa...injaScript.htm
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    574 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    332 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    551 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X