omg i have found a esier solution for the problem: lot=NormalizeDouble(AccountBalance()*MaximumRisk/StopLoss/(MarketInfo(Symbol(), MODE_TICKVALUE)),2); i think it works. the problem is now that i don't know how to calculate the diff. betwenn Moving ...