Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

reading a file & drawing a region

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

    reading a file & drawing a region

    hello ... i have 2 questions:

    1) can you direct me to a resource that will explain how I can read an external file. I need to read a series of numbers that are support/resistance levels

    2) i want to draw a support/resistance zone (unig the DrawRegion command) that displays up through the most current bar that is being formed. Since I'm running with CalculateOnBarClose = true so as not waste CPU cycles calculating at every tick, my region stops at the preceding (completed) bar. I want it to stop at the most current (incomplete) bar.

    thanks!

    #2
    Hello pman777,

    Thank you for your post.

    1. You can find an example of how to read from an external file at the following link: http://www.ninjatrader.com/support/f...ead.php?t=3476

    2. The only method to have the drawing method stop on the current bar is to set the calculations to CalculateOnBarClose = False.

    Please let me know if I may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    83 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    45 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    65 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    57 views
    0 likes
    Last Post CarlTrading  
    Working...
    X