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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    666 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    377 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    110 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    580 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X