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, 05-11-2026, 05:56 AM
    0 responses
    29 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    184 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    338 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    262 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X