Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

make the indicator visible even in the past

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

    make the indicator visible even in the past

    Hi,
    I am trying to realize an indicator that draws a line not very long when in the current bar the minimum of the previous bar is broken or when the maximum of the previous one is broken. I managed to do this but the indicator only prints the last event, but I would like to see the previous ones too. How could I implement this feature? I currently work in onEachTick.

    Thank you!​

    #2
    It sounds like you are giving them all the same tag. Make their tags unique, or perhaps associated with the bar number they start or end on, and then it will not replace the old ones with the latest one. Try to be sure you don't draw more than one line per bar since you are running intrabar, and if not every bar has a line, think about taking the line away if intrabar you had added it but it no longer qualifies later on the same bar.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment

    Latest Posts

    Collapse

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