This does not make sense you have an ea that calls an indicator in separate window but you create the object in the ea's oninit() function?
You need to create the object in the indicator using property:
indicator_separate_window |
|
Show the indicator in a separate window |
Please see:

Documentation on MQL5: Language Basics / Preprocessor / Program Properties (#property)
- www.mql5.com
Language Basics / Preprocessor / Program Properties (#property) - Reference on algorithmic/automated trading language for MetaTrader 5
indicator_separate_window was set already,
i wrote the create inside the oninit of the indicator and it didn't work, then i paste it to OnCalculate() and it worked
thanks a lot.

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 draw line, i have ea who calls indicator in separate window,
i creatObject inside Oninit at the EA right?
ObjectCreate(0,"44line",OBJ_HLINE,1,0,200);
what am i missing?