Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

HMA on the CCI Histogram

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

    HMA on the CCI Histogram

    Hello, I am trying to access from within my ninjatrader code the HMA value that is applied to the CCI-Histogram indicator (not price). I don't know how to do this ... if you can help me or direct me to a resource that can, that would be greatly appreciated.

    thank you

    #2
    Hello pman777,

    Thanks for your note.

    If you license is enabled to edit NinjaScripts you may view the programming for this indicator and see the name of the variable you wish to access.

    To do this:
    • Click Tools > Edit NinjaScript > Indicator > select CCI_Histogram > click OK


    I have imported this indicator and am not seeing a HMA value.


    Please let me know which value you are looking for.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      thanks ... let me clarify ... on my chart I can apply an HMA to the CCI_Histogram by making the HMA "input series" parameter point to the CCI_Histogram. Once I do that, it displays the HMA as on overlay on the CCI_Histogram on my chart. I now want to access the HMA's values from within my script but need to know how to syntactically do that.

      Comment


        #4
        Hello pman777,

        If you have a custom script you are using and would like to call the HMA using the CCI_Histogram as its input series using the following:

        Code:
        double myVariable = HMA(CCI_Histogram(14), 20)[0];

        In the example, 14 is the period used for the CCI_Histogram and 20 is the period used for the HMA. You would change these to your liking.

        This will get the the HMA value of the last bar using CCI_Histogram as its input series and save that to a double variable named myVariable.

        Below is a link to the help guide on calling the HMA Indicator.
        http://www.ninjatrader.com/support/h...__hull_hma.htm


        Please let me know if I can be of any further assistance.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        599 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        344 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        558 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        557 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X