"SetIndexStyle" function controls drawing parameters of an indicator array. The drawing mode
of DRAW_LINE assumes that lines between values defined in a corresponding indicator
array are drawn. The drawing mode of DRAW_HISTOGRAM having been applied to the main window indicator
has its special features, as well. A histogram is drawn between corresponding values
of two index arrays: an even one (here: SpanA_Buffer) and an odd one (here: SpanB_Buffer).
At that, the color of the index array is used the value of which is higher.
Sad...
So, this feature does not exist in indicator_separate_window...
I'm just trying to port a histogram indicator from main window to separate window...
"SetIndexStyle" function controls drawing parameters of an indicator array. The drawing mode
of DRAW_LINE assumes that lines between values defined in a corresponding indicator
array are drawn. The drawing mode of DRAW_HISTOGRAM having been applied to the main window indicator
has its special features, as well. A histogram is drawn between corresponding values
of two index arrays: an even one (here: SpanA_Buffer) and an odd one (here: SpanB_Buffer).
At that, the color of the index array is used the value of which is higher.
See also Heiken Ashi custom indicator as sample.
Dear stringo...
I create main window CI with 5 buffers, 2 to draw histos and 3 to draw lines. The histos is drawn from and to the wrong value. But when I eliminate the line buffers ( so I'm only use 2 buffers for histos), the histos is drawn correctly.
Correct me if I'm wrong : we can not mix DRAW_HISTOGRAM and
DRAW_LINE in one CI because that can cause MT4 to draw a wrong
histogram(s).
Thanks before and after and ... Happy New Year Twenty Ten
Have read this thread through a couple of times now but still can't seem to figure out the solution to what I need...
I am trying to create an indicator that paints the area between two defined standard deviation bands. E.g. The area between the 2nd and 3rd deviations from the central MA. How can I do this? My code is below.
in sep-window, Histogram only need one buffer and based on 0 to draw.
phy: Instead of using indicator index, I draw trendlines for the bars as a workaround in sub-windows. The index pairing does not work in the subwindows.
candle sticks only work at main window.
in sep-window, Histogram only need one buffer and based on 0 to draw.
Instead of using indicator index, I draw trendlines for the bars as a workaround in sub-windows.
The index pairing does not work in the subwindows.
"SetIndexStyle" function controls drawing parameters of an indicator array. The drawing mode of DRAW_LINE assumes that lines between values defined in a corresponding indicator array are drawn. The drawing mode of DRAW_HISTOGRAM having been applied to the main window indicator has its special features, as well. A histogram is drawn between corresponding values of two index arrays: an even one (here: SpanA_Buffer) and an odd one (here: SpanB_Buffer). At that, the color of the index array is used the value of which is higher.
Sad...
So, this feature does not exist in indicator_separate_window...
I'm just trying to port a histogram indicator from main window to separate window...
From the article:
"SetIndexStyle" function controls drawing parameters of an indicator array. The drawing mode of DRAW_LINE assumes that lines between values defined in a corresponding indicator array are drawn. The drawing mode of DRAW_HISTOGRAM having been applied to the main window indicator has its special features, as well. A histogram is drawn between corresponding values of two index arrays: an even one (here: SpanA_Buffer) and an odd one (here: SpanB_Buffer). At that, the color of the index array is used the value of which is higher.
See also Heiken Ashi custom indicator as sample.
Dear stringo...
I create main window CI with 5 buffers, 2 to draw histos and 3 to draw lines. The histos is drawn from and to the wrong value. But when I eliminate the line buffers ( so I'm only use 2 buffers for histos), the histos is drawn correctly.
Correct me if I'm wrong : we can not mix DRAW_HISTOGRAM and DRAW_LINE in one CI because that can cause MT4 to draw a wrong histogram(s).
Thanks before and after and ... Happy New Year Twenty Ten
I'm glad MT5 developer decided to incorporate new drawing styles - but the question remains, will it still not work in separate window?
creating chart or indicator drawn as chart on separate window is very much needed. A programmer has created an indicator somewhat achieving this
(google 'chart clones' - great to get rid of those pesky title bars :)) but I'm hoping this would be a standard feature in MT5!
Have read this thread through a couple of times now but still can't seem to figure out the solution to what I need...
I am trying to create an indicator that paints the area between two defined standard deviation bands. E.g. The area between the 2nd and 3rd deviations from the central MA. How can I do this? My code is below.
For working examples check out : https://www.mql5.com/en/forum/130531
JohnT
For working examples check out : https://www.mql5.com/en/forum/130531
JohnT
Why are you responding now ? you are 6 years late . . . please do not drag up 6 year old posts unless you have a exceptional reason.
Thread started 2007.01.04
in sep-window, Histogram only need one buffer and based on 0 to draw.
phy: Instead of using indicator index, I draw trendlines for the bars as a workaround in sub-windows.
The index pairing does not work in the subwindows.