

int level=AccountStopoutLevel();
double stopSumm, priceStopOut;
if(AccountStopoutMode()==0) stopSumm = AccountMargin()*(double)level/100;
else stopSumm = (double)level;
double pips = (AccountFreeMargin() + AccountMargin() - stopSumm)/(MarketInfo(Symb, MODE_TICKVALUE)*summLots);
if (NamePos==SELL) {
priceStopOut = Ask + pips*Point;
} else {
priceStopOut = Bid - pips*Point;
}
priceStopOut = NormalizeDouble(priceStopOut, Digits);
level= AccountMargin()*level/100;
profitPrice=zeroprice + (Profit*Point)/(TICKVALUE*lots)
sum/lots - (sumSwapComm*Point)/(TICKVALUE*lots)
Oxy