As for StopLevel=0. Thats because IBFX StopLevel=0. <-- Otherwise it'll give a value like 5, 10 or 20. In Points.
As for Point, it's because Doubles only print in 4-digits. If you want to print more than 4-digits use DoubleToString() or the shortcut provided below.
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ void start(){ double UsePoint1=0.0001; double UsePoint2=0.00001; Print("Prints Points TypeCast Double______UsePoint1=",UsePoint1," UsePoint2=",UsePoint2); Print("Prints Points TypeCast String______UsePoint1="+UsePoint1," UsePoint2="+UsePoint2); } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The + Sign changes the Type-Cast to match the String which comes before it.
2011.11.24 00:22:50 2011.01.02 23:00 Temporary EURUSD,M5: Prints Points TypeCast Double______UsePoint1=0.0001 UsePoint2=0 2011.11.24 00:22:50 2011.01.02 23:00 Temporary EURUSD,M5: Prints Points TypeCast String______UsePoint1=0.00010000 UsePoint2=0.00001000
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello, I have IBFX and its 5th decimal.
Why does MarketInfo(Symbol(),MODE_STOPLEVEL) = 0?
Why does MarketInfo(Symbol(),MODE_POINT) = 0?
Even when I am specifying point as 0.00001 with double it prints as 4 decimals. I was able to chat with IBFX and was told its because metaquotes defaults 4 decimals and not 5.
This doesn't really hurt my take profit and stop loss values but has anyone else seen this?