Breakeven Stop?
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Breakeven Stop?
Hello kinkeadfx,
The Breakeven Stop automated strategy generates a stop exit order at the average entry price of the position when the profit (for the position or per contract/share) exceeds the breakeven profit floor. With manual Breakeven exit strategy you can specify the exact breakeven level you want (Transaction costs). Overall they do the same thing.
The Breakeven Stop automated strategy generates a stop exit order at the average entry price of the position when the profit (for the position or per contract/share) exceeds the breakeven profit floor. With manual Breakeven exit strategy you can specify the exact breakeven level you want (Transaction costs). Overall they do the same thing.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Breakeven Stop?
Here is a couple of examples:
PositionBasis = TRUE, the Amount parameter sets the breakeven floor as a dollar amount for the entire position based on the total number of shares/contracts in the current open position (if you hold 500 shares @ MSFT, breakeven floor amount=$200, exit at breakeven if the position ever exceeds $0.40 or $200 profit above your entry price).
PositionBasis = FALSE , the Amount parameter sets the breakeven floor as a one share /contract amount (if you hold 500 shares @ MSFT, breakeven floor amount=$0.60, exit at breakeven if the position ever exceeds $0.60 or a $300 profit above the entry price).
PositionBasis = TRUE, the Amount parameter sets the breakeven floor as a dollar amount for the entire position based on the total number of shares/contracts in the current open position (if you hold 500 shares @ MSFT, breakeven floor amount=$200, exit at breakeven if the position ever exceeds $0.40 or $200 profit above your entry price).
PositionBasis = FALSE , the Amount parameter sets the breakeven floor as a one share /contract amount (if you hold 500 shares @ MSFT, breakeven floor amount=$0.60, exit at breakeven if the position ever exceeds $0.60 or a $300 profit above the entry price).
Re: Breakeven Stop?
Hi
Am I to understand that if I take a trade long with a stop, and then I want the autotrading to handle the breakeven stop once a profit target is reached, can that be done?
Thanks
Am I to understand that if I take a trade long with a stop, and then I want the autotrading to handle the breakeven stop once a profit target is reached, can that be done?
Thanks
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Breakeven Stop?
BreakEven and ProfitTarget are two different things.Hi
Am I to understand that if I take a trade long with a stop, and then I want the autotrading to handle the breakeven stop once a profit target is reached, can that be done?
Thanks
BreakEven 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 whether the position is long or short.
ProfitTarget 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 long or short.
Re: Breakeven Stop?
Hi, I have an issue with the use of Breakeven. When it is triggered, the strategy correctly send the breakeven stop order, but does not cancel the previous stop loss. Is this an expected behavior? How could I get canceled the old stop loss when the breakeven is already protecting the position?
thank you
Martin
thank you
Martin
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Breakeven Stop?
Hello Martin,Hi, I have an issue with the use of Breakeven. When it is triggered, the strategy correctly send the breakeven stop order, but does not cancel the previous stop loss. Is this an expected behavior? How could I get canceled the old stop loss when the breakeven is already protecting the position? thank you Martin
Are you referring to the Manual Trading or the Auto Trading?
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Breakeven Stop?
Martin, you need to program your code accordingly.Hallo Henry, it happens in Auto Trading with a strategy
When SetBreakEven (as well as the other algorithmic Set* commands) is unconditional (not under an "IF" statement)- it is evaluated intra-bar (even if IOG is off). SetBreakEven will be placed automatically and remain active while the position is open, without additional programming.
But if you need one order to replace the other, you need to program the conditionals in your code and use these commands under an "IF" statement. In this case the orders will be evaluated on the bar close (if IOG is off) and intra-bar (if IOG is on). SetBreakEven / SetStopLoss will be placed when the “IF” statement is true and the position is open. The order will be active only while the “IF” statement is true and the position is open.