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 Barry Milan, Today, 10:35 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by WeyldFalcon, 12-10-2020, 06:48 PM
      14 responses
      1,428 views
      0 likes
      Last Post Handclap0241  
      Started by DJ888, Yesterday, 06:09 PM
      2 responses
      9 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      40 views
      0 likes
      Last Post jeronymite  
      Started by bill2023, Today, 08:51 AM
      2 responses
      16 views
      0 likes
      Last Post bill2023  
      Working...
      X