14. Pyramiding (Position Scaling)
Inp_Pyramid_Multiplier = 3.0 // Scale multiplier (probe → main)
Inp_Pyramid_Max_Lots = 2.0 // Hard cap: max lots for any single position
Inp_Pyramid_OnlyProfitable = true // Pyramid only if last position is in profit
Logic:
- No open positions:
lots = target_lots / 3.0— a small probe is opened (1/3 of normal) - Position exists:
lots = last_volume × 3.0— scaling up to full size - If
OnlyProfitable = trueand the last position is in loss → pyramid is blocked
Log: "Pyramid blocked: last position not in profit." / "LOT CAP: 4.50 -> 2.00"
