I'd like to have an indicator that would return and display the values of higher time frame chart indicators on the lowest time frame chart. This should (i hope) help me to filter my buy/sell signals. The indicator should display rounded numbers of Stoch. K and D values and 50 SMA values. The values for K and D should be displayed separately as I may use different period values for %K and %D. These are the minimum requirements - please see attached screen shot.
The charts I'm using are volume, minute and sometimes tick charts. The indicator should work on any of these and possibly other period type charts. The values I expect to see are the current rounded values of above indicators and the value of 1 for rising, -1 for falling and 0 for neutral. For ex., if K is rising then display 1, falling -1, neutral=0. The same applies to D and 50 SMA. These values should be displayed on the lowest time frame chart whenever the arrow is drawn - see attached .cs file. The attached is a simple Stochastic indicator with addition of simple code to display unfiltered up/down arrows. Your logic should be added to this indicator. Whenever the arrow is drawn (DrawArrow(...)) simply display the numbers separated by / and *. For ex.: 1/0/10/7/101*-1, where 1 is rising %K, 0 - neutral %D, 10 - curr value of K, 7-curr value of D, 100*-1 curr value of 50 SMA and *-1 - means falling 50 SMA - see screen [url removed, login to view] * symbol used to separate 100 (curr value of 50 SMA) and -1 - for falling 50 SMA. All these values are returned by your logic from the next higher time frame charts - see attached - higher t.f. values displayed inside the chart box of 1500 vol. chart.
There should be 3 sets of values one for each chart - 1500 vol, 3 and 9 min. Each set of values displayed on a new row under the current arrow starting with lower t.f chart, e.g. first row displays values of next higher time frame chart - 1500 vol. chart, second for 3 min, 3-rd for 9 min - see attached.
I should be able to change the Period types and values simply by typing/updating these values in declaration part. Declare variables, put default values for period type, period value etc... You know better...
All the values should be returned separately into local variables for later manipulation. When testing please use separate charts same as in my screen shot.