Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Editing indicator to be used for Strategy

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

    Editing indicator to be used for Strategy

    Hi,

    I've previously executed an opening range strategy on another platform, which I'm presently trying to import to NinjaTrader.

    Basically, I'm trying to trigger a long position if price crosses top of the 30 minute opening range, and a sell signal if it crosses the bottom.

    I've found the attached OpeningRangeIndicator, which seems to be suitable for plotting the opening range. However, it is not possible to use it in the strategy creator. From what I understand, it doesn't "plot" the opening range in the data, which disqualifies it from usage in the Strategy Creator.

    How do I make it usable for the Strategy Creator so I can create my crossover strategy? I'm learning a bit slower than I would like to.

    Thanks in advance,
    Emil
    Attached Files

    #2
    Hi, thanks for posting. You would need to call AddPlot() within this indicator to give it plots, then fill in the plots with the values being used to draw the line objects. It looks like the values it is using are called "dUpperRange" and "dLowerRange". One simple example of how to add and fill in a plot is the SMA indicator, which can be studied through the NinjaScript Editor.

    Kind regards.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X