Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Line jumps between sessions

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

    Line jumps between sessions

    I'd like to show a horizontal line in the chart for each session (from the first to the last bar - all same values). My problem is the plot value for the last bar of each session is connected with the value of the first bar of the following session.
    How can I get session lines (or one line without jumps between the sessions)?

    Thanks for help!

    #2
    Just don't choose the plotstyle to be a line then, but for example a block.
    Attached Files
    Last edited by NinjaTrader_Bertrand; 11-04-2011, 02:25 AM.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks! That should do the trick.

      Is there a way to delete plot values? Than I could also do that at each beginning of a session - simply delete the value of the last bar to get rid of the line jumps...

      Comment


        #4
        Yes, you could use the .Reset() method on the plots / dataseries as well.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Alright, thanks!

          One question -
          for your first solution, do I need the DrawSquare(..) method, or can I use my Plot somehow?

          Comment


            #6
            No, you can just set the plot style in the Initialize() to Block for example -

            Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Block, "Plot0"));
            BertrandNinjaTrader Customer Service

            Comment


              #7
              That's what I needed to know. Thanks :-)

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Blairski, Yesterday, 09:19 AM
              1 response
              7 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by tonynt, Today, 09:33 AM
              1 response
              3 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by minotti1, Today, 08:31 AM
              1 response
              13 views
              0 likes
              Last Post NinjaTrader_Jim  
              Started by SmartArtsStudio, 05-15-2021, 10:46 AM
              1 response
              14 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by Airwave, Today, 06:02 AM
              2 responses
              21 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Working...
              X