İş Gereklilikleri
would like to have functions where I can define my own price so I can use Price as a parameter in any indicator. ( Such as (Open + High + Low + Close)/4, Or (High + Low)/2.
I would like to be able to draw a trendline on the chart and have text appear on the chart with the length of the trendline.
Also need a ZigZag indicator that I can base on user defined price as above. It needs user selectable Left and Right strengths and would like it to also label the lengths of each Zig and Zag with text on the screen.
I also need a moving average , standard deviation band indicator with these parameters:
1. Length
2. Type
3. Price
4. UpAvgColor
5. DnAvgColor
6. SDmult
7. ExpColor
8. CntColor
Length = # of bars
Type = the type of average calculation used with paramater inputs i0 through i12.
i0 = Linear Regression Curve
i4 = Weighted average. (Recent Bars weighted heavier)
i8 = Simple Average
i12 = Reverse Weighted Average (Earliest Bars weighted heavier opposite of the weighted average.)
Remaining outputs taken from above calculations:
i1 = Absolute Value of outputs (((i0-i4)*.33) + Lower of i0 & i4
i2 = Absolute Value of outputs (((i0-i4)*.5) + Lower of i0 & i4
i3 = Absolute Value of outputs (((i0-i4)*.66) + Lower of i0 & i4
i5 = Absolute Value of outputs (((i4-i8)*.33) + Lower of i4 & i8
i6 = Absolute Value of outputs (((i4-i8)*.5) + Lower of i4 & i8
i7 = Absolute Value of outputs (((i4-i8)*.66) + Lower of i4 & i8
i9 = Absolute Value of outputs (((i8-i12)*.33) + Lower of i8 & i12
i10 = Absolute Value of outputs (((i8-i12)*.5) + Lower of i8 & i12
i11 = Absolute Value of outputs (((i8-i12)*.66) + Lower of i8 & i12
Price = Selectable from Open, High, Low, Close, or user defined functions, Median, Weighted Close, etc.
UpAvgColor = Selectable color of plot displayed when MA plot is going up.
DnAvgColor = Selectable color of plot displayed when MA plot is going down.
SDmult = Standard Deviation bands calculated from inputs length and price plotted above and below the MA plot. If this input were 2, there would be a plot 2 standard deviations above and below the MA plot displayed and calculated from the “Type” input.
ExpColor = Selectable color of SD plots when the bands are expanding or widening.
CntColor = Selectable color of SD plots when the bands are contracting or narrowing.
Would also like a variant of above indicator, without the bands, that plots all 13 MA values at once with selectable rising falling colors for each plot. If it is possible.
Thanks
Update:
For ma/sd indicator, all plots need to be able to shift right together a variable number of bars. Would like to be able to set plot properties independently for ma plot and the two sd plots.
On the zig zag indicator: would like the text to show the current zag length, then the proceeding zig length. so if there were a zig up 14 bars then a zag down 16 bars, the text output on the screen would show 16 : 14. would also like a variable to input a point value to plot the text above the high plus x number of points on the peaks of the zigzag and below the low x number of points below the valleys of the zig zag. on the last line of the zig zag that is currently forming and updating as new bars appear on chart, it will need to search for the left strength only. The right strength will need to be zero so it will update the text values as if it were a peak or valley without having to wait for the actual right strength to occur. so assuming you have this zigzag indicator with a left strength of 5 and a right strength of 5 applied to a chart as such: with a trend up of 10, then a trend down of 11, then a trend up of 12, then a trend down of 13 to the current last bar on the chart, the first peak would have the text "11 : 10" on the chart x number if points above the peak bar. The next valley would have the text "12 : 11" x number of points below the low bar on the chart. the last zigzag line up to the last bar on the chart would have "13 : 12" above that last high bar. If the next 14th bar of this uptrend were higher than bar 13 then the line would update to extend to the 14th bar, the "13 : 12" text would disappear from above the 13th bar and the text "14 : 12" would appear x number of points above the 14th last bar. If the price of the 14th bar the zig zag was analyzing were lower than the 13th bar, then the zigzag line would not update to the 14th bar and "13 : 12" would remain above the 13th peak bar. In tradestation, I have this indicator as a show me that just puts dots on peaks and valleys because sometimes there are several peaks discovered without valleys of adequate lengths inbetween and vice versa.