https://mql-programing.com/archives/2111/ordertype/
【MQL4関数】OrderType関数の使い方!買いと売りを判別しよう