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

Draw vertical line

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

    Draw vertical line

    hello,

    I use the indicator "SampleGetHighLowByTimeRange" to determine the highest and the lowest 8.00-9.00.
    I would like to add a vertical line before each session using the following formula:

    DrawLine("1",false,bago,highestHigh,bago,lowestLow ,Color.Orange,DashStyle.Solid,2);

    But this show is only on the last session.
    How can I get this line before each session.

    Thank you

    #2
    At this time there is no way to draw a line in between bars (between last bar of last session and first bar of next session) which is what I believe you are looking for. If I am incorrect, please let me know.
    RayNinjaTrader Customer Service

    Comment


      #3
      I do not want to insert a line between the bars,
      but on the first bar of each session using the data found by the indicator.

      Comment


        #4
        Hi, if I follow you correctly you would need to use a unique tag ID for your line then, otherwise you just draw one and modify it constantly. You can do so by adding CurrentBar to your tag ID.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Thank you.
          It's good.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by terofs, Yesterday, 04:18 PM
          1 response
          21 views
          0 likes
          Last Post terofs
          by terofs
           
          Started by CommonWhale, Today, 09:55 AM
          1 response
          3 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by Gerik, Today, 09:40 AM
          2 responses
          7 views
          0 likes
          Last Post Gerik
          by Gerik
           
          Started by RookieTrader, Today, 09:37 AM
          2 responses
          12 views
          0 likes
          Last Post RookieTrader  
          Started by alifarahani, Today, 09:40 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X