other
murata mql5 複数EA PositionsTotalã®å·¥å¤«
// global 変数
int MagicT = 202555591;
// 関数
int totalPositions(int num){
int counter = 0;
for(int k = 0; k < PositionsTotal(); k++){
string name = PositionGetSymbol(k); // ä¸è¦ï¼Ÿ
if(PositionGetInteger(POSITION_MAGIC) == num)counter++;
}
return counter;
}
// 書ãæ›ãˆ
// å„注文・決済ã«è¿½åŠ
requestT.magic = MagicT;
if(posT == 0 && TimeT[0] > LongEntryTimeT && (EntryCountT < EntryCountLimitT) && totalPositions(MagicT) == 0)
ã“ã®å ´åˆposTã¯ä¸è¦ã‹ï¼Ÿ
Was this helpful?
Similar Posts