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

Re: [amibroker] Re: Advances in TA: Event flags



PureBytes Links

Trading Reference Links

Hi,
this is a good workaround.
Thanks for the idea!


----- Original Message ----- 
From: "b519b" <b519b@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, July 26, 2002 5:03 PM
Subject: [amibroker] Re: Advances in TA: Event flags


> There is an effective work around to do this by making an artificial 
> ticker for each stock and then using the Foreign() call for testing.
> 
> For example, for IBM create a ticker IBM_Flags
> Put your info into the various price and volume field. That will 
> give you 6 data items. If you want 10 fields, divide the O, H, L, C 
> fields in half using the decimal point. It is easy to use AB's 
> Fraction and Integer calls to get what you want.
> 
> If you need a lot of data fields, you can "pack" the data into each 
> digit of the price and volume fields. And then use AB's Fraction and 
> Integer calls with appropriate division and multiplication to get 
> the data items separated. Theoretically you should be able to get 6 
> digits in the price fields and 9 in the volume and OI fields. But 
> for safety you can use 5 from each. Also, you can pack 9 digits into 
> the volume and oi fields, but you can only extract 6 digits since AB 
> usings changes the data in these fields to decimal data (only 6 
> significant digits) to do the multiplication and division functions. 
> Even with just using 5 in each of the 6 regular fields, that gives 
> you 30 data fields, each with a range of 0 to 9.