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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    177 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    332 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    254 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    356 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    184 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X