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 rhyminkevin, Today, 04:58 PM
          3 responses
          47 views
          0 likes
          Last Post Anfedport  
          Started by iceman2018, Today, 05:07 PM
          0 responses
          5 views
          0 likes
          Last Post iceman2018  
          Started by lightsun47, Today, 03:51 PM
          0 responses
          7 views
          0 likes
          Last Post lightsun47  
          Started by 00nevest, Today, 02:27 PM
          1 response
          14 views
          0 likes
          Last Post 00nevest  
          Started by futtrader, 04-21-2024, 01:50 AM
          4 responses
          50 views
          0 likes
          Last Post futtrader  
          Working...
          X