Histogram can make "candle bars" in the main window, but cannot do it in a sub-window
If you want bars in a subwindow, you have to draw them using ObjectCreate().
Phy,
Is it possible to show a code example of how you use ObjectCreate() to build your "candles" in the sub-window? This a very interesting concept!
I'd like to be able to replace the Kumo histogram in the Ichimoku indicator with with a drawing solution that completely fills or shades in the area between the Senkou Span A & Senkou Span B (cloud). Maybe it is possible to accomplish that by using ObjectCreate() to construct the Kumo as apposed to a histogram. Your thoughts or ideas?
Thanks!!
ObjectCreate(wickName, OBJ_TREND, subwindowNumber, barTime, High, barTimeLow);
ObjectSet(wickName,..., ...) Set width 1, set no ray
ObjectCreate(bodyName, OBJ_TREND, subwindowNumber, barTime, High, barTimeLow);
ObjectSet(bodyName,..., ...) Set width 3 or 5, set no ray
use new names for each bar
ObjectCreate(wickName, OBJ_TREND, subwindowNumber, barTime, High, barTimeLow);
ObjectSet(wickName,..., ...) Set width 1, set no ray
ObjectCreate(bodyName, OBJ_TREND, subwindowNumber, barTime, High, barTimeLow);
ObjectSet(bodyName,..., ...) Set width 3 or 5, set no ray
use new names for each bar
Thanks for your reply!!!
- This is because on the main window, the bars are drawn between two histogram buffers. On the subwindow, they are drawn between the buffer and zero
- See my solution How to Draw Cnadle chart in indicator_separate_window ? (XDXD) - MQL4 forum
- This is because on the main window, the bars are drawn between two histogram buffers. On the subwindow, they are drawn between the buffer and zero
- See my solution How to Draw Cnadle chart in indicator_separate_window ? (XDXD) - MQL4 forum
FMIC: Just curious! Why are you answering a post/thread that is 7 years old?
| Only because the spam (deleted by moderator) brought it to the top. |
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all
I have the following Heikin Ashi Smoothed indicator and i am trying to add it in a subwindow instead of the main window.
i changed the #property indicator_chart_window to indicator_separate_window but i get the following picture. i have the original heikin ashi smoothed in the main window and the one after the change in the subwindow, as you can see i have some problems.
Any help will be welcomed.