PureBytes Links
Trading Reference Links
|
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);
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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
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/
|