Metastock Indicator Formula |
Monthly High & Low Curves |
These indicators are for analysis of weekly high price and low price.
You only need to copy this formula into meta-stock Indicator builder.
|
Formula: |
{Monthly High and Low Value}
{Variable}
xx:=Input("Nth Year",1,4000,2009);
xxx:=Input("Nth Month",1,12,7);
{Logic}
dye:=DayOfMonth()=1 AND Month()=xxx AND Year()=xx;
a:=ValueWhen(1,dye,Cum(1)-1);
a1:= Cum(1)-1-a;
a2:=LastValue(a1);
{Data Array}
a3:=LastValue(ValueWhen(1,a2 , HHV(HIGH ,a2 )));
a4:=LastValue(ValueWhen(1,a2 , LLV(LOW,a2 )));
a3;a4;
|
|
|