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

Surfacing available data values from an indicator

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

    Surfacing available data values from an indicator

    Hi there,

    In NT7, I used HeikenAshiSmoothed with great success in my strategies. With NT8, I'm struggling to figure out the values that the new NT8 indicator has available.

    This is the indicator I'm looking at: https://ninjatrader.com/support/foru...&pp=40&keyid=9

    Previously, I knew what values I could call from the HAS indicator, and what I could send to get the values I needed:

    Code:
    HA_Open = Math.Round(HeikenAshiSmoothed(.7,HAMA.SMA,HAMA.SMMA,1,2).HAOpen[1],2);
    					HA_Open_Prev = Math.Round(HeikenAshiSmoothed(.7,HAMA.SMA,HAMA.SMMA,1,2).HAOpen[2],2);
    					HA_Close = Math.Round(HeikenAshiSmoothed(.7,HAMA.SMA,HAMA.SMMA,1,2).HAClose[1],2);
    					HA_Close_Prev = Math.Round(HeikenAshiSmoothed(.7,HAMA.SMA,HAMA.SMMA,1,2).HAClose[2],2);
    Now I have no idea. When I start to type "HeikenAshiSmoothed" in my editor, I get all of the method options for brushes, price line color, etc., but nothing for HAClose, HAOpen, etc. I can set the smoothing period, but that's about it.

    Where should I be looking or doing to get the following values from the indicator?

    Code:
    AddPlot(Brushes.Transparent, "HAOpen");
    				AddPlot(Brushes.Transparent, "HAHigh");
    				AddPlot(Brushes.Transparent, "HALow");
    				AddPlot(Brushes.Transparent, "HAClose");
    Thanks in advance for any help!

    #2
    Hello Spiderbird,

    Thank you for your note.

    Below would be examples of how you could reference the HAClose and HAHigh Plots of the HeikenAshiSmoothed indicator.

    HeikenAshiSmoothed(Close, Brushes.Red, Brushes.LightGreen, Brushes.Transparent, 2, 4, false, true, 34, 2, NinjaTrader.Gui.DashStyleHelper.Solid, Brushes.Blue).HAClose[0]

    HeikenAshiSmoothed(Close, Brushes.Red, Brushes.LightGreen, Brushes.Transparent, 2, 4, false, true, 34, 2, NinjaTrader.Gui.DashStyleHelper.Solid, Brushes.Blue).HAHigh[0]

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Alan! That did the trick. Much appreciated.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bortz, 11-06-2023, 08:04 AM
      47 responses
      1,602 views
      0 likes
      Last Post aligator  
      Started by jaybedreamin, Today, 05:56 PM
      0 responses
      8 views
      0 likes
      Last Post jaybedreamin  
      Started by DJ888, 04-16-2024, 06:09 PM
      6 responses
      18 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by Jon17, Today, 04:33 PM
      0 responses
      4 views
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      12 views
      0 likes
      Last Post Javierw.ok  
      Working...
      X