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 sjsj2732, 03-23-2026, 04:31 AM
    0 responses
    76 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    313 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    313 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    149 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    113 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X