Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

I seek plot wisdom

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

    I seek plot wisdom

    Scenario:
    I am performing a log10 on a number. Mathematically everything works fine and computes the correct value and displays the plot correctly.

    Issue:
    Visually in the panel when i get a large plot value (which I want to see) it causes the following plot bars to be squashed so they have no contrast and looks almost like a flat line unless I scroll the big number off the chart plot view then they pop back up. I could set a minimum and maximum value on the panel. I can also show the indicator in two panels. One panel with a minimum/maximum value and one without. Not fantastic but it does work. I was hoping for something more elegant. I understand what is happening and why. I just can't figure out a good solution for the issue. I want my cake and eat it too.

    Question:
    Any recommended solution to my quandary? I know I need to reduce the value of the large plot but not sure of the best math logic to reduce it's value.

    Cheers

    #2
    Hello CT,

    Thank you for the post.

    From what you described I believe there would really only be two ways to mitigate the autoscale happening here. The first option is to just not include this bar in the autoscale as it is X % off the average value. You could do this by overriding the GetMinMaxValues method and then using logic to exclude this bar, for example using an average to find the current average price and checking the bars price against that. This is not a documented override for 7 but you can find a sample in the ZigZag indicator.

    The other approach would be to not create this value as the plots final value, you could use some form of logic to constrain or otherwise limit the maximum value that can be displayed. For example, if price values were being used, you could set a max of 4 ticks off the current price or some price-related static value to know that the value has reached the extent or beyond, but would not affect the scale in a large way.



    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Jesse

      My favorite superstar Ninja Support person. Some of what you suggested I had tried but other parts of what you have suggested would improve it. I can reduce the extreme plot and color it differently so I know it has been truncated or cropped.

      I would also like to express, Duh!, Doh!, and facepalm. LOL.

      Many thanks from the far side of the planet.

      Cheers
      Last edited by ct; 04-01-2019, 02:40 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hexades, Today, 08:15 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by Uregon, 05-20-2024, 03:44 AM
      2 responses
      12 views
      0 likes
      Last Post Uregon
      by Uregon
       
      Started by Vigorunning, 05-01-2019, 12:42 PM
      25 responses
      936 views
      2 likes
      Last Post MayDay89  
      Started by ETFVoyageur, 05-26-2024, 08:42 PM
      3 responses
      32 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by LordNoah, Today, 12:19 AM
      3 responses
      22 views
      0 likes
      Last Post LordNoah  
      Working...
      X