Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Specific Current Day OHL method
Collapse
X
-
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.Tags: None
-
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.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
581 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
338 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
552 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment