[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Re: Stochastic Rsi



PureBytes Links

Trading Reference Links




<SPAN 
class=328120101-27072003>Daniel,
I 
think I missed a closing Parenths.... try
<SPAN 
class=328120101-27072003> 
<FONT 
color=#282828 size=2> 
period=Param(<FONT 
size=2>"Periods",6<FONT 
size=2>,5,<FONT 
size=2>50<FONT 
color=#0000ff>);
smooth= 5<FONT 
color=#0000ff>;
spread = Foreign(<FONT 
size=2>"EDZ03", "C") 
- Foreign(<FONT 
size=2>"EDU03", "C"<FONT 
color=#282828 size=2> );
 
storsi =( ( RSIa(spread, period) - 
LLV( <FONT 
size=2>RSIa<FONT 
color=#0000ff>(spread,period) ,period) ) /<FONT color=#282828 
face=Arial size=2>
( HHV( 
RSIa(spread,period) ,period) - 
LLV(<FONT 
size=2>RSIa
(spread,period),period) )<FONT 
color=#282828 size=2>) ;
 
Plot(<FONT 
size=2>EMA(storsi,5<FONT 
size=2>),EncodeColor(<FONT 
size=2>colorWhite)+"Sto 
Rsi",colorBlue<FONT 
size=2>,1<FONT 
color=#0000ff>);
Plot(<FONT 
size=2>EMA(EMA<FONT 
size=2>(storsi,5),smooth),<FONT 
size=2>"5 DMA",<FONT 
size=2>colorYellow,1<FONT 
color=#282828 size=2>);
Plot(.30,<FONT 
size=2>"",colorRed<FONT 
size=2>,1<FONT 
color=#0000ff>);
Plot(.80,<FONT 
size=2>"",colorGreen<FONT 
size=2>,1<FONT 
color=#0000ff>);
 
Buy=<FONT 
size=2>Cross(EMA<FONT 
size=2>(storsi,5),<FONT 
size=2>EMA(EMA<FONT 
size=2>(storsi,5<FONT 
color=#0000ff>),smooth));
Sell=<FONT 
size=2>Cross(EMA<FONT 
size=2>(EMA(storsi,<FONT 
size=2>5),smooth),EMA<FONT 
size=2>(storsi,5<FONT 
color=#0000ff>));
 
PlotShapes(<FONT 
size=2>IIf (Buy<FONT 
size=2>,shapeUpArrow<FONT 
size=2>,shapeNone<FONT color=#282828 
size=2>)
,colorBrightGreen<FONT 
size=2>,0,<FONT 
size=2>Graph0,-15<FONT 
color=#282828 size=2>);
PlotShapes(<FONT 
size=2>IIf(Sell<FONT 
size=2>,shapeDownArrow<FONT 
size=2>,shapeNone<FONT 
size=2>),colorRed,<FONT 
size=2>0,Graph1<FONT 
color=#282828 size=2>,- 
 
15<FONT 
color=#0000ff>);

 
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: traderix2003 
[mailto:d.adam@xxxxxxxxxx]Sent: Saturday, July 26, 2003 1:59 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Re: 
Stochastic RsiHi, Jayson,I get an AFL 
Error:  "syntax error at line 7, column 71.....Could you please 
check it? This formula is what I was looking for ...Thank 
youDanielWhile the description (from A-Z) is  ambiguous I 
believe that your formula> demonstrates that indeed RSI looks at one 
piece of data (Close) rather than> a combination. That being the case 
renaming the close variable to any data> set should in fact 
work.> > As I type this I am suddenly reminded that Tomasz has 
already made our life> easier with RSIa which would be a far simpler 
solution....> > period=Param("Periods",6,5,50);> smooth= 
5;> spread = Foreign("EDZ03", "C") - Foreign("EDU03", "C" );> 
> storsi =( ( RSIa(spread, period) - LLV( RSIa(spread,period) 
,period) ) /> HHV( RSIa(spread,period) ,period) ) - 
LLV(RSIa(spread,period),period) ) );> >  
Plot(EMA(storsi,5),EncodeColor(colorWhite)+"Sto Rsi",colorBlue,1);>  
Plot(EMA(EMA(storsi,5),smooth),"5 DMA",colorYellow,1);>  
Plot(.30,"",colorRed,1);>  Plot(.80,"",colorGreen,1);> 
>  Buy=Cross(EMA(storsi,5),EMA(EMA(storsi,5),smooth));>  
Sell=Cross(EMA(EMA(storsi,5),smooth),EMA(storsi,5));> >  
PlotShapes(IIf (Buy,shapeUpArrow,shapeNone)> 
,colorBrightGreen,0,Graph0,-15);> 
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,Graph1,- 
15);> > > Regards,> Jayson> -----Original 
Message-----> From: DIMITRIS TSOKAKIS [mailto:TSOKAKIS@xxxx]> 
Sent: Saturday, July 26, 2003 2:31 AM> To: 
amibroker@xxxxxxxxxxxxxxx> Subject: [amibroker] Re: Stochastic 
Rsi> > > Jason,> I have to confess that I never 
understood this [A-Z]description.> Thats why I wrote the analytic RSI 
formula> <A 
href="">http://www.amibroker.com/library/detail.php?id=143> 
Since we are lucky enough to speak AFL, there is no need for> ambiguous 
descriptions.> "An average of upward price change" is a multisense 
verbal> description and may be translated in many ways. Note also 
that> the "upward price change" is not defined somewhere .> 
Dimitris Tsokakis> --- In amibroker@xxxxxxxxxxxxxxx, "Jayson" 
<jcasavant@xxxx> wrote:> > Daniel,> > I see no reason 
why you could not. Simply create a composite ticker> called> 
> spread that is constructed with the data you have outlined. then> 
bring up> > the new ticker and apply the indicator to it.> 
>> > Another way may be to rename the closing data to 
spread,> >> > c=spread> >> > I believe 
that the math for RSI is derived from closing data so if> that 
is> > the case than simply add the lines> >> > 
spread = Foreign("EDZ03", "C") - Foreign("EDU03", "C" );> > 
c=spread;> >> > and you should have the StoRSI of Spread. I 
checked the site TA A-Z> and> > found the formula for RSI 
to be> >> > The RSI is a fairly simple formula, but is 
difficult to explain> without> > pages of examples. Refer to 
Wilder's book for additional calculation> > information. The basic 
formula is:> >> >> >> > Where:> 
>> >> >> > I would interpret that to be closing 
data. Try it!!> >> >> >> > 
Regards,> > Jayson> >> > -----Original 
Message-----> > From: traderix2003 [mailto:d.adam@xxxx]> > 
Sent: Friday, July 25, 2003 12:43 PM> > To: 
amibroker@xxxxxxxxxxxxxxx> > Subject: [amibroker] Re: Stochastic 
Rsi> >> >> > Hi, Jason,> >> > 
I would like to use your Stochastic Rsi formula for Spreads.> > Is it 
possible to adapt it ?> >> > spread = Foreign("EDZ03", "C") 
- Foreign("EDU03", "C" );> >> >> >> > 
Thxs a lot for your help.> >> > Daniel> > > 
period=Param("Periods",6,5,50);> > > smooth= 5;> > > 
storsi =( ( RSI( period) - LLV( RSI(period) ,period) ) /> > >  
HHV( RSI(period) ,period) ) - LLV(RSI(period),period) ) );> > 
>> > > Plot(EMA(storsi,5),EncodeColor(colorWhite)+"Sto 
Rsi",colorBlue,1);> > > Plot(EMA(EMA(storsi,5),smooth),"5 
DMA",colorYellow,1);> > > Plot(.30,"",colorRed,1);> > 
> Plot(.80,"",colorGreen,1);> > >> > > 
Buy=Cross(EMA(storsi,5),EMA(EMA(storsi,5),smooth));> > > 
Sell=Cross(EMA(EMA(storsi,5),smooth),EMA(storsi,5));> > >> 
> > PlotShapes(IIf> > (Buy,shapeUpArrow,shapeNone) 
,colorBrightGreen,0,Graph0,-15);> > > 
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,Graph1,-> 
> 15);> > >> > >> > > Regards,> 
> > Jayson> > > -----Original Message-----> > > 
From: mleonsprint [mailto:mleonsprint@xxxx]> > > Sent: Thursday, 
July 24, 2003 1:45 AM> > > To: amibroker@xxxxxxxxxxxxxxx> 
> > Subject: [amibroker] Stochastic Rsi> > >> > 
>> > > Does anyone have the formula to the Stochastic 
Rsi?> > >> > > Thanks for your help> > > 
Mark> > >> > >> > 
>       Yahoo! Groups Sponsor> > 
>             
ADVERTISEMENT> > >> > >> > >> > 
>> > > Send BUG REPORTS to bugs@xxxx> > > Send 
SUGGESTIONS to suggest@xxxx> > > 
-----------------------------------------> > > Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx> > 
> (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)> 
> > --------------------------------------------> > > Check 
group FAQ at:> > > <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html> 
> >> > > Your use of Yahoo! Groups is subject to the Yahoo! 
Terms of> > Service.> >> >> 
>       Yahoo! Groups Sponsor> 
>             
ADVERTISEMENT> >> >> >> >> > 
Send BUG REPORTS to bugs@xxxx> > Send SUGGESTIONS to 
suggest@xxxx> > -----------------------------------------> > 
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx> > 
(Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)> 
> --------------------------------------------> > Check group FAQ 
at:> > <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html> 
>> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service.> > >       
Yahoo! Groups 
Sponsor>             
ADVERTISEMENT> > > > > Send BUG REPORTS to 
bugs@xxxx> Send SUGGESTIONS to suggest@xxxx> 
-----------------------------------------> Post AmiQuote-related messages 
ONLY to: amiquote@xxxxxxxxxxxxxxx> (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)> 
--------------------------------------------> Check group FAQ at:> 
<A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html> 
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service.Send 
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









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 the Yahoo! Terms of Service.