Anonymous user
SetPercentTrailing: Difference between revisions
From MultiCharts
→Example
(Created page with "Closes out the entire position or the entry if the specified percentage of the maximum profit is lost after the profit has reached the specified value; generates the appropria...") |
|||
Line 18: | Line 18: | ||
==== Example ==== | ==== Example ==== | ||
Generate an exit order for the entire position if 50 percent of maximum position profit is lost | |||
after the profit has reached $25: | after the profit has reached $25: | ||
SetStopPosition; | <syntaxhighlight>SetStopPosition; | ||
SetPercentTrailing(25,50); | SetPercentTrailing(25,50);</syntaxhighlight> | ||
Generate an exit order for the entry if 25 percent of maximum per share profit is lost after the | Generate an exit order for the entry if 25 percent of maximum per share profit is lost after the | ||
profit has reached $5: | profit has reached $5: | ||
SetStopShare; | <syntaxhighlight>SetStopShare; | ||
SetPercentTrailing(5,25);</syntaxhighlight> | SetPercentTrailing(5,25);</syntaxhighlight> |