PureBytes Links
Trading Reference Links
|
This one works like a charm, very useful..
Thanks a lot
//Compare actual selected stock with whatever you want to...
// Use in Indicator window, press CTRL-R to change the value of
CompareTicker
CompareTicker = ParamStr( "Compare "+Name()+" with:","^IXIC" );
BarIsVisible = Status("barvisible");
firstBarVisible = BarIsVisible AND NOT Ref( BarIsVisible, -1 );
BarsVisible = LastValue(BarsSince (FirstBarVisible))+1;
array1=Foreign(CompareTicker,"C");
scaledArray1=100*(array1/ValueWhen(firstBarVisible,array1)-1);
Plot(scaledArray1,CompareTicker,colorBlue,styleLine);
scaledArray2=100*(C/ValueWhen(firstBarVisible,C)-1);
Plot(scaledArray2,Name(),colorRed,styleLine);
--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx>
wrote:
> Hello,
>
> Use ParamStr instead http://www.amibroker.com/f?paramstr
>
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/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/
|