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

RE: [amibroker] Automatically retrieval of official Open price



PureBytes Links

Trading Reference Links

Is Cross(MACD(),Signal()); a safe Buy condition ?
For a positive answer we should see oversold prices in the basic 
indicators.
The exploration

Filter=Cross(MACD(),Signal());//the Buy Condition
AddColumn(StochD(),"StochD");
AddColumn(RSI(),"RSI");

will give the RSI() and StochD() values for the Cross day.
Since it is not always easy to search among the columns, here is a 
visual interpretation:
We may plot the CondRSI and the CondSTOCHD values in the same chart.

//Exploration Results Graph, by D. Tsokakis, March2003
Cond=Cross(MACD(),Signal());//the Buy Condition
CondRSI=ValueWhen(Cond,RSI());
CondSTOCHD=ValueWhen(Cond,StochD());
num=LastValue(Cum(Cond));L1=LastValue(Cum(1))-1;
j=L1-num+1;g1=0;g2=0;
for(i=0;i<BarCount;i++)
{
if(Cond[i]==1)
{
g1[j]=CondRSI[i];
g2[j]=CondSTOCHD[i];
j=j+1;
}
}
Plot(30,"",1,1);
Plot(50,"",1,1);
Plot(70,"",1,1);
Plot(g2,"CondSTOCHD",colorRed,styleThick);
Plot(g1,"CondRSI",colorWhite,styleArea);
Filter=Cond;
AddColumn(CondRSI,"CondRSI");
AddColumn(CondSTOCHD,"CondSTOCHD");

We will recognize at a glance many RSI and/or StochD values quite far 
from the o/s area.
Dimitris Tsokakis



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 
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/