PureBytes Links
Trading Reference Links
|
Hi William,
I want to thank you again for teaching me this. It seems I have
figured out something for myself, based on what you taught me. The
one additional problem I had was that in one of the Japanese
databases called "Master", there are two items, the Nikkei and TOPIX
indices (NIKI and IXJ), that need 1.2 formatting. So, after playing
around a bit, I came up with this, and it seems to work just fine:
if (GetDatabaseName() == "US-Stocks" OR (GetDatabaseName() ==
"Master" AND (Name() == "IXJ" OR Name() == "NIKI"))) x = 1.2;
else x = 1.0;
Look okay? Seems to work okay.
Thanks again,
Yuki
Friday, September 12, 2003, 1:12:11 PM, you wrote:
WP> Yes you've got the idea, the only difference is as follows:
WP> if (GetDatabaseName() == "XYZ")
WP> x = 1.2;
WP> else if (GetDatabaseName() == "YYY" OR GetDatabaseName() ==
WP> "QQQ" OR GetDatabaseName() == "ZZZ")
WP> x = 1.0;
WP> However, if you anticipate that you will only have one USD
WP> database then you could do something like this, where "XYZ" is
WP> your USD database:
WP> if (GetDatabaseName() == "XYZ")
WP> x = 1.2;
WP> else
WP> x = 1.0;
WP> Regards,
WP> William Peters
WP> www.amitools.com
WP> -----Original Message-----
WP> From: Yuki Taga [mailto:yukitaga@xxxxxxxxxxxxx]
WP> Sent: September 11, 2003 5:56 PM
WP> To: William Peters
WP> Subject: Re: [amibroker] Different curency databases -- an AB pain in
WP> the butt?
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/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/
|