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!
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
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 algospoke, Yesterday, 06:40 PM
|
2 responses
19 views
0 likes
|
Last Post
by algospoke
Today, 07:04 PM
|
||
Started by ghoul, Today, 06:02 PM
|
3 responses
14 views
0 likes
|
Last Post Today, 06:43 PM | ||
Started by jeronymite, 04-12-2024, 04:26 PM
|
3 responses
45 views
0 likes
|
Last Post
by jeronymite
Yesterday, 10:10 PM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
7 responses
21 views
0 likes
|
Last Post Today, 06:16 PM | ||
Started by AttiM, 02-14-2024, 05:20 PM
|
10 responses
181 views
0 likes
|
Last Post
by jeronymite
Today, 06:11 PM
|
Comment