# Metastock Supertrend Indicator Color and Explorer

#### unholydevil

##### New Member
Metastock Supertrend Indicator Color and Explorer
Hi, I wan to ask here all the expert,
I have a code for supertrend indicator but without color , can someone code a color supertrend indicator?
any expert here can code the supertrend explorer to
1)filter uptrend stock which the price is above.
2)filter the Price today/within 3 day is above the supertrend indicator.

thanks alot

here is the indicator code for reference
Factor:=Input("Factor",1.00,10.00,3.00);
Pd:=Input("ATR Periods",1,100,10);
Up:=MP()+(Factor*ATR(Pd));
Dn:=MP()-(Factor*ATR(Pd));
Td:=If(Cross(C,LLV(Up,13)),1,If(Cross(HHV(Dn,13),C ),-1,PREV));
Dnx:=If(Dn=HighestSince(1,Cross(Td,0),Dn),Dn,PREV) ;
Upx:=If(Up=LowestSince(1,Cross(0,Td),Up),Up,PREV);
ST:=If(Td=1,Dnx,If(Td=-1,Upx,PREV));
ST;

#### umeshmandal

##### Well-Known Member
Metastock Supertrend Indicator Color and Explorer
Hi, I wan to ask here all the expert,
I have a code for supertrend indicator but without color , can someone code a color supertrend indicator?
any expert here can code the supertrend explorer to
1)filter uptrend stock which the price is above.
2)filter the Price today/within 3 day is above the supertrend indicator.

thanks alot

here is the indicator code for reference
Factor:=Input("Factor",1.00,10.00,3.00);
Pd:=Input("ATR Periods",1,100,10);
Up:=MP()+(Factor*ATR(Pd));
Dn:=MP()-(Factor*ATR(Pd));
Td:=If(Cross(C,LLV(Up,13)),1,If(Cross(HHV(Dn,13),C ),-1,PREV));
Dnx:=If(Dn=HighestSince(1,Cross(Td,0),Dn),Dn,PREV) ;
Upx:=If(Up=LowestSince(1,Cross(0,Td),Up),Up,PREV);
ST:=If(Td=1,Dnx,If(Td=-1,Upx,PREV));
ST;
Do you have CODE for use in exploration in Metastock! ?