//+------------------------------------------------------------------+ //| PositionIdentifier.mq5 | //| Copyright 2016, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2016, MetaQuotes Software Corp." #property link "https://www.mql5.com" #property description "Print POSITION_IDENTIFIER and POSITION_TICKET" #property version "1.000" //+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+ void OnStart() { //--- int pos=PositionsTotal(); for(int i=0;i