Auftrag beendet
Spezifikation
Hi Developers,
I would like an indicator that displays -in the chart window- a summary of some price indicators.
The display would look like the below
TREND
|
weekly |
daily |
4hr |
1hr |
SMA |
UP |
DOWN |
UP |
DOWN |
Fractals |
RANGE |
DOWN |
DOWN |
DOWN |
Slope |
UP |
DOWN |
RANGE |
UP |
Each result is separated by indicator and by timeframe- W1, D1, H4, H1.
SMA shows 'UP' if the last closing price for that period is above an SMA set as an 'input'.
SMA shows 'DOWN' if the last closing price for that period is below an SMA set as an 'input'.
(e.g. for daily it would be UP if the last daily close was above the 50 day SMA)
*Fractals refers to the Bill Williams indicator 'fractals' in the MT4 platform
Fractals shows 'UP' if the last fractal low completed above the previous fractal low AND the last fractal high completed above the previous fractal high
Fractals shows 'DOWN' if the last fractal low completed below the previous fractal low AND the last fractal high completed below the previous fractal high
Fractals shows 'RANGE' if neither 'UP' or 'DOWN' criteria is not met
Slope equals the rise-over-run for the linear regression. Rise refers to
the price change. Run refers to the timeframe. A 20-day Slope would be
the rise-over-run of a 20-day linear regression. If the rise is 4 points
and the run is two days, then the slope would be 2 (4/2 = 2). If the
rise is -6 points and the run is 2, then the slope would be -3 (6/2 =
3).
Slope shows 'UP' if the slope of the linear regression of the closing price over the last 'input' periods is above an 'input' variable.
Slope shows 'DOWN' if the slope of the linear regression of the closing price over the last 'input' periods is below an 'input' variable.
Slope shows 'RANGE' if the slope of the linear regression of the closing price over the last 'input' periods meets neither the 'UP' or 'DOWN' criteria
e.g. if the slope of the 50 day linear regression was 30 and i'd set the input to be above 20 is UP, then the result would be UP.
I would want the indicator to update every new 1hr candle without needing to reload the chart or indicator.
Thank you
-JTD