https://mql-programing.com/archives/712/orderselect/
【MQL4関数】OrderSelect関数の使い方!保有ポジションの選択のやり方