PureBytes Links
Trading Reference Links
|
Just missed a bit
Plot(PCI,"PCI",colorBlue, styleline+styleThick);
Cheers,
Graham
http://e-wire.net.au/~eb_kavan/
-----Original Message-----
From: jfk_92 [mailto:jfk_92@xxxxxxxxx]
Sent: Saturday, April 24, 2004 9:48 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Help on customerized indicator plotting
I have a customerized indicator as follows. I have the difficulty to
plot the indicator "PCI". Thanks for the suggestion.
=============================
Period=Param("Period", 40,3,200);
Momentum=(C-Ref(C,-period))/(period-1);
PCI=0;
for (i=Period-1;i<=BarCount-1;i++)
{
DUP[i]=0;
DDOWN[i]=0;
for (j=i;j<=i-period+1;j--)
{
T=C[i-period+1]+(j-i+period-1)*Momentum[i];
if(C[j]>T)
DUP[i]=DUP[i]+C[j]-T;
if(C[j]<T)
DDOWN[i]=DDOWN[i]+T-C[j];
}
PCI[i]=DUP[i]/(DUP[i]+DDOWN[i])*100;
}
Plot(C,"C",colorBlack,styleCandle|styleOwnScale);
Plot(PCI,"PCI",colorBlue,styleThick);
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
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/
|