I'm looking to edit the PriorDayOHLC indicator that is provided to add extra functionality. One thing I would like to do is add definable session times to this indicator.However I need to see how this is coded. If its possible any examples of working with user definable times so I can get a better understanding of coding this.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
User definable times in indicator
Collapse
X
-
User definable times in indicator
My previous post must not have been clear.
I'm looking to edit the PriorDayOHLC indicator that is provided to add extra functionality. One thing I would like to do is add definable session times to this indicator.However I need to see how this is coded. If its possible any examples of working with user definable times so I can get a better understanding of coding this.Tags: None
-
Hello synthhokie,
Thank you for your post.
To define custom trading sessions, you could use a time filter.
The following reference sample demonstrates how to code a time filter:On the NnjaTrader Ecosystem AppShare site you’ll find several indicators that incorporate user-defined sessions.
For example, sessions in this _TradingHoursSessionsZones indicator are defined by the user in the indicator properties:
You may view the code for NinjaScripts you have downloaded from the AppShare in the NinjaScript Editor, once you have imported them.
Here is a basic guideline on how to import NinjaScript add-ons in NinjaTrader:- Download the NinjaScripts to your desktop, and keep them in the compressed .zip file.
- From the Control Center window, click Tools > Import > NinjaScript Add-on...
- Select the downloaded .zip file
- NinjaTrader will then confirm if the import has been successful.
Once installed, you may add the indicator to a chart by right-clicking in your Chart > Indicators > and double-clicking the Indicator from the 'Available' list on the left.
Here is a short video demonstration of the import process - How to Install a 3rd Party Indicator or App
Please let us know if you have any additional questions.
The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
-
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