Announcement

Collapse
No announcement yet.

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 NullPointStrategies, Today, 05:17 AM
    0 responses
    53 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X