Re: Coding Help

229
Dear Mladen, how to change the histogram style in the chart window

Code: Select all

HistoUp[i] = A;
HistoDn[i] = B;
to a histogram in the separate window? With the two options:
all bars have the same length (e.g., 1), or bars have the same length as on
the main chart, but of course all starting at 0.

Re: Coding Help

230
wojtek wrote: Fri May 05, 2017 2:50 am Dear Mladen, how to change the histogram style in the chart window

Code: Select all

HistoUp[i] = A;
HistoDn[i] = B;
to a histogram in the separate window? With the two options:
all bars have the same length (e.g., 1), or bars have the same length as on
the main chart, but of course all starting at 0.
wojtek

In metatrader 4 histograms on main chart and sub-window are drawn in a completely different way

- on main chart they require two buffers and two values (high and low value) for each histogram bar
- in a sub-window they are zero-based and you can specify just one value - the other is always assumed to be 0

So the type from the on-chart histogram can not be converted to same type as it is in the sub-window. You can use some "tricks" (like "masking" the part you downt want to be displayed) but that is not always possible


Who is online

Users browsing this forum: No registered users and 10 guests