Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
Metastock cannot differentiate the color change as a single value.One line, one color. One line thickness for one value. You can create an indicator that gives 5 different values, and then color each value a different color. Change the style of plot to dots and give them the thickest line What Metastock can do is color the bars different colors using the HIGHLIGHT TAB in the EXPERT ADVISOR, be advised that the order of precedence will also affect the highlights.
I found that you would need to set the precedence in the following order
Climax churn color =5 Low Churn Color=4 Churn Color =3 Climax color=2 extreme color =1 1 would be for higher Volume -1 would be for lower volume
you will find that low churn color and churn color both fire off at the same time making no difference
Code:Per1:=Input("length",5,100,10);Plot:=Input("1=V 2=indicator ",1,2,2);Value1:= V;Value2:= V*(H-L);Value3:= V/(H-L);If(Plot=2,If(V=LLV(L,Per1),-1,If(V=HHV(V,Per1),1,0)),V);If(Plot=2,If(Value2=LLV(Value2,Per1),-2,If(Value2=HHV(Value2,Per1),2,0)),V);If(Plot=2,If(Value3=LLV(Value3,Per1),-3,If(Value3=HHV(Value3,Per1),3,0)),V);If(Plot=2,If(Value3=LLV(Value3,Per1),-4,If(Value3=HHV(Value3,Per1),4,0)),V);If(Plot=2,If(Value2=LLV(Value2,Per1) AND Value3=LLV(Value3,Per1),-5,If(Value2=HHV(Value2,Per1) AND Value3=HHV(Value3,Per1),5,0)),V)
|