Hello everybody,
I found a very useful indicator here on Code Base it is called Candle Direction Panel. I want to re-code it so the panel appear in a separate window.
Here is the link --> https://www.mql5.com/en/code/11113
Here is the Code
You will need to change
#property indicator_chart_window
to this
#property indicator_separate_window
You will also need to grab the window handle using something like
int window=WindowFind(shortName); // Where shortName was the name you set in IndicatorShortName(shortName);
Then where you create the objects in Init(), set the subwindow to the window handle rather than "0" (the main chart).
Refer to the documentation for ObjectCreate and pay particular attention to the references to subwindow
You will need to change
to this
You will also need to grab the window handle using something like
Then where you create the objects in Init(), set the subwindow to the window handle rather than "0" (the main chart).
Refer to the documentation for ObjectCreate and pay particular attention to the references to subwindow
Thanks for your help :)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello everybody,
I found a very useful indicator here on Code Base it is called Candle Direction Panel. I want to re-code it so the panel appear in a separate window.
Here is the link --> https://www.mql5.com/en/code/11113
Here is the Code