Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 04:25:46 +0000



Post From: Is there a official way to hide section of the subgraph?

[2019-09-05 20:04:51]
User972768 - Posts: 166
Hello,

I'm working on custom study that has a need to skip some bars and not to present any value. One of the known to me tricks is to do nothing and default values of zero will populate the subgraph. Then I can set DrawZeros = 0 to skip that section of the line. Unfortunately my dataset has negative and positive values and zero is a valid value.

Is there anything else (eg, something like NaN value may be) I can do to prevent line from drawing in specific areas? Some very big negative numbers would not be ideal as chart's scale is set to automatic.

Similar question is for OHLC Bar presentation when sc.GraphDrawType is not GDT_CUSTOM. How to prevent certain bars from showing up?

Thanks a lot and best regards