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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    91 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    121 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X