Sent: Thursday, July 05, 2007 12:22
AM
Subject: [amibroker] StoRSI on CSCO
Hello All,
I am having a small problem; sometimes on some data (for example CSCO eod
data) an indicator is not being shown in the graph until i click on the chart.
For example for the StoRSI code below on CSCO data i do not see the graph
until i click on the graph pane; but even so, the buy and sell signals dont
come up; since the StoRSI array is presumably being {EMPTY}. I tried some
debugguing but could not see what i was doing wrong.. can someone
help..
UpperLine = 90;
LowerLine = 10;
Plot( 100, "",
colorBlue, styleNoDraw);
Plot( 0, "", colorBlue, styleNoDraw);
Plot( UpperLine, "Upper Level", colorBlue,
styleLine);
Plot( LowerLine, "Lower
Level", colorBlue, styleLine);
r =
RSI(8);
StoRSI = EMA(( r - LLV( r, 8 )) / (( HHV( r, 8 )) - LLV( r, 8 )), 3 ) * 100;
Plot( StoRSI , "StoRSI", colorBlack,
styleLine);
GraphXSpace = 2;
_TRACE("StoRSI:" + StoRSI);
Buy = (StoRSI < 30);
Sell = (BarsSince(Buy) == 10);
thanks
Chaitanya.
No virus found in this incoming message.
Checked by AVG Free
Edition.
Version: 7.5.476 / Virus Database: 269.9.14/885 - Release Date:
7/3/2007 10:02 AM