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

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 reynoldsn, Today, 02:34 PM
        0 responses
        5 views
        0 likes
        Last Post reynoldsn  
        Started by nightstalker, Today, 02:05 PM
        0 responses
        8 views
        0 likes
        Last Post nightstalker  
        Started by llanqui, Yesterday, 09:59 AM
        8 responses
        28 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by quicksandatl, Today, 01:39 PM
        1 response
        5 views
        0 likes
        Last Post quicksandatl  
        Started by md4866, 05-01-2024, 08:15 PM
        2 responses
        18 views
        0 likes
        Last Post md4866
        by md4866
         
        Working...
        X