Hi Robert, Sorry i was late to respond ur msg.
Thanks for the idea. It is nice and simple . Good that u have included param so when the underlying price changes one can select the call/put sysmbols on the fly and no need to change codes. Regards -hetu --- In [email protected], "rhoemke" <[EMAIL PROTECTED]> wrote: > > Hi, > > i got this here: > Ticker1 = ParamStr("Symbol 1", Name() ); > Ticker2 = ParamStr("Symbol 2", Name() ); > Plot(Foreign(Ticker1, "C")-Foreign(Ticker2, "C"), "", > ParamColor("Color", colorCycle ), styleLine ); > > Regards > Robert > > --- In [email protected], Graham <kavemanperth@> wrote: > > > > try this > > setForeign("NFCE1_2900",1) > > e1=TimeFrameGetPrice("CLOSE", inDaily,-1); > > restorepricearrays(); > > > > the only thing may be if the different symbols do not have the correct > > prices for the same time bar. The 1 in the setforeign allows the > > foreign to allign to the main symbol, but if the main symbol does not > > have a bar at that time it will not read the foreign. > > > > -- > > Cheers > > Graham > > AB-Write >< Professional AFL Writing Service > > Yes, I write AFL code to your requirements > > http://e-wire.net.au/~eb_kavan/ab_write.htm > > > > > > On 25/07/06, Hetal <hetal_mba@> wrote: > > > hello Friends, > > > > > > I am working on the enclosed code but seems that there is something i > > > am missing . Bascically these are call symbols which i get it with my > > > rt data vendors i want the quotes in title in a stacked way as > > > series: call : Puts on the left upper corner on the underlying charts > > > dont know where i am missing . I dont know whether AB can get the > > > price of (foreign) of prv day in rt mode . i dono whether foreign and > > > timeframegetprice wrks to gather. > > > > > > e=Foreign("NFCE1_2900","CLOSE"); > > > e1=(TimeFrameGetPrice(Foreign("NFCE1_2900","CLOSE"), inDaily,- 1)); > > > //The aboveline gives me error > > > > > > ANy help friends on this code would be appreciated. > > > > > > Regards > > > -hetu > > > > > > > > > --- In [email protected], "personal592002" > > > <personal592002@> wrote: > > > > > > > > Dave, Thank you. Your formalu did just what I wanted. I modified > > > it > > > > slightly to add a parameter box. > > > > > > > > ticker = ParamStr( "Ticker", "spy" ); > > > > OtherStk = Foreign (ticker, "Close"); > > > > Spread = Close - OtherStk; > > > > Plot( Spread, "Spread - Difference", colorRed, styleDots ); > > > > > > > > > > > > > > > > --- In [email protected], "MarketMonk777" <dlittner@> > > > > wrote: > > > > > > > > > > You can try this: > > > > > > > > > > OtherStk = Foreign ("AMD", "Close"); > > > > > Delta = Close - OtherStk; > > > > > Plot( Delta, "Diff of 2 stocks", colorRed, styleDots ); > > > > > > > > > > You would put this in a chart on your INTC stock. Keep in mind > > > > that as you > > > > > change your current symbol, this chart will show the difference > > > > between the > > > > > currently viewed symbol and AMD. > > > > > > > > > > You might be able to select two symbols via the parameters box > > > and > > > > plot > > > > > their difference if this is something specific you are trying to > > > > accomplish > > > > > or need the flexibility to change symbols. > > > > > > > > > > Regards, > > > > > > > > > > Dave > > > > > > > > > > -----Original Message----- > > > > > From: [email protected] > > > [mailto:[EMAIL PROTECTED] > > > > On Behalf > > > > > Of personal592002 > > > > > Sent: Saturday, July 22, 2006 10:20 AM > > > > > To: [email protected] > > > > > Subject: [amibroker] How to plot the spread (differnce) between > > > two > > > > > securities? > > > > > > > > > > How to plot the spread (difference) between two securities? > > > > > > > > > > For example, I want to plot (chart) the difference between the > > > > price of INTC > > > > > and AMD..... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Please note that this group is for discussion between users only. > > > > > > > > > > To get support from AmiBroker please send an e-mail directly to > > > > > SUPPORT {at} amibroker.com > > > > > > > > > > For other support material please check also: > > > > > http://www.amibroker.com/support.html > > > > > > > > > > > > > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Please note that this group is for discussion between users only. > > > > > > To get support from AmiBroker please send an e-mail directly to > > > SUPPORT {at} amibroker.com > > > > > > For other support material please check also: > > > http://www.amibroker.com/support.html > > > > > > > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> GFT Forex Trading Accounts As low as $250 with up to 400:1 Leverage. Free Demo. http://us.click.yahoo.com/lpv1TA/jlQNAA/U1CZAA/GHeqlB/TM --------------------------------------------------------------------~-> Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.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: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
