Professional Documents
Culture Documents
Ea
Ea
// Open trade 1
if (!trade1Open && currentPrice >= entryPrice1) {
openTrade(lotSize1, entryPrice1, takeProfit1);
trade1Open = true;
}
// Open trade 2
if (trade1Open && !trade2Open && currentPrice <= entryPrice2) {
openTrade(lotSize2, entryPrice2, takeProfit2);
trade2Open = true;
}
}