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

RE: [amibroker] Multiple string constants in switch() case statement



PureBytes Links

Trading Reference Links

Why dont you put the info in the information fields for each symbol


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of whitneybroach
Sent: Tuesday, 29 January 2008 2:30 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Multiple string constants in switch() case statement

Can it be done? Formula Editor doesn't like this, but I wonder
something similar is even possible?

////////////////////////////////////////////
symcurrency = StrToUpper( StrLeft( sym, 6 ) );
switch ( symcurrency )
{
case "AUDUSD"
,"CADUSD"
,"CHFUSD"
,"EURUSD"
,"GBPUSD"
,"HKDUSD"
,"MXNUSD"
,"NLGUSD"
,"NZDUSD"
,"SEKUSD"
,"SGDUSD"
:
myPointValue = 100000;
myTickSize = 0.0001;
myMarginDeposit = 1000;
break;

case "JPYUSD"
:
myPointValue = 100000;
myTickSize = 0.01;
myMarginDeposit = 1000;
break;

default:
myPointValue = PointValue;
myTickSize = TickSize;
myMarginDeposit = MarginDeposit;
}
////////////////////////////////////////////

__._,_.___

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___