Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator values inside a strategy

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

    Indicator values inside a strategy

    How do I retrieve indicator values that are based on bar-by-bar execution inside a strategy that is tick-by-tick?

    I am using the ParabolicSAR indicator inside a tick based strategy, and I have noticed that it plots very different values to the same indicator with the same parameters, except my second instance of the ParabolicSAR is not part of the strategy, and is bar based.
    So when I access the ParabolicSAR values from within the strategy, they are not what I expect. I have tried using FirstTickOfBar to simulate bar-by-bar values for ParabolicSAR, but that does not give me the bar-by-bar values I need.

    #2
    astrolobe,

    In your strategy, use a filter for if (FirstTickOfBar) and then access the values of the just closed bar with [1] index. The opening of a new bar is the same event as the closing of the previous bar so that would be how to get values on a bar by bar basis.

    Please ensure you are on 6.5.1000.14 if you are using ParabolicSAR. There had been changes a few versions back so if you are on an old version you may not have the correct indicator.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    50 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X