Registered User Joined: 2/9/2007 Posts: 21
|
Better Volume
Inputs: Color(Cyan), LowColor(Yellow), ClimaxColor(Red), ChurnColor(Green),
ClimaxChurnColor(Magenta), LowChurnColor(White), AvgColor(Red);
Variables: BarColor(Cyan);
BarColor = Color;
Value1 = V;
Value2 = V*Range;
If Range <> 0 then Value3 = V/Range;
Value4 = Average(Value1,100);
If Value1 = Lowest(Value1,20) then BarColor = LowColor;
If Value2 = Highest(Value2,20) then BarColor = ClimaxColor;
If Value3 = Highest(Value3,20) then BarColor = ChurnColor;
If Value2 = Highest(Value2,20) and Value3 = Highest(Value3,20) then BarColor = ClimaxChurnColor;
If Value3 = Lowest(Value3,20) then BarColor = LowChurnColor;
Plot1(Value1,"Volume",BarColor);
Plot2(Value4,"Avg",AvgColor);
could you please convert this to telechart code thank you
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
TeleChart does not have a mechanism for user defined coloring of Price, Volume or other Indicators. The candlesticks in TeleChart combine color and body type to provide both Current Close versus Current Open and Current Close versus Previous Close information in the same Candle (if Plot down days in a different color is selected).
Candlesticks:
Current Close > Open = Hollow
Current Close < Open = Solid
Current Close >= Previous Close = Green
Current Close < Previous Close = Red
Price Color and Volume Bar Color treat a Net Change of zero differently. The Candle is green but the Volume Bar is red.
Volume Bars:
Current Close > Previous Close = Green
Current Close <= Previous Close = Red
It is also possible to have a Balance of Power (BOP) Indicator on the Chart with Apply BOP Colors to Price Graph checked. If this is the case, green means BOP is greater than thirty, red means BOP less than negative 30 and yellow means BOP is between thirty and negative thirty.
Price, Volume Bars and Balance of Power all allow you to adjust the specific colors used, but not the criteria used to assign the colors.
Plot 1 and Plot 2 would just appear to be Volume Bars with a 100-Period Simple Moving Average applied as a Child Indicator.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 5/16/2010 Posts: 33
|
can do a substitute of sorts with 4 binary oscillators in the same pane-probably the middle pane so that the different colored ^ spikes point to the price bars... HyVolChurn and HV Climax Up would be something like the ones below and you would do 2 others for HV climax down and low volume. In the end you would have 4 indicators each with the various better volume colors... You could also put them on the volume pane
CHURN
0- (C>=O and
(H-L)/V >= (H1-L1)/V1 and
(H-L)/V >= (H2-L2)/V2 and
(H-L)/V >= (H3-L3)/V3 and
(H-L)/V >= (H4-L4)/V4 and
(H-L)/V >= (H5-L5)/V5 and
(H-L)/V >= (H6-L6)/V6 and
(H-L)/V >= (H7-L7)/V7 and
(H-L)/V >= (H8-L8)/V8 and
(H-L)/V >= (H9-L9)/V9 and
(H-L)/V >= (H10-L10)/V10 and
(H-L)/V >= (H11-L11)/V11 and
(H-L)/V >= (H12-L12)/V12 and
(H-L)/V >= (H13-L13)/V13 and
(H-L)/V >= (H14-L14)/V14 and
(H-L)/V >= (H15-L15)/V15 and
(H-L)/V >= (H16-L16)/V16 and
(H-L)/V >= (H17-L17)/V17 and
(H-L)/V >= (H18-L18)/V18 and
(H-L)/V >= (H19-L19)/V19 and
(H-L)/V >= (H20-L20)/V20 and
(H-L)/V >= (H21-L21)/V21
)
CLIMAX UP
0- (C>=O and
(H-L)*V >= (H1-L1)*V1 and
(H-L)*V >= (H2-L2)*V2 and
(H-L)*V >= (H3-L3)*V3 and
(H-L)*V >= (H4-L4)*V4 and
(H-L)*V >= (H5-L5)*V5 and
(H-L)*V >= (H6-L6)*V6 and
(H-L)*V >= (H7-L7)*V7 and
(H-L)*V >= (H8-L8)*V8 and
(H-L)*V >= (H9-L9)*V9 and
(H-L)*V >= (H10-L10)*V10 and
(H-L)*V >= (H11-L11)*V11 and
(H-L)*V >= (H12-L12)*V12 and
(H-L)*V >= (H13-L13)*V13 and
(H-L)*V >= (H14-L14)*V14 and
(H-L)*V >= (H15-L15)*V15 and
(H-L)*V >= (H16-L16)*V16 and
(H-L)*V >= (H17-L17)*V17 and
(H-L)*V >= (H18-L18)*V18 and
(H-L)*V >= (H19-L19)*V19 and
(H-L)*V >= (H20-L20)*V20 and
(H-L)*V >= (H21-L21)*V21
)
|