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

Draw (endup) at dailyclose

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

    Draw (endup) at dailyclose

    Hi,

    i found an indicator and rewrite it for me. Can anyone help me now, so the drawlines/rectangle end with every dailyclose?

    Click image for larger version

Name:	2024-01-06_07h57_05.png
Views:	83
Size:	205.6 KB
ID:	1285117
    [ATTACH]n1285118[/ATTACH]


    #2
    Hello Dirales,

    Thanks for your post.

    It seems the script you shared uses Draw.Rectangle() to draw rectangles on the chart window.

    If you want the rectangle to stop being drawn at the close of the session, you would need to stop calling the Draw.Rectangle() method after that time.

    Something you could consider is implementing a Time Filter that draws the rectangles between the session begin time and the session end time.

    SessionIterator could be used to get the ActualSessionBegin and ActualSessionEnd times.

    Draw.Rectangle(): https://ninjatrader.com/support/help..._rectangle.htm
    SessionIterator: https://ninjatrader.com/support/help...oniterator.htm

    If you are wanting someone to modify this script on your behalf you could consider contacting a professional NinjaScript consultant who would be eager to modify this script at your request or assist you with your script.

    You can search our extensive library of NinjaScript consultants through the link below. Simply enter a consultant name or search by using our filter categories. Once you have identified your consultants of choice, please visit each consultant's site for more information or contact them directly to learn more!

    https://ninjatraderecosystem.com/sea...mming-services

    Educators - https://ninjatraderecosystem.com/sea...ures=education

    You can locate the contact information for the consultants on their direct websites for any additional questions you may have. Since these consultants are third-party services for NinjaTrader, all pricing and support information will need to be obtained through the consultant.

    This NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The companies and services listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,404 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by Shai Samuel, 07-02-2022, 02:46 PM
    4 responses
    95 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by DJ888, Yesterday, 10:57 PM
    0 responses
    8 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    159 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Yesterday, 09:29 PM
    0 responses
    8 views
    0 likes
    Last Post Belfortbucks  
    Working...
    X