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;
}
////////////////////////////////////////////