Yes, you need two buffers, one for the start of the bar one for the end of the bar.
RaptorUK:
Yes, you need two buffers, one for the start of the bar one for the end of the bar.
Yes, you need two buffers, one for the start of the bar one for the end of the bar.
Thx RaptorUK, but still not working for me .. :-(
As Example:
#property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 Silver #property indicator_width1 2 double cHigh[]; double cLow[]; int init() { //---- indicators IndicatorBuffers(2); SetIndexStyle(0,DRAW_HISTOGRAM);
IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS));
SetIndexBuffer(0,cHigh);
SetIndexBuffer(1,cLow);
........
you can point me somehow ... histogram-line should paint only from low to high .. but mine still start at zero
thx for your comment
Try . . .
#property indicator_separate_window #property indicator_buffers 2 // <--- changed to 2 #property indicator_color1 Silver #property indicator_width1 2 double cHigh[]; double cLow[]; int init() { //---- indicators IndicatorBuffers(2); SetIndexStyle(0,DRAW_HISTOGRAM); SetIndexStyle(1,DRAW_HISTOGRAM); // <--- added IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)); SetIndexBuffer(0,cHigh); SetIndexBuffer(1,cLow); ........
RaptorUK:
Try . . .
Thx!!!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi all,
when set the index style for a buffer to draw histogram it always start at 0 (zero) and draw the histogram line until the current value - up or down.
Is there a way FOR EACH BAR to set a different inital value then 0 (zero)?
For example at bar 0 histogram goes from 1 to 3, bar 1 goes from 2 to 3, bar 3 goes from -1 to 2 usw...
Thx, EaDev