Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

User definable times in indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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:
    1. Download the NinjaScripts to your desktop, and keep them in the compressed .zip file.
    2. From the Control Center window, click Tools > Import > NinjaScript Add-on...
    3. Select the downloaded .zip file
    4. NinjaTrader will then confirm if the import has been successful.
    Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc., and ask if you want to replace them, Always select 'No'.

    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.

    Comment


      #3
      Thank you!

      Comment

      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 Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      338 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X