Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

adding a flatline plot type

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

    adding a flatline plot type

    I would like to suggest NinjaTrader to add a new plot type which is similar to the PLOTTYPE_FLATLINES in eSignal EFS. Basically when an indicator line (i.e. resistance/support line) changes very fast so that it changes value at each bar, the line is drawn like a staircase instead of connecting the value at each bar with a line.

    - Cleapicks
    Attached Files

    #2
    Try using the "Square" plot style, not exact but similar.
    RayNinjaTrader Customer Service

    Comment


      #3
      Could you consider adding "Flatlines" as a new plot style in the future release. When using "Square", the short vertical lines connecting the points where the horizontal R/S line jumps seem really distracting and annoying.

      In the attached example, the red and green lines are resistance and support lines. You can see how annoying those vertical lines are. Whithout them, the chart would look much cleaner.


      Originally posted by NinjaTrader_Ray View Post
      Try using the "Square" plot style, not exact but similar.
      Attached Files

      Comment


        #4
        Hello,


        Did you try the hash plot style?
        DenNinjaTrader Customer Service

        Comment


          #5
          Great, it seems Hash style is what I was looking for although it draws with dashed lines instead of solid lines in eSignal EFS. Anyway it is better than the square style when drawing R/S lines. Thanks, Ben.



          Originally posted by NinjaTrader_Ben View Post
          Hello,


          Did you try the hash plot style?

          Comment


            #6
            Hello,


            You can also change the Dash style to solid or dashed.
            DenNinjaTrader Customer Service

            Comment


              #7
              Hello Ben,

              PlotStyle does not contain a definition for "Solid". The following code can not be compiled. What is wrong in my code? Or Solid is not defined?

              Add(
              new Plot(new Pen(Color.Blue, 2), PlotStyle.solid, "Plot0"));


              Originally posted by NinjaTrader_Ben View Post
              Hello,


              You can also change the Dash style to solid or dashed.

              Comment


                #8
                Hello,


                The reason it will not compile is that "PlotStyle.solid" is not a valid parameter. Please see the following link for valid parameter for creating a plot:




                Try something like this for a solid line:

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

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by zstheorist, Today, 07:52 PM
                0 responses
                3 views
                0 likes
                Last Post zstheorist  
                Started by pmachiraju, 11-01-2023, 04:46 AM
                8 responses
                149 views
                0 likes
                Last Post rehmans
                by rehmans
                 
                Started by mattbsea, Today, 05:44 PM
                0 responses
                5 views
                0 likes
                Last Post mattbsea  
                Started by RideMe, 04-07-2024, 04:54 PM
                6 responses
                33 views
                0 likes
                Last Post RideMe
                by RideMe
                 
                Started by tkaboris, Today, 05:13 PM
                0 responses
                5 views
                0 likes
                Last Post tkaboris  
                Working...
                X