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

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 RubenCazorla, 08-30-2022, 06:36 AM
    3 responses
    77 views
    0 likes
    Last Post PaulMohn  
    Started by f.saeidi, Yesterday, 12:14 PM
    9 responses
    23 views
    0 likes
    Last Post f.saeidi  
    Started by Tim-c, Today, 03:54 AM
    0 responses
    3 views
    0 likes
    Last Post Tim-c
    by Tim-c
     
    Started by FrancisMorro, Today, 03:24 AM
    0 responses
    5 views
    0 likes
    Last Post FrancisMorro  
    Started by Segwin, 05-07-2018, 02:15 PM
    10 responses
    1,772 views
    0 likes
    Last Post Leafcutter  
    Working...
    X