If the value you get back from the iCustom call is 0 don't use it . . .
sunshineh:
0 is the main window . . . you can find the window number that you have an indicator placed on by using this: WindowFind()
Another question:
If I want to write a label in the chart, how can I define the actual window from the indicator:
ObjectCreate("M1", OBJ_LABEL, ???, 0, 0);

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
I want to use and draw in my indicator the ZigZag indicator.
I defined is as the following code shows:
But I get only this:
What did I wrong?