PureBytes Links
Trading Reference Links
|
This is great.
Thanks this is what I was looking for but on the same price chart
pane.
--- In amibroker@xxxxxxxxxxxxxxx, Anthony Faragasso <ajf1111@xxxx>
wrote:
> Is this what you had in mind.
>
> MaxGraph = 10; // as many as you wish to use
> startpoint = 10; // the start point of comparision will be 10th bar
>
> price = Close;//current chart opened
>
> //insert your other tickers here
> ticker2="^DJI";
> ticker3="IBM";
> ticker4="MSFT";
>
> tickervalue = 100 * ( price/ValueWhen( Cum(1) == startpoint,
price ) - 1
> );
> Plot(tickervalue,Name(),colorRed,styleLine);
>
> // you can change the ticker below
> price = Foreign(ticker2, "C");
> ticker2value = 100 * ( price/ValueWhen( Cum(1) == startpoint,
price ) -
> 1 );
> Plot(ticker2value,"",colorWhite,styleLine);
>
> // you can change the ticker below
> price = Foreign(ticker3, "C");
> ticker3value = 100 * ( price/ValueWhen( Cum(1) == startpoint,
price ) -
> 1 );
> Plot(ticker3value,"",colorBlue,styleLine);
>
> // you can change the ticker below
> price = Foreign(ticker4, "C");
> ticker4value = 100 * ( price/ValueWhen( Cum(1) == startpoint,
price ) -
> 1 );
> Plot(ticker4value,"",colorYellow,styleLine);
>
> Title="COMPARATIVE OVERLAY"+"\n"+"\n"+EncodeColor(colorRed) +Name()
+"
> ="+WriteVal(tickervalue,1.2)+"\n"+EncodeColor(colorWhite)+ticker2+"
> ="+WriteVal(ticker2value,1.2)+"\n"+EncodeColor(colorBlue)+ticker3+"
> ="+WriteVal(ticker3value,1.2)+"\n"+EncodeColor(colorYellow)
+ticker4+"
> ="+WriteVal(ticker4value,1.2);
>
> Anthony
> pushshanmugam wrote:
>
> > Do I have to write a code for comparing two ore more stock/index
> > price movement? Or is there any easy way to do this - something
> > similar to MSN chart control's compare with or in Medvad
> > QuoteTracker's compare with feature?
> >
> > Pushparaj
> >
> >
> > Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
> >
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > 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
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make Money Online Auctions! Make $500.00 or We Will Give You Thirty Dollars for Trying!
http://us.click.yahoo.com/yMx78A/fNtFAA/46VHAA/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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|