Risk mode
The mode button switches how volume is calculated: %, $, Lots and Fixed Lots.
Magic Entry · MT5 trade manager
You set the risk as a percentage of the balance or as an amount in the account currency, then place the stop on the chart: Magic Entry calculates the lot so that a stop-out loses that risk. In % and $ modes the volume already accounts for the commission you enter in the settings and, for sells, the spread. The lot is rounded to the broker’s minimum lot and lot step, so the real risk can differ slightly from the target.
The mode button switches how volume is calculated: %, $, Lots and Fixed Lots.
Without costs, a 100-point stop on EURUSD with $100 risk gives 1.00 lot. With a $7 round-turn commission entered, Magic Entry opens 0.93 lot instead: the stop then costs $93 plus $6.51 commission, still within $100.
For a sell with Spread ON and a 30-point spread, the stop is placed the spread above your click, so the same $100 covers 130 points and the volume is 0.76 lot instead of 1.00. A buy needs no correction: it enters at Ask, and the spread is already inside its stop.
Set on the Inputs tab (F7) when you attach Magic Entry to a chart. Captions and defaults are the advisor’s own.
COMISSION_PER_LOTDefault: 0.0Broker commission per round turn (open and close) per 1 lot, in account currency. In % and $ modes the advisor reduces volume so that the loss at the stop plus commission doesn't exceed the risk.
SPREAD_CONTROLDefault: ONMetaTrader draws candles by Bid, but a sell closes at Ask — a spread above the candles. So a sell stop can trigger even though the candle never reached the line. If on, the advisor places the sell stop the current spread above the click and recalculates volume for the same risk.
OFFSpread OFF: stop at the click point
ONSpread ON: stop a spread higher
CALC_LIMIT_MARGINDefault: ONLimit and stop orders only. If on, the advisor checks in advance whether there will be enough free margin when the order fills; if not, it reduces the volume and shows MARGIN MAX. Turn it off and the check follows the broker's rules for pending orders, so an oversized order may be rejected when it triggers.