PureBytes Links
Trading Reference Links
|
OK, Bill, thanks for all your help, as usual. I'll
recheck my numbers.
Ken
> Do you have some AFL code that > exactly matches the
FT chart program?
Ken,
The code below is the substitution I
posted, inserted into your original posted code. For me, it produces exactly
the same value as FastTrack, for instance, 370.531, as of 1/20/06, using my
versions of the extended proxies, slpiz and shpiz, in AB and in FT. Using
slpix and shpix, AB and FT both show 22.334 for
1/20/06.
Bill
/* Relative Strength -
FT Style.afl
Ken Close, with change by Bill Barnard, 1/20/06
*/
SLPIK=Foreign("SLPIK","C"); SHPIK=Foreign("SHPIK","C");
Pr=24; Pr2=44;
//
start change by BB
num1 = IIf(IsEmpty(SLPIK[BarCount - 1]), 1,
LastValue(Cum(NOT IsEmpty(SLPIK)))); num2 = IIf(IsEmpty(SHPIK[BarCount -
1]), 1, LastValue(Cum(NOT IsEmpty(SHPIK)))); mutualMax = Min(num1,
num2); startIndex = BarCount - mutualMax; si =
startIndex;
StartPLong = SLPIK[si]; StartPShort =
SHPIK[si]; //StartPLong=SLPIK[5]; //StartPShort=SHPIK[5];
//
end change by
BB
RS1=SLPIK/StartPLong; Rs2=SHPIK/StartPShort; RS=(RS1/Rs2)*10;
ShortSma=MA(RS,Pr); LongSMA
=MA(RS,Pr2); Plot(ShortSma,"",6,4); Plot(LongSMA,"",11,4); Plot(RS,"RS",colorYellow,4);
-- No virus found in this incoming message. Checked by AVG
Free Edition. Version: 7.1.375 / Virus Database: 267.14.21/236 - Release
Date: 1/20/2006
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
YAHOO! GROUPS LINKS
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.21/236 - Release Date: 1/20/2006
|