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

Moving Average Differential indicator?

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

    Moving Average Differential indicator?

    Does anyone know if an easy way to show the difference between 2 moving averages. Would prefer a simple text box, but an indicator would work too.

    Thanks for any help.

    #2
    Hello cmv727,

    Thanks for your post.

    Other than the MACD I'm not aware of an indicator that would show the differences between two moving averages.

    Perhaps others in the community will offer suggestions.

    If you wanted to create this yourself, we can assist you with links to learning Ninjascript to get you started.

    Alternatively, we can also refer you to 3rd party programmers who could provide that service
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Sure, I'll take a crack at doing it myself. Haven't done that before, but if please send links.

      Thanks!

      Comment


        #4
        Hello cmv727,

        Thanks for your reply.

        I'll add the links below.

        Also, I created a starting point for you that you can copy and modify as you wish. As is it just determines the number of ticks difference between and SMA(10) and an SMA(20) and then prints that on the chart in the upper right corner. You can download and install the zipped file.

        NinjaTrader's Ninjascript is written in C# so you may wish to search for on-line references for learning C# as this controls the syntax rules for Ninjascript.

        If you would like to take on learning NinjaScript, we have a fully documented help guide which will help you get started.

        All links below are publicly available.

        The entire Alphabetical Reference can be found with the following link: https://ninjatrader.com/support/help..._reference.htm

        Below are links to Reference Samples online as well as some Tips and Tricks for both indicators and strategies. These samples can be downloaded, installed and modified from NinjaTrader and hopefully serve as a good base for your custom works.

        Click here to see our NinjaScript Reference Samples:


        Click here to see our NinjaScript Tips: https://ninjatrader.com/support/help...n-us/?tips.htm

        The best way to begin learning NinjaScript is to use the Strategy Builder. With the Strategy Builder you can setup conditions and variables and then see the generated code in the NinjaScript Editor by clicking the View Code button. Please see the helpguide here: https://ninjatrader.com/support/help...gy_builder.htm

        I'm also proving a link to a pre-recorded set of videos 'Strategy Builder 301' and 'NinjaScript Editor 401' for you to view at your own convenience.
        Strategy Builder 301 - https://www.youtube.com/watch?v=HCyt...ZmVnauWXkWe0Nf
        NinjaScript Editor 401 - https://www.youtube.com/watch?v=BA0W...ZmVnauWXkWe0Nf

        If you are new to C#, to get a basic foundation for the concepts and syntax used in NinjaScript I would recommend this section of articles in our NT7 help guide first:


        Here is a link to the Educational Resources section of the Help Guide to help you get started with NinjaScript: https://ninjatrader.com/support/help..._resources.htm

        There is also a growing library of user-submitted custom indicators (100+) that can be downloaded from our support forum. Please look in the NinjaScript File Sharing section of our support forum as you may find what you are looking for there: https://ninjatrader.com/support/foru...ks.php?catid=7

        Last, I'm also sharing a link to another forum post that reviews how to use prints to understand behavior and debug a script when the behavior is unexpected. https://ninjatrader.com/support/foru...979#post510979
        Attached Files
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Thank you!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Tim-c, Today, 03:54 AM
          0 responses
          1 view
          0 likes
          Last Post Tim-c
          by Tim-c
           
          Started by FrancisMorro, Today, 03:24 AM
          0 responses
          2 views
          0 likes
          Last Post FrancisMorro  
          Started by Segwin, 05-07-2018, 02:15 PM
          10 responses
          1,770 views
          0 likes
          Last Post Leafcutter  
          Started by Rapine Heihei, 04-23-2024, 07:51 PM
          2 responses
          31 views
          0 likes
          Last Post Max238
          by Max238
           
          Started by Shansen, 08-30-2019, 10:18 PM
          24 responses
          945 views
          0 likes
          Last Post spwizard  
          Working...
          X