PureBytes Links
Trading Reference Links
|
> 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);
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
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
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|