Documentation/AlgoCode/Function reference

target

Take-profit from entry — one level, or up to three.

Reference/Language/Language

target 20 points    target 20, 30, 40 points

Same units as stop. A single target flattens the whole simulated position on a later bar. Several comma-separated levels are the same as targets: the first level touched closes the entire position. ATR targets use ATR(14) of the second-to-last loaded bar, once for the series.

Return value

—

Example

when close is above ema(21)
  buy
stop 10 points
target 20 points

See also