指标中对应的图表未能正常显示

 

我在指标中用到了两个 DRAW_HISTOGRAM2 图表。但是实际只显示了一个图标,其定义如下:

#property indicator_label7  "High/Low"
#property indicator_type7   DRAW_HISTOGRAM2      //上涨阶段 高低引线 
#property indicator_color7  clrRed
#property indicator_style7  STYLE_SOLID
#property indicator_width7  1

#property indicator_label8  "Low/High"
#property indicator_type8   DRAW_HISTOGRAM2      //下跌阶段 高低引线 
#property indicator_color8  clrGreen
#property indicator_style8  STYLE_SOLID
#property indicator_width8  1

#property indicator_label9  "Close/Open"
#property indicator_type9   DRAW_HISTOGRAM2      //上涨阶段 柱子实体 
#property indicator_color9  clrMagenta
#property indicator_style9  STYLE_SOLID
#property indicator_width9  4

#property indicator_label10 "Open/Close"
#property indicator_type10  DRAW_HISTOGRAM2      //下跌阶段 柱子实体
#property indicator_color10 clrSpringGreen
#property indicator_style10 STYLE_SOLID
#property indicator_width10 4

DRAW_HISTOGRAM2  图表需要两个数据,因此定义了四个数据。在测试中发现只显示数据7和8构成的图表,即利用K柱最高价和最低价画图图表。而数据9和10数据对应的图表没有显示出来。

但我测试时把数据7和8对应的图表屏蔽掉,此时数据9和10对应的图表就能显示出来。请问各位高手这是啥问题呢?

 

宣告的部分沒問題 

Buffer[]使用的問題 或是讀取數據的問題

 

试过类似问题,把两个缓冲区合为一个指标,后面的指标线颜色全部向前顺移。

无解。

 
Hung Wen Lin #:

宣告的部分沒問題 

Buffer[]使用的問題 或是讀取數據的問題

不是buffer使用问题。因为屏蔽了前面的图表它就能正常显示出来了。

 
Sen Ming Liang #:

不是buffer使用问题。因为屏蔽了前面的图表它就能正常显示出来了。

既然已經知道問題的原因 那為何問呢

 
Hung Wen Lin #:

既然已經知道問題的原因 那為何問呢

这哪里知道问题?两个打开就是后面那个没有显示,我是想知道怎么样才能让这两个图表都显示。
 
Sen Ming Liang #:
这哪里知道问题?两个打开就是后面那个没有显示,我是想知道怎么样才能让这两个图表都显示。

分成两个指标就好了。