Experiments with MetaTrader 5 at Discovery - page 67

 
Please advise what this script gives out on the Open
#define TOSTRING(A) #A + " = " + (string)(A)

void OnStart()
{
  Print(EnumToString((ENUM_SYMBOL_TRADE_EXECUTION)SymbolInfoInteger(_Symbol, SYMBOL_TRADE_EXEMODE)));
  Print(TOSTRING(SymbolInfoInteger(_Symbol, SYMBOL_FILLING_MODE)));  
  Print(TOSTRING(SYMBOL_FILLING_IOC));
  Print(TOSTRING(SYMBOL_FILLING_FOK));
}
On BCS
Test (Si-12.16,M1)      SYMBOL_TRADE_EXECUTION_EXCHANGE
Test (Si-12.16,M1)      SymbolInfoInteger(_Symbol,SYMBOL_FILLING_MODE) = 0
Test (Si-12.16,M1)      SYMBOL_FILLING_IOC = 2
Test (Si-12.16,M1)      SYMBOL_FILLING_FOK = 1

This means that onlyORDER_FILLING_RETURN is allowed on the BCS. Exchange ORDER_FILLING_FOK and ORDER_FILLING_IOC are prohibited! This proves inaccuracy of BCS adjusters.

On Metaquotes-Demo the settings are correct (everything is allowed)

Test (Si-12.16,M1)      SYMBOL_TRADE_EXECUTION_EXCHANGE
Test (Si-12.16,M1)      SymbolInfoInteger(_Symbol,SYMBOL_FILLING_MODE) = 3
Test (Si-12.16,M1)      SYMBOL_FILLING_IOC = 2
Test (Si-12.16,M1)      SYMBOL_FILLING_FOK = 1

And on Otkritie, are the hands straight?

 
For limit orders, does the type of filling matter at all?
 
fxsaber:
Please advise what this script gives out on the Open
#define TOSTRING(A) #A + " = " + (string)(A)

void OnStart()
{
  Print(EnumToString((ENUM_SYMBOL_TRADE_EXECUTION)SymbolInfoInteger(_Symbol, SYMBOL_TRADE_EXEMODE)));
  Print(TOSTRING(SymbolInfoInteger(_Symbol, SYMBOL_FILLING_MODE)));  
  Print(TOSTRING(SYMBOL_FILLING_IOC));
  Print(TOSTRING(SYMBOL_FILLING_FOK));
}
On BCS
Test (Si-12.16,M1)      SYMBOL_TRADE_EXECUTION_EXCHANGE
Test (Si-12.16,M1)      SymbolInfoInteger(_Symbol,SYMBOL_FILLING_MODE) = 0
Test (Si-12.16,M1)      SYMBOL_FILLING_IOC = 2
Test (Si-12.16,M1)      SYMBOL_FILLING_FOK = 1

This means that onlyORDER_FILLING_RETURN is allowed on the BCS. Exchange ORDER_FILLING_FOK and ORDER_FILLING_IOC are prohibited! This proves inaccuracy of BCS adjusters.

On Metaquotes-Demo the settings are correct (everything is allowed)

Test (Si-12.16,M1)      SYMBOL_TRADE_EXECUTION_EXCHANGE
Test (Si-12.16,M1)      SymbolInfoInteger(_Symbol,SYMBOL_FILLING_MODE) = 3
Test (Si-12.16,M1)      SYMBOL_FILLING_IOC = 2
Test (Si-12.16,M1)      SYMBOL_FILLING_FOK = 1

And on Otkritie, are the hands straight?

2016.11.12 16:36:01.379 test_filling_mode_fxsaber (RTS-12.16,M1)        SYMBOL_FILLING_FOK = 1
2016.11.12 16:36:01.379 test_filling_mode_fxsaber (RTS-12.16,M1)        SYMBOL_FILLING_IOC = 2
2016.11.12 16:36:01.379 test_filling_mode_fxsaber (RTS-12.16,M1)        SymbolInfoInteger(_Symbol,SYMBOL_FILLING_MODE) = 3
2016.11.12 16:36:01.378 test_filling_mode_fxsaber (RTS-12.16,M1)        SYMBOL_TRADE_EXECUTION_EXCHANGE
 
Alexey Kozitsyn:
2016.11.12 16:36:01.379 test_filling_mode_fxsaber (RTS-12.16,M1)        SYMBOL_FILLING_FOK = 1
2016.11.12 16:36:01.379 test_filling_mode_fxsaber (RTS-12.16,M1)        SYMBOL_FILLING_IOC = 2
2016.11.12 16:36:01.379 test_filling_mode_fxsaber (RTS-12.16,M1)        SymbolInfoInteger(_Symbol,SYMBOL_FILLING_MODE) = 3
2016.11.12 16:36:01.378 test_filling_mode_fxsaber (RTS-12.16,M1)        SYMBOL_TRADE_EXECUTION_EXCHANGE
Thank you! There are straight hands at the Opening.
 
Is it the same thing with the filling modes on Otkritie?
 

I understand that Otkritie has only a futures market in Mt5 or is there also a spot forex market?

Looking for a spot forex broker and in parallel with CFD instruments on currency futures

 
Viktor Eismant:

I understand that Otkritie has only a futures market in Mt5 or is there also a spot forex market?

Looking for a spot forex broker and in parallel with CFD instruments on currency futures

They have: futures, forex and stock sections
 
why can't they realise the purchase of bonds, including OFZs, via MT5, the chart is quoted (for some) but trading is unavailable...?
 
And options are not connected yet. I would like to see and compare it with a Quickie.
 
Are there plans to add options? At least in demo-server access, to learn and practice different constructions. Real ticks with lag is a very useful mode, already tested one robot there, although I noticed once some divergence in quotes of two hourly candles with real data of Opening. Add options - it would be cool, you could study and combine with stocks and futures in one place!
Reason: