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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    169 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    324 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    250 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    353 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    180 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X