SetBreakEven (Reserved Word)

image\trumpet2.gif Disclaimer

SetBreakEven is a built-in stop reserved word that allows you to exit a position at the breakeven point, once a specified profit floor has been reached. The profit floor can be specified  on a total position basis, or a one contract or one share basis. Whether the profit target amount is based on a position or per share/contract basis is determined by set stop reserved words: SetStopPosition, Setstopshare, or Setstopcontract. SetBreakEven does not factor in commissions or slippage.

SetBreakEven can only be used in a Strategy.

Usage

SetBreakEven(FloorAmt)

Input Parameters

Name Type Description
FloorAmt Numeric The profit amount (in dollars) that must be reached before the breakeven exit is activated.

Orders Generated

Market Order to Sell (Long Exit) or Market Order to Buy to Cover (Short Exit)

Signal Name

BreakEven Stop

Example

Exit all shares or contracts in all positions at the breakeven point if the position has been up at least $25.00 in profit at some point.

SetBreakEven(25)

Exit all shares or contracts in all positions at the breakeven point if the position has been up at least $0.25 from the entry price..

SetStopShare;

SetBreakEven(.25)

See Also

Breakeven Stop (strategy), SetStopPosition , SetStopShare , SetStopContract