Documentation/AlgoCode/Function reference
targets
Multiple take-profits with quantity percents.
targets 100, 200, 300 split 50, 30, 20
Levels are in the same unit as a single target (points unless you use percent elsewhere in the risk lines). split percents should add to 100. Literal numbers show in Inputs as Target 1, Target 2, … and Split 1, Split 2, …. You can also use input names: tp1 = input 10 as "Target 1" then targets tp1, tp2, tp3 split 40, 30, 30.
Return value
—
Example
when ema(9) crosses above ema(21) buy stop 50 points targets 100, 200, 300 split 50, 30, 20