Does MT5 deliver option values for CFD on options at some brokers?

 

I trade CFD on index options on MT5 build 1940. The real option ODAX contract would be to big for my account.

I assume some of the fields relevant for options will never be filled. But I am interested if it is my broker not maintaining the info for this symbols or is it MT not capable to deliver this values for CFD on options.


// Script CheckOptionValues.mq5
#property script_show_inputs
#property strict

input string   InpSymbol="Ger30MrP111";

void OnStart()
  {
   string option_description
   =SymbolInfoString(InpSymbol,SYMBOL_DESCRIPTION);

// The underlying asset of a derivative 
   string option_base
   =SymbolInfoString(InpSymbol,SYMBOL_BASIS);

// Option type, 
// return value not casted to ENUM_SYMBOL_OPTION_MODE
   ENUM_SYMBOL_OPTION_MODE option_mode
   =SymbolInfoInteger(InpSymbol,SYMBOL_OPTION_MODE);

// Option right (Call/Put), 
// return value not casted to ENUM_SYMBOL_OPTION_RIGHT
   ENUM_SYMBOL_OPTION_RIGHT option_right
   =SymbolInfoInteger(InpSymbol,SYMBOL_OPTION_RIGHT);

// The strike price of an option.
   double option_strike
   =SymbolInfoDouble(InpSymbol,SYMBOL_OPTION_STRIKE);

   PrintFormat("Input..: %s - %s",
               InpSymbol,option_description);
   PrintFormat("Base...: %s",
               option_base);
   PrintFormat("Right..: %d - %s",
               IntegerToString(option_right),
               EnumToString(option_right));
   PrintFormat("Mode...: %d - %s",
               IntegerToString(option_mode),
               EnumToString(option_mode));
   PrintFormat("Strike.: %f",
               DoubleToString(option_strike));
  }

Output:

2019.02.16 08:53:29.855 CheckOptionValues (Ger30Mar19,D1)       Input..: Ger30MrP111 - DAX March Put Option 11100
2019.02.16 08:53:29.857 CheckOptionValues (Ger30Mar19,D1)       Base...: 
2019.02.16 08:53:29.857 CheckOptionValues (Ger30Mar19,D1)       Right..: 0 - SYMBOL_OPTION_RIGHT_CALL
2019.02.16 08:53:29.857 CheckOptionValues (Ger30Mar19,D1)       Mode...: 0 - SYMBOL_OPTION_MODE_EUROPEAN
2019.02.16 08:53:29.857 CheckOptionValues (Ger30Mar19,D1)       Strike.: 0.000000