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 Lando Calrissian, Today, 08:10 AM
              0 responses
              1 view
              0 likes
              Last Post Lando Calrissian  
              Started by FatCanary, Today, 08:09 AM
              0 responses
              1 view
              0 likes
              Last Post FatCanary  
              Started by chartchartchart, Today, 08:08 AM
              0 responses
              1 view
              0 likes
              Last Post chartchartchart  
              Started by andreslazor7, Today, 08:08 AM
              0 responses
              3 views
              0 likes
              Last Post andreslazor7  
              Started by vantojo, 01-12-2021, 02:13 PM
              15 responses
              195 views
              0 likes
              Last Post FatCanary  
              Working...
              X