Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plot Puzzle

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

    Plot Puzzle

    Hi,

    I just developed a simple MTF indicator: on a 5 minute chart I plot the 5 minutes 20 bars EMA plus the 15 minutes 20 bars EMA and, finally, the 60 minutes 20 bars EMA.

    The two latter EMAs plot in a step wise fashion, but the 20 bars EMA on the primary data series does not and it appears to be continuous, though, strictly speaking, it shouldn't since the granularity of the candles is discrete.

    How should I proceed in order to smooth also the EMAs on the other two time frames?

    I attach a screenshot and the source code of my indicator.

    Best regards,

    Gianpiero
    Attached Files

    #2
    Gianpiero,

    Thank you for your note.

    This is because the .Set() will generate a value for each bar and why it appears in the step fashion.

    You would need to create a data series synced to a different time frame than the primary and you would have to do some custom plotting for this to show in a more smoothed matter on the chart -
    http://www.ninjatrader.com/support/f...ead.php?t=3572

    For the custom plotting take a look at the CustomPlotSample from Tools -> Edit NinjaScript -> Indicator
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    574 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X