Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    BrandonNinjaTrader Customer Service

    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.
        BrandonNinjaTrader Customer Service

        Comment


          #5
          thx Brandon, Email has been sent

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by carnitron, Today, 08:42 PM
          0 responses
          5 views
          0 likes
          Last Post carnitron  
          Started by strategist007, Today, 07:51 PM
          0 responses
          6 views
          0 likes
          Last Post strategist007  
          Started by StockTrader88, 03-06-2021, 08:58 AM
          44 responses
          3,974 views
          3 likes
          Last Post jhudas88  
          Started by rbeckmann05, Today, 06:48 PM
          0 responses
          8 views
          0 likes
          Last Post rbeckmann05  
          Started by rhyminkevin, Today, 04:58 PM
          4 responses
          58 views
          0 likes
          Last Post dp8282
          by dp8282
           
          Working...
          X