Anonymous user
SetBreakEven: Difference between revisions
From MultiCharts
→Example
(Created page with "Closes out the entire position or the entry if it is at the breakeven point after the profit has reached the specified value; generates the appropriate Stop order depending on...") |
|||
Line 16: | Line 16: | ||
==== Example ==== | ==== Example ==== | ||
Generate an exit order for the entire position if it is at the breakeven point after position profit | |||
has reached $50: | has reached $50: | ||
SetStopPosition; | <syntaxhighlight>SetStopPosition; | ||
SetBreakEven(50); | SetBreakEven(50);</syntaxhighlight> | ||
Generate an exit order for the entry if it is at the breakeven point after per contract profit has | Generate an exit order for the entry if it is at the breakeven point after per contract profit has | ||
reached $10: | reached $10: | ||
SetStopContract; | <syntaxhighlight>SetStopContract; | ||
SetBreakEven(10);</syntaxhighlight> | SetBreakEven(10);</syntaxhighlight> |