Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can not project Line or VerticalLine into future beyond current bar

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

    Can not project Line or VerticalLine into future beyond current bar

    In a Strategy it ends the Line at the current bar, however I have done this in an Indicator and it worked just fine. Is this a built in restriction? Thanks.

    #2
    Hi Kenz. Thanks for posting. The most simple way to do this is to use a Ray drawing tool to draw the line into the future timestamps, otherwise, you will need to use OnRender and draw the graphics using SharpDX:



    Kind regards,
    -ChrisL

    Comment


      #3
      This works in Indicators, Not in Strategies. Why do you make everything so hard?
      Draw.Line ,,, Back-Date, .. Future-Date
      And a Ray goes on forever, I want it to stop after a certain number of bars.
      I consider this a bug.

      Comment


        #4
        Hi, thanks for the follow up. Please post your test script that reproduces and I will have a look at it on my end.

        Kind regards,
        -ChrisL

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        43 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        29 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        47 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        38 views
        0 likes
        Last Post CarlTrading  
        Working...
        X