Hi Mark
I think the volatility element could be coded like this ...
{Volatility}
N:=Input("Volatility Periods,2,99,10");
Mov(H-L,N,S);
Summing N periods and dividing by N gives the same result as an SMA. As for the
"Stop" element, I imagine it would be used in the same way as ATR is in an
ATR-based stop.
Regards
Roy
----- Original Message -----
From: markumansky
To: [email protected]
Sent: Wednesday, April 03, 2013 1:06 PM
Subject: [EquisMetaStock Group] Volatility Stop
Hello everyone;
Can anyone help me compute the MS code for the following indicator?
"To compute volatility for any number of price bars N, we take the sum of the
differences between the High and the Low for each bar for N days and divide by
N. We then have the average volatility for the last N days"
Any assistance would be very much appreciated!!!
Mark
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 8186 (20130402) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 8186 (20130402) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com