Documentation/AlgoCode/Function reference

points

Price-distance unit for stop, target, trailsteps, and trail.

Reference/Language basics/Language

stop 10 points or stop stopPoints points

A point is one price increment as the chart quotes it. Pair with percent when you want a fraction of entry, or atr for n × ATR(14) as a price distance.

Return value

For developers
  • MQL5: same idea as _Point, without a _Point variable.

Example

when ema(9) crosses above ema(21)
  buy
stop 10 points
target 20 points

See also