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 cmoran13, 04-16-2026, 01:02 PM
    0 responses
    36 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    23 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    162 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    96 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    152 views
    2 likes
    Last Post CaptainJack  
    Working...
    X