Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Vertical Line w/ Time Input Variables

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

    Vertical Line w/ Time Input Variables

    Hey all,
    I'm new to the world of NT programming, and was curious if someone could point me in the right direction. I want to be able to plot vertical lines at certain times of the day, but I have a few questions regarding my approach.
    1) What would be the best way to get multiple variables throughout the day to plot vertical lines? (Will NT be able to retrieve these variables through a text file?)
    2) If I wanted to plot a vertical line at 10:43, but I am using a 5 minute chart, would there be anyway to round it to the nearest 5?

    Cheers

    #2
    icehac, welcome to our forums -

    1. NT 6.5 could not access the values of drawn objects, for NT7 those are exposed and accessible now, NT7 is in public beta now -



    2. Unfortunately I'm not aware of a method to round this automatically, you would need to custom code one.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    57 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    36 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    165 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    101 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    162 views
    2 likes
    Last Post CaptainJack  
    Working...
    X