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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 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
    72 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