• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 YevhenShynkarenko, Today, 02:55 AM
    0 responses
    23 views
    0 likes
    Last Post YevhenShynkarenko  
    Started by pjsmith, Today, 02:20 AM
    0 responses
    9 views
    0 likes
    Last Post pjsmith
    by pjsmith
     
    Started by faisamtrader, Yesterday, 10:03 PM
    0 responses
    8 views
    0 likes
    Last Post faisamtrader  
    Started by johnnybegoode, Yesterday, 08:11 PM
    0 responses
    4 views
    0 likes
    Last Post johnnybegoode  
    Started by Bionian, Yesterday, 02:47 PM
    2 responses
    26 views
    0 likes
    Last Post Bionian
    by Bionian
     
    Working...
    X