Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plotting Custom Moving Averages on Chart

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

    Plotting Custom Moving Averages on Chart

    Hey, I finally converted my Strategy into an indicator. But it consists of 7 EMAs, and I don't know to make the Indicator CODE plot all my EMAs on my chart. In Strategy Wizard it's simple cause there's an option that says plot on chart.

    I'm trying to create at least 2 custom EMA just to get the hang of it.I copied the Code from the Ninjatrader EMA indicator, and I just added another plot. but I keep getting these errors. In the attached picture. Can someone help me on how to Plot my OWN Moving averages. My end goal is to have 7 EMA under One Master Indicator. But I don't know what I'm doing wrong.

    I've uploaded thepicture of my code here.

    Can someone help.

    #2
    Hello ginx10k

    Thanks for your post.

    I would recommend taking a look at the SampleMACrossOver strategy that is in NinjaTrader.
    With this strategy you can see 2 SMAs that have been added to the strategy.
    you could modify this code to use in your strategy.

    Comment


      #3
      Brandon, I already have a custom Strategy that can cross over 2 moving averages. What I'm asking is on the Indicator Code, [NOT STRATEGY]; how do I make Moving Averages that appear on chart using INDICATOR CODE. LOOK AT MY CODE if you guys can. In the strategy it's different because it has an option in strategy wizard to plotonChart.

      So if anyone else can show how to do this, I'd appreciate it.

      Comment


        #4
        Hello ginx10k,

        Thanks for your reply.

        I apologies for my error. Please send me the indicator as an attachment to the email you wrote in so I can look into assisting making the changes to your code.

        Comment


          #5
          thx Brandon, Email has been sent

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          581 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          338 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          552 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X