Is it possible to have one indicator draw simultaneously in chart window and in separate window?
Hi enivid,
Nope, That's why at the beginning of the code we must specify the the display property
#property indicator_chart_window #property indicator_separate_window
If we specify both of them, the CI will be displayed on main chart and not on separate chart.
However we can create many objects to main chart from separate chart CI, for example drawing divergence lines on main chart.
:D
Hi enivid,
Nope, That's why at the beginning of the code we must specify the the display property
If we specify both of them, the CI will be displayed on main chart and not on separate chart.
However we can create many objects to main chart from separate chart CI, for example drawing divergence lines on main chart.
:D
- www.mql5.com
Is it possible to have one indicator draw simultaneously in chart window and in separate window?
Here. Draw not in once but cange to #property indicator_chart_window
and he will draws on main chart.
Is it possible to have one indicator draw simultaneously in chart window and in separate window?
and the second indicator in the main chart window draw with ObjectCreate.
I made like this on my indicator PricePercentRange MT4 and MT5.
It's possible, the main indicators are separate windows,
and the second indicator in the main chart window draw with ObjectCreate.
I made like this on my indicator PricePercentRange MT4 and MT5.
Hello,
Is it possible with buffers (not ObjectCreate) ?
No. Buffers go to the specified window (separate.)
Changes in Buffer arrays will send indicator output to the window specified at the beginning
#property indicator_chart_window
But other objects can draw to any window at any time
ObjectCreate(id, OBJ_LABEL,WindowFind("indicator1"),Time[0],0);
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use