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 vrewoises, Today, 04:31 AM
              0 responses
              4 views
              0 likes
              Last Post vrewoises  
              Started by butt_toast, Yesterday, 09:47 PM
              1 response
              5 views
              0 likes
              Last Post Leeroy_Jenkins  
              Started by vrewoises, Today, 03:33 AM
              0 responses
              5 views
              0 likes
              Last Post vrewoises  
              Started by devonburto, Today, 03:11 AM
              0 responses
              2 views
              0 likes
              Last Post devonburto  
              Started by ziemany, Today, 02:54 AM
              0 responses
              1 view
              0 likes
              Last Post ziemany
              by ziemany
               
              Working...
              X