Thanks mladen for the quick reply and posting of the indicator, and thanks to NewDigital for the reference links.
The principal difference here was to show the correlation between the specified pairs (e.g. the pairs between the semicolon delimiter '...;CHFJPYEURAUD;...').
My understanding of the existing correlation indicator is that it shows the correlation of the pairs in the list to the host chart pair.
The intent with this new indicator is to show correlations of the pairs in the list to each other separate from the others in the list and separate from the host chart pair.
Just checking : since the correlations indicator is already able to follow 8 symbols, is what you have in mind an addition of separate time frame for each symbol in the list of symbols?
Here you go
Added options to control break out arrows and retrace arrows (so each kind can be treated separately) and a choosable symbol. Decided to do one more thing : when the symbol is different than the chart symbol it will not show arrows(I did it in order to avoid some misunderstanding : those arrows on a 'foreign" symbol could be highly misleading) If you want to change that behavior, remove the "&& ForSymbol==Symbol()" part in line 270, but then be careful for reasons stated above
Could you modify your indicator by eliminating the arrows that retrace back within the bands. I find that there is quite a bit of drawing and I'm more interested in the cross-overs beyond the bands.
As well, could you add the 'ForSymbol' input option too.
Thanks for your time!
mq5 version to mq4 version
Interesting one _________________________
First I was guessing what the hell is it and then I found that it is a hull moving average with an error in it. By default hull moving average (when correctly calculated) is a LWMA(2.0*LWMA(Length/2)-LWMA(Length),Square root(Length)) and in the one you posted the inner 2 values are calculated as EMA and the outer is still a LWMA
PS: there is no reason whatsoever to limit the number of bars for these calculations so this one does not have that limitation. Alerts and mtf added
What should i do to make an on-chart indicator to appear in a separate window. I mean coding wise.., what all should be changed. would it be same for all the indicators?
In general you should change just one line : find where it writes #property indicator_chart_window and change it to #property indicator_separate_window
You might run into problems if the indicator is using histogram on a main chart (colored bars, for example) - then it will not work the same way in the separate window because histogram in a separate window is zero based while in a main chart it is not. All the others should work OK
Thanks a lot.., i acted smart in one case and i had increased the buffer seeing one of your examples .., and i was just getting one line.., ha ha.., thanks this solved my problem.
Is it possible to bind the channels to a 0 line in the separate window.., for e.g., a cfb channel or the OMA channel. hope i'm clear enough for you to understand it .., if so.., what should be done.