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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
83 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
45 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
65 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
68 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
56 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment