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

Access Custom Indicator Values in Ninjascript 8

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

    Access Custom Indicator Values in Ninjascript 8

    Hello,

    I wish to backtest and optimize a strategy which works based on custom bars generated by a custom indicator as shown in the data box' screenshot I have added to this post. The Values I want to access are the HAOpen, HAHigh, HALow, HAClose Values. How can this best be accomplished?

    PS: What I want to do doesn't work with the standard Heiken Ashi Chart Type.

    Thanks in advance.
    Attached Files

    #2
    Hello jcls123, and thank you for your question. In order to expose these variables to the strategy analyzer they do need to be set from your strategy. I have attached a simple example with the MACD.

    Heiken-Ashi simply normalizes the presentation of another bar type. You should use the underlying bar type itself when backtesting.

    Please let us know if there are any other ways we can help.
    Attached Files
    Jessica P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by gbourque, Today, 06:39 AM
    0 responses
    1 view
    0 likes
    Last Post gbourque  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by benmarkal, Yesterday, 12:52 PM
    3 responses
    23 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by helpwanted, Today, 03:06 AM
    1 response
    20 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    12 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Working...
    X