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 geddyisodin, Today, 05:20 AM
          3 responses
          20 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by lorem, Today, 09:18 AM
          1 response
          4 views
          0 likes
          Last Post lorem
          by lorem
           
          Started by bmartz, Today, 09:30 AM
          0 responses
          3 views
          0 likes
          Last Post bmartz
          by bmartz
           
          Started by GussJ, 03-04-2020, 03:11 PM
          14 responses
          3,245 views
          0 likes
          Last Post GussJ
          by GussJ
           
          Started by ArkansasClint, Today, 09:28 AM
          0 responses
          0 views
          0 likes
          Last Post ArkansasClint  
          Working...
          X