Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double CalculateLotSize(double riskedPoints) {
- double riskedAmount = percentageRisk/AccountBalance();
- return riskedAmount/riskedPoints;
- }
- void TakeTrade() {
- double DiffInPoints = MathAbs(NormalizeDouble(entryPrice-stopLossPrice,Digits)/Point);
- double lotBasedOnAccountSize = CalculateLotSize(DiffInPoints);
- double lotSizeToUse = NormalizeLotsToTRADE(lotBasedOnAccountSize);
- Print("original lot size = ", lotBasedOnAccountSize);
- Print("normalized lot size to use = ", lotSizeToUse);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement