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