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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    164 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    319 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    246 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    350 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    179 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X