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

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 DJ888, Today, 10:57 PM
    0 responses
    2 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    158 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Today, 09:29 PM
    0 responses
    7 views
    0 likes
    Last Post Belfortbucks  
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    151 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Working...
    X