Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

get last update in indicator?

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

    get last update in indicator?

    Is there a quick way to get the last indicator update so we can compare with the current indicator update? This is not to be confused with last value on bar, which could be 1min, 5 min, but rather the very last update (calculate on each tick).

    SMA[1] vs SMA[0], that would be comparing the last update on the last bar (if data series is 1min, would be value 1min ago) instead of last update (if using calculate on each tick)

    or is it the case that if you have calculate set to calculate on each tick, that the SMA[1] is the value updated on the last tick?
    Last edited by Boonfly8; 08-06-2018, 12:08 PM.

    #2
    Hello Boonfly8,

    Thank you for the post.

    When you are using OnBarClose calculations, what you have described is true or that the [0] would be the last Closed bar value and [1] would be prior to that.

    When using OnEachTick, the [0] would be the Building bars value that is currently changing. Comparing the [0] to [1] when using OnEach Tick would do as you want or compare the current ticks value versus the value of the last closed bar.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X