Hi everybody,
I have been trying to write an indi to show 2nd symbol drawing (close prices) in an original window. Could you please take a look what I am doing wrong that the drawing (Symb2DrawBuffer) does not appear?
I wrote several codes in mql4 but it is my first indi in mql5.
Thank you,
You have forgotten to put these 3 lines in your code:
int OnInit()
{
ArraySetAsSeries(Symb2DrawBuffer, true);
ArraySetAsSeries(Symb2CloseBuffer, true);
ArraySetAsSeries(Symb1CloseBuffer, true);
//--- indicator buffers mapping
It should work now.
You have forgotten to put these 3 lines in your code:
int OnInit()
{
ArraySetAsSeries(Symb2DrawBuffer, true);
ArraySetAsSeries(Symb2CloseBuffer, true);
ArraySetAsSeries(Symb1CloseBuffer, true);
//--- indicator buffers mapping
It should work now.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi everybody,
I have been trying to write an indi to show 2nd symbol drawing (close prices) in an original window. Could you please take a look what I am doing wrong that the drawing (Symb2DrawBuffer) does not appear?
I wrote several codes in mql4 but it is my first indi in mql5.
Thank you,