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 kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    12 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    59 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    41 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    47 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    38 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X