MetaTrader Short-Entry Scripts with Stop Loss and Position Sizing
Summary
This description covers four MetaTrader 5 scripts for opening short positions with stop-loss and take-profit levels set in points from the current price. Two variants send the position and attached orders together, intended for brokers with nonzero spreads that support this behavior. Two ECN variants open the position first and then modify it to add the protective and profit-taking orders, an approach described for brokers that may have zero spread.
The scripts offer two sizing approaches. One sets deal volume as a proportion of total account equity; the other sizes the deal so that a triggered stop loss represents a specified proportion of the deposit. Inputs also include price deviation, retry count, and pause time between retries. The text explains functionality and broker-related distinctions, but supplies no code walkthrough, testing evidence, or advice on choosing risk parameters. Stop distance in points alone does not establish a fixed monetary risk across instruments or execution conditions.
Key ideas
- The scripts open short positions with fixed stop-loss and take-profit distances in points.
- Non-ECN variants submit protective orders with the trade, while ECN variants add them after opening the position.
- One sizing method bases deal volume on a share of account equity.
- Another method targets a specified equity loss if the stop loss is triggered.
- The description gives no performance evidence or parameter-selection guidance.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.