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 will allow you to use decimals in a moving average, but it will calculate the Moving average as if it were whole numbers.
here is a test
Macd 1 using decimals in the input
ma1:=Input("short moving average",1,100,12.3);
ma2:=Input("long moving average ",1,200,25.7);
ma3:=Input("signal moving average",1,200,9);
0;
a:=Mov(C ,ma1 ,E )- Mov(C ,ma2 ,E );
b:=Mov(a,ma3,E);
a;
b;
a-b
Macd 2 using only whole numbers
ma1:=Input("short moving average",1,100,12);
ma2:=Input("long moving average ",1,200,26);
ma3:=Input("signal moving average",1,200,9);
0;
a:=Mov(C ,ma1 ,E )- Mov(C ,ma2 ,E );
b:=Mov(a,ma3,E);
a;
b;
a-b
plot them into a chart and you will see that the numbers are the same
|