Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EMA and SMA Plot

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

    EMA and SMA Plot

    I was wondering if it is possible to have the SMA and EMA lines extended 1 bar ahead? Right now I have it set to calculate on bar close - false!

    Also is it possible to have a SMA or EMA from a 15 minute chart show on a 3 minute chart?

    Thanks

    #2
    Hello geotabs,

    Thanks for your post.

    You can extend the plot lines ahead through custom coding where you would create a projection based on some math that you determine for the projection and then use the DrawLine() method to draw the extension. Reference: http://ninjatrader.com/support/helpG...m?drawline.htm

    If you are looking for a dynamic horizontal level (and don't need the moving average history) try changing the indicators "Plot Style" from line to Hline. This will plot a horizontal line at the level of the moving average.

    Alternatively, you might consider using displacement as this visually shifts the moving average according to the value of displacement you enter. I've attached an example that shows a 1 bar shift to the right, the orange plot is the standard SMA(14) (CalculateOnBarClose = false) and the red is the same plot shifted to the right one bar. Displacement is entered in the indicator parameters "visual" section.

    Yes, you can add higher time frame indicators on faster time frames. Here is a short video on how to add a hidden data series to your chart and use indicators based on that hidden data series that display on the chart: https://www.screencast.com/t/xx8xcgOp0g

    Edit: added displacment display.
    Attached Files
    Last edited by NinjaTrader_PaulH; 05-09-2017, 01:08 PM.

    Comment


      #3
      Sorry Paul but where is the example attachment for the SMA?

      Thanks

      Comment


        #4
        Hello geotabs,

        Thanks for your reply.

        I have edited my original post to add the screenshot of the displaced plot that I forgot to add originally.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        88 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        48 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        30 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        34 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        68 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X