Symbol specification from mql5

 

A part of the symbol specification from the MT5 help:

Type of orders — types of orders placed:

  • Good till today including SL/TP — orders that are valid only during one trading day. With the end of the day, all of the Stop Loss and Take Profit levels, as well as pending orders are deleted;
  • Good till canceled — pending orders are preserved for the next trading day;
  • Good till today excluding SL/TP — only pending orders are deleted at the end of a trading day, while Stop Loss and Take Profit levels are preserved

Filling — available fill policies: Fill or Kill, Immediate or Cancel, Return.

Expiration — available types of expiration of pending orders:

  • Good till Canceled — order lifetime is unlimited;
  • Intraday — orders are canceled at the end of the current trading;
  • Specified time — the order is canceled at a user-specified time;
  • Date — the order is canceled at the end of the day specified by the user.

I‌ can obtain filling and expiration mode values with SymbolInfoInteger (SYMBOL_FILLING_MODE and SYMBOL_EXPIRATION_MODE)

b‌ut I don't find property to get "Type of orders" (in the terminal write as "GTC mode")

D‌o you have any idea?

 
totati:
...

I‌ can obtain filling and expiration mode values with SymbolInfoInteger (SYMBOL_FILLING_MODE and SYMBOL_EXPIRATION_MODE)

b‌ut I don't find property to get "Type of orders" (in the terminal write as "GTC mode")

D‌o you have any idea?

Type of orders ?

EXPIRATION_MODE tells you if GTC is allowed or not.

Not sure I understand your problem.‌

 
Alain Verleyen:

Type of orders ?

EXPIRATION_MODE tells you if GTC is allowed or not.

Not sure I understand your problem.‌


Dear Alain,

In a symbol's contract specification from the "Market Watch" there are two properties:

G‌TC mode and Expiration.

P‌ress F1 and you can see that help says:

Type of orders — types of orders placed          (I think this is the GTC mode)

.‌...

Expiration — available types of expiration of pending orders

‌Thanks in advance

In MQL5 the EXPIRATION_MODE returns the second parameter, or not?

A‌nd how can I obtain first property?

Reason: