Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Specific Current Day OHL method

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

    Specific Current Day OHL method

    I would like to create a User Defined Method for my custom indicator and strategy development that marks the price point at which an intraday High has remained such for n=10 bars, or at which an intraday Low has remained such for n=10 bars, with n = variable parameter. I intend to use these points to calculate break-outs (for example, when price rises above the Current Day High for at least 10 bars, go long). Thank you.

    #2
    Hello rcollen,

    Thank you for your post.

    Information on UserDefinedMethods can be found at the following link: http://www.ninjatrader.com/support/h...ed_methods.htm

    You will need to create a method for the Indicators and one for the Strategies. You would need a custom count of the bars since the High or Low was reached. You will need to use CurrentBar in the Indicator or Strategy and feed this int to the UserDefinedMethod as a variable that can be used to compare how many bars have passed. Information on CurrentBar can be found at the following link: http://www.ninjatrader.com/support/h...currentbar.htm

    Please let me know if you have any questions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    83 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    45 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    65 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    56 views
    0 likes
    Last Post CarlTrading  
    Working...
    X