My custom indicator works fine in separate window, but doesn't draw on main chart. Why? Please help...

 
Hi, I wrote an MTF Envelopes indicator and it works... sort of...

if the line

//#property indicator_separate_window

is uncommented then it will work just fine, displayed in a separate window.

But with this line commented, it simply draws nothing.

How do I fix it? What am I forgetting?
 
change to
#define proeprty_chart_window

it'll work.
 
great, thanks. #property indicator_chart_window did the trick
 
Hi,

Is there some way to drwa indicator on the main and the separate from one mq4 file

thanks
 
tst4all:

Is there some way to drwa indicator on the main and the separate from one mq4 file

No.
Reason: