title: How to Navigate through all Positions and get the Type of them in MQL5
body: <pre><code>for(int i=0; i&lt;PositionsTotal(); i++)
             {
  
               string id=PositionGetString(POSITION_COMMENT);
             int type = PositionGetInteger(POSITION_TYPE);
  </code></pre>
  
  <p>I have an Expert Advisor that I want to get the type of Positions and navigate through the information of Positions  .... this two lines of code does not work for me the don't return value </p>