draw line in indicator on seperet window
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.
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?