Anonymous user
SetDollarTrailing: Difference between revisions
From MultiCharts
→Example
(Created page with "Closes out the entire position or the entry if the current profit is less than the maximum profit by the specified amount; generates the appropriate Stop order depending on wh...") |
|||
Line 15: | Line 15: | ||
==== Example ==== | ==== Example ==== | ||
Generate an exit order for the entire position if position profit drops by $50: | |||
SetStopPosition; | <syntaxhighlight>SetStopPosition; | ||
SetDollarTrailing(50); | SetDollarTrailing(50);</syntaxhighlight> | ||
Generate an exit order for the entry if per contract profit drops by $10: | Generate an exit order for the entry if per contract profit drops by $10: | ||
SetStopContract; | <syntaxhighlight>SetStopContract; | ||
SetDollarTrailing(10);</syntaxhighlight> | SetDollarTrailing(10);</syntaxhighlight> | ||
[[Category:Strategy Orders]] | [[Category:Strategy Orders]] |