Anonymous user
SetProfitTarget: Difference between revisions
From MultiCharts
→Example
(Created page with "Closes out the entire position or the entry if profit reaches the specified currency value; generates the appropriate Limit exit order depending on whether the position is lon...") |
|||
Line 14: | Line 14: | ||
==== Example ==== | ==== Example ==== | ||
Generate an exit order for the entire position if the position profit reaches $100: | |||
SetStopPosition; | <syntaxhighlight>SetStopPosition; | ||
SetProfitTarget(100); | SetProfitTarget(100);</syntaxhighlight> | ||
Generate an exit order for the entry if the profit per contract reaches $10: | Generate an exit order for the entry if the profit per contract reaches $10: | ||
SetStopContract; | <syntaxhighlight>SetStopContract; | ||
SetProfitTarget(10);</syntaxhighlight> | SetProfitTarget(10);</syntaxhighlight> |