arguments in .Buy() from CTrade

 
Hi, i have the following code: 
CTrade  Trade;
void OnTick(){

...

if(TotalPosicoes == 0 && Espaco > 0 && Signal == true){
         Trade.Buy(Contratos, _Symbol, 0, 0, 0, 1);
      }  else if((TotalContratos >= (TotalVolume + Contratos)) && (Espaco > 0) && Signal == true){
         if(Simbolo.Ask() <= (MenorPreco - (Espaco  * _Point))){
            Trade.Buy(Contratos, _Symbol, 0, 0, 0, IntegerToString(TotalPosicoes + 1));
         }
}

my question is with the last argument in Trade.Buy(). In the documentation says: https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctradebuy that it is a comment and i wonder for what? Where that comment goes? Because instead of 1 in the first .Buy() I wrote "Hello" and i didn't see anything


Thanks

Documentation on MQL5: Standard Library / Trade Classes / CTrade / Buy
Documentation on MQL5: Standard Library / Trade Classes / CTrade / Buy
  • www.mql5.com
Buy(double,const string,double,double,double,const string) - CTrade - Trade Classes - Standard Library - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Ariel Pardo:
Hi, i have the following code: 

my question is with the last argument in Trade.Buy(). In the documentation says: https://www.mql5.com/en/docs/standardlibrary/tradeclasses/ctrade/ctradebuy that it is a comment and i wonder for what? Where that comment goes? Because instead of 1 in the first .Buy() I wrote "Hello" and i didn't see anything


Thanks

In the open positions tab in MT5 you should use right mouse button to add column Comment to the view

 
Amir Yacoby:

In the open positions tab in MT5 you should use right mouse button to add column Comment to the view

oh, in the Toolbox, yeah, I see, but i think that would appears in the Strategy Center, thanks Amir