Spezifikation
Dear Ladies and Gentlemen,
I need a small adjustment for an solid working cluster / correlation indicator.
I hope someone can help me out with implementing the functionalities as described below.
example pictures and a modeled view on the process will be explaining my requirement in more detail.
About the indicator which needs to be optimized:
This cluster Indicator visualizes the relative strength-values of the 8 major currencies.
Those values are visulized with moving averrages, each of them has a value displayed in the indicator at any time.
Status Quo:
The indicator can flawlessly draw all 8 currency strength curves, print the those values seperatly in the corner and send an e-mail-alert if two currency averrages are crossing or changing slope.
My Requirement:
1:
With each period the new delta of each currency should be printed on the chart with the absolute value (containing '+' & '-') (ref. and example in the pictures)
The delta-value describes the change [the gradient] of the slope-indicator's printed curve-values of the last candle period of each currency.
So the new delta would be the difference of the new slope value and the old slope value. (period 0 and predecessor)
2:
If the sign of a new delta-value changes in the new period after they're printed ('+' - '-' / '-' -> '+') && if the raw amount of the delta-value which changed it's sign is greater (>) than a predefined
value as external variable (double) --> sendmail() with following content: (currency name, timeframe, delta in what direction (+ / - ) and it's delta value.
edit: additionally this function should have as parameter: in the last (x parameter / variable [default = last persod = 1]) periods change of (x parameter / variable) slope value-delta. So the function checks if in the last x periods the delta value changed at greater x delta value (delta of the last x periods) if this is true, the sendmail() should be triggerd with the desired content.
Best regards and thank You in advance
Mogelbaum