PureBytes Links
Trading Reference Links
|
not sure if this will help or not but you have not defined newstring, and
you are using a symbol "e" for the foreign
a=FullName();
newstring1=StrLeft(a,3);
b=Name();
newstring2=StrLeft(b,3);
Filter = newstring1==newstring2;
e1=Foreign(newstring1,"Close");
AddTextColumn(FullName(),"name");
AddTextColumn(newstring1,"a1"); // for test purpose
AddTextColumn(newstring2,"b1"); // for test purpose
AddColumn(e1,"Underlying",1.2);
AddColumn(C,"Option Close",1.2);
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com
On 14/12/06, Hetal <hetal_mba@xxxxxxxxx> wrote:
>
>
> Hello
>
> Basically i want the underlyings close value against the respective
> option chains.
> To get this i have makee my eod file is such a way that though i have
> seperate symbols for each option chain but the name i mean Fullname()
> is the same as the Ticker symbol of the underlyings in the hope that
> Fullnae and Name() i.e ticker are both strings.
> I tried to make an afl to do this but i dont get the values of the
> underlyings. I think i am missing something here .
> trying foreign didnt help because the string is of variable based on
> the fno chain
>
> Any help would be highly appreciated.
> Filter=1;
> a=FullName();
> newstring1=StrLeft(a,3);
> b=Name();
> newstring2=StrLeft(b,3);
>
> e1=Foreign("e","Close");
> f=IIf(newstring1==newstring2,e1,0);
> AddTextColumn(FullName(),"name",88);
> AddTextColumn(newstring1,"a1",5); // for test purpose
> AddTextColumn(newstring2,"b1",5); // for test purpose
> AddColumn(f,"Underlying",1.2); // i dont get values here
> //RestorePriceArrays();
> AddColumn(C,"Close",1.2);
> OR any other way to get the close of the underlyings for respective
> options chain.
>
> Thanks in advance
> hetu
>
>
>
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
>
>
>
>
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.18/586 - Release Date: 12/13/2006 6:13 PM
|