Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Vertical Lines on Daily Chart

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

    Vertical Lines on Daily Chart

    We have numerous excellent intraday vertical lines and shaded areas for time ranges, but I cannot find any such lines for a daily chart. Is there an indicator for: 1) drawing vertical lines on a specified date? 2) calendar day series e.g. draw a line today and then every 7 calendar days or 7 trading days etc?

    #2
    Hello AlphaOptions,

    I took a look around the forums and I was able to find something similiar, but I don't think this is quite what you are after.
    http://ninjatrader.com/support/forum...877#post164877

    The behavior you have described would not require much code to achieve.

    Basically, a time filter and a DrawVerticalLine() call.
    For example:
    Code:
    if (ToDay(Time[0]) == 20160426)
    {
    	DrawVerticalLine("vertline" + CurrentBar, 0, Color.Green);
    }
    You could also use a variable instead of a hard coded date value.
    Code:
    private DateTime drawTime;
    
    [Description("")]
    [GridCategory("Parameters")]
    public DateTime DrawTime
    {
        get { return drawTime; }
        set { drawTime = value; }
    }
    
    if (ToDay(Time[0]) == ToDay(DrawTime)
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Chelsea - thank you for trying to help me. The scripting you outlined was very gracious, but I am afraid I have no idea how to do something like that. I do appreciate the efforts and for responding so quickly.

      Comment


        #4
        Hello AlphaOptions,

        If the BarInterval script in the post I have linked in my previous post does not do the trick, you can also contact one of our professional NinjaScript Consultants who would be eager to create or modify this script at your request or assist you with your script. Please let me know if you would like our business development follow up with you with a list of professional NinjaScript Consultants who would be happy to create this script or any others at your request.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Christopher_R, Today, 12:29 AM
        0 responses
        9 views
        0 likes
        Last Post Christopher_R  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        166 responses
        2,235 views
        0 likes
        Last Post sidlercom80  
        Started by thread, Yesterday, 11:58 PM
        0 responses
        3 views
        0 likes
        Last Post thread
        by thread
         
        Started by jclose, Yesterday, 09:37 PM
        0 responses
        8 views
        0 likes
        Last Post jclose
        by jclose
         
        Started by WeyldFalcon, 08-07-2020, 06:13 AM
        10 responses
        1,415 views
        0 likes
        Last Post Traderontheroad  
        Working...
        X