Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 geotrades1, Today, 10:02 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by ender_wiggum, Today, 09:50 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by rajendrasubedi2023, Today, 09:50 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by bmartz, Today, 09:30 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by geddyisodin, Today, 05:20 AM
    3 responses
    26 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X