حياك اخي
extern bool LotsResetOnProfit36 = true;
==============
ثم
if (profit > 0) // had profit
{
CurrentBuyLots36 = CurrentBuyLots36 * LotsBuyMpOnProfit36 + LotsBuyChOnProfit36;
if (LotsResetOnProfit36)
CurrentBuyLots36 = BuyLots36;
}
else if (profit < 0) // had loss
{