Documentation/AlgoCode/Function referencetargetSingle take-profit from entry.Reference/Language/Languagetarget 20 points or target targetPoints pointsUse a number or an input name. Same units as stop: points, percent, or atr (n × ATR of 14).Return value—Examplewhen close is above ema(21) buy stop 10 points target 20 pointsSee alsostrategywhenthenelsebuysellexitlong only← stoptargets →
Reference/Language/Languagetarget 20 points or target targetPoints pointsUse a number or an input name. Same units as stop: points, percent, or atr (n × ATR of 14).Return value—Examplewhen close is above ema(21) buy stop 10 points target 20 pointsSee alsostrategywhenthenelsebuysellexitlong only← stoptargets →