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

Adjustments to EMA/Keltner Band

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

    Adjustments to EMA/Keltner Band

    Hello,

    I have minimal experience in programming and am looking to just slightly modify the EMA and Keltner Channel. These modifications are just outside the limits of what I can edit in the "Data" box when I add the pre-made indicators onto the chart.

    - Firstly, I am trying to modify the EMA and adjust both the angle of the lookback period and also the period of the line in general. I am not sure where to start.

    - Also, I would like to calculate the band spread of the keltner bands and display that in a box on the chart.

    I'm thinking this may be best done in two separate indicators as they are dependent. I would appreciate any input on where to get started with this as I am not sure of the complexity of code it would take to do these things.

    Thank you!

    #2
    Hello TangoSierra,

    Thanks for your post and welcome to the NinjaTrader forums!

    When you apply the EMA (or any moving average) to a chart, you are able to change the calculation period in the indicator parameters found in the indicator panel.

    For the Angle of a lookback period and for the spread of the Keltner channel and display on chart, you would need to create custom indicators (basically copies of the indicators) uniquely named and work directly in Ninjascript.

    NinjaScripts are built on C# programming language. While we do not provide programming education services in the Support Department, there are a vast number of educational C# resources external to NinjaTrader and we do have some tutorials and tools that can assist in the learning process. Many users report that a good way to start before fully learning C# is to go through the NinjaTrader 7 NinjaScript tutorials in the help documentation to get a fundamental grasp on .NET framework and how it is used in NinjaScript. From there I suggest looking at the Code Breaking changes for NinjaTrader 8 to understand the differences between NinjaTrader 7 and NinjaTrader 8. You can view the tutorials for NinjaTrader 7 here: https://ninjatrader.com/support/help...?tutorials.htm

    Although we do not currently provide NinjaScript tutorials like in NinjaTrader 7, we do provide in-depth help documentation on developing NinjaScripts for NinjaTrader 8. We also provide samples and a complete reference of the language. More in depth educational resources can be found elsewhere throughout the internet. You can find the educational resources here: http://ninjatrader.com/support/helpG..._resources.htm

    Once you have a basic understanding of C#, I suggest following the documented Code Breaking changes between NinjaTrader 7 and NinjaTrader 8. This page also gives an overview for NinjaScripts in NinjaTrader 8. You can find the Code Breaking changes here: http://ninjatrader.com/support/helpG...ng_changes.htm

    Other users have wrote in about this information in our support forums here: https://ninjatrader.com/support/foru...d.php?p=488807

    Also available are webinars on the NinjaScript editor and the Strategy Builder. The Strategy Builder can be used to generate NinjaScript syntax for NinjaScript strategies. You may wish to create a strategy and clicking View Code after each piece of logic created in the Builder to observe the generated syntax.
    Strategy Builder 301: https://www.youtube.com/watch?v=HCyt90GAs9k
    NinjaScript Editor 401: https://www.youtube.com/watch?v=K8v_2ONBbqI

    You can register for live webinars here: https://ninjatrader.com/PlatformTraining

    Our documentation will be your best friend while developing, and the complete supported NinjaScript interface can be referenced here: http://ninjatrader.com/support/helpGuides/nt8/en-us/
    The information above is publicly available.

    Finally, we also have a vast EcoSystem of NinjaScript Consultants that would be happy to write or modify any NinjaScript at your request. If those services interest you, we can have a representative of our EcoSystem reach out with more information.

    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Stanfillirenfro, Today, 07:23 AM
    3 responses
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by FitSpressoHonest, Today, 09:14 AM
    0 responses
    1 view
    0 likes
    Last Post FitSpressoHonest  
    Started by Davide999, 05-18-2023, 03:55 AM
    4 responses
    557 views
    1 like
    Last Post kcwasher  
    Started by rexsole, Today, 08:39 AM
    2 responses
    7 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    6 responses
    29 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X