I would like to make an indicator in such a way that it draws on the price chart, and also to include a separate window with an oscillator. All in one single file and indicator.
Can this be done? Or something similar?
I think what ubzen meant was, from your subchart CI draw objects to main chart, because we can only use buffers on one chart only and not more.
I think what ubzen meant was, from your subchart CI draw object to main chart.
Nope. CI can only accept one property
=== or ====
There are codes by WHRoeder which creates IIRC indicator buffers using Arrays; there are allot of his such examples. I recommend you do a good search.
In the end, indicator buffers are just arrays and oscillator's are just another method of drawing. What you ask for CAN be done but it requires some creativity.
Don't expect anyone to hold your hands and teach you how to do this one. I'm wondering why you cannot just make 2 separate indicators like everyone else, but I'm not even gonna bother asking why ;)
Thanks! Maybe another question, is there a suitable way of having more than 8 buffers in any indicator? Only 6 need to be public.
Or unlimited sized arrays for that matter :P
Oh yeah, I need much more internal buffers LOL! If we were using plain C I could do dinamic lists, but it is not the case with MQL.
I need 6 public buffers and 8 internal buffers :P
Please enable the necessary setting in your browser, otherwise you will not be able to log in.