I looked at the Tradestation code and translated as follows - but it does not
return a value between 0 and 100 - not sure why it should based on the
calculation - but I may have it wrong:
Period = Param("Period",1,30,300,1);
denom = HHV(High,Period) - LLV(Low,Period);
num = abs(Ref(Close,Period
l code for choppy market index (pleaselook
here for tradestation
I looked at the Tradestation code and translated as follows - but it does not
return a value between 0 and 100 - not sure why it should based on the
calculation - but I may have it wrong:
Period = Param("Period" ,
:
From: Rick Osborn
Subject: Re: [amibroker] Re: Request afl code for choppy market index
(pleaselook here for tradestation
To: amibroker@yahoogroups.com
Date: Sunday, September 6, 2009, 11:54 AM
I think the problem may be with the first line
What happens if you change it to
Period = Param