[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] I am stuck with this formaula Any Help Pls.



PureBytes Links

Trading Reference Links

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


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/585 - Release Date: 12/13/2006 11:49 AM