possible to have one indicator.ex4 able to plot in Win.0 or separate Win.n ?

 

Seems that need a #property statement for chart or data window.

ie, find that if remove #property... the indi will not plot whatever the window is. the code is loaded and then removed.

.

If have property set to data window, I can draw in main window but the data window of course gets created.

.

could create two indi versions - just seems easy way out.

.

and...

int WindowOnDropped( )
Returns window index where expert, custom indicator or script was dropped. This value is valid if the expert, custom indicator or script was dropped by mouse.
Note: For custom indicators being initialized (call from the init() function), this index is not defined.
The returned index is the number of window (0-chart main menu, subwindows of indicators are numbered starting from 1) where the custom indicator is working. A custom indicator can create its own new subwindow during its work, and the number of this subwindow will differ from that of the window where the indicator was really dropped in.
.
can you clarify above? perhaps backing up your explanation with code (and reasoning as to why an indi would want to create a child win)
.
cheers