Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plotting an object to show last and first trading day help

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

    Plotting an object to show last and first trading day help

    Hi

    Any tips on how to create an indicator to show the last and first trading day of the month via a dot?

    protected override void OnBarUpdate()
    {


    if last trading day of the month OR first trading day of the month, then do ....

    DrawText("short"+CurrentBar.ToString(),false, "l", 0, High[0] + (dist * TickSize),10, dncolor, new Font("Wingdings",8f), StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
    }

    thanks

    #2
    Hello qitrader,

    Because what you are asking for is logic our NinjaScript support will not be able to assist with creating this logic.

    This thread will remain open for any community members that would like to assist.

    As a tip, I am linking a google search for C# last weekday of month that has some suggestions.
    https://www.google.com/search?source...7j0l5.7976j0j7
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    566 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    548 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X