PositionGetString boolean check

 
PositionGetString(POSITION_SYMBOL,_Symbol)

returns error "no one of the overloads can be applied to the function call", but

PositionGetString(POSITION_SYMBOL) == _Symbol

works fine.

First attempt should work according to documentation.

Am I missing something?

Thanks in advance

Documentation on MQL5: Trade Functions / PositionGetString
Documentation on MQL5: Trade Functions / PositionGetString
  • www.mql5.com
PositionGetString - Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Henrique Demarco:

returns error "no one of the overloads can be applied to the function call", but

works fine.

First attempt should work according to documentation.

Am I missing something?

Thanks in advance

The documentation means this

 string symbol;
 
 PositionGetString(POSITION_SYMBOL,symbol);