PureBytes Links
Trading Reference Links
|
Dimitris,
You are quite correct. Question is - why is it empty? Can you tell from Tomasz's AFL why it is empty?
--------------------------------------------------------
RSIperiod = 14;
wper = 14;
Day1 = Param("day for point 1", 12, 1, 31, 1 );
Month1 = Param("month for point 1", 10, 1, 12, 1 );
Year1 = Param("year for point 1", 1990, 1950, 2150, 1 );
Day2 = Param("day for point 2", 9, 1, 31, 1 );
Month2 = Param("month for point 2", 10, 1, 12, 1 );
Year2 = Param("year for point 2", 1992, 1950, 2150, 1 );
Date1 = Day1 == Day() AND Month1 == Month() AND Year1 == Year();
Date2 = Day2 == Day() AND Month2 == Month() AND Year2 == Year();
i = BarsSince( Date1 );
j = BarsSince( Date2 );
RSI1 = ValueWhen( Date1, RSI( RSIperiod ) );
RSI2 = ValueWhen( Date2, RSI( RSIperiod ) );
Value = Min(Max((RSI2-RSI1)*(i+1)/(i-j)+RSI1, 1 ), 99 );
AUC = Wilders( Max( C - Ref( C, -1 ), 0 ), wper );
ADC = Wilders( Max( Ref( C, -1 ) - C, 0 ), wper );
x = ( wper - 1 )*( ADC * Value/(100-Value)-AUC);
RevEngTrendRSI = IIf( x >= 0, C + x, C + x*(100-Value)/Value );
Plot( Close, Date() + ", Close", colorBlack, styleCandle );
Plot( RevEngTrendRSI, "Reverse Trend RSI", colorRed );
---------------------------------------------------------
The sight of all those day/month/year parameters makes me nervous....
Steve
>----- Original Message -----
>From: "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx>
>To: Yahoo: amibroker@xxxxxxxxxxxxxxx
>Sent: Fri Jul 25, 2003 10:56 am
>Subject: Re: Tomasz - TASC August 2003 AFL formula's
>
>Steve,
>Your RevTrendRSI is [EMPTY] on the title.
>
>--- In amibroker@xxxxxxxxxxxxxxx, "Steve Almond" <steve2@xxxx> wrote:
>> Tomasz/others,
>>
>> When I display the two charts I get the attached picture. 'EMARSI'
>is fine. 'Trend RSI' doesn't display the appropriate line, just the
>close. Colours seem to be the same for both charts, so the line
>isn't 'hidden'.
>> Any idea of the problem?
>>
>> Steve
_____________________________________________________________
Sent by OnBoards: a bulletin board browser
Free at http://www.automatedenterprises.com
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|