Why dont you put the info in the information fields for each symbol
_____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of whitneybroach Sent: Tuesday, 29 January 2008 2:30 PM To: [email protected] 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; } ////////////////////////////////////////////
