Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 17:13:47 +0000



Post From: Multiple Positions Entry and Exit

[2018-05-10 18:07:20]
User172040 - Posts: 70
Thank you tomgilb. Learning a lot from you.

So my Buy Exit only triggers when a profit target is hit. I added 2 stops. I want my whole position closed when price = -10 points from my avg entry price. I added the following to the end of the formulae (italics):

=OR( AND( $J$8 = 5, E3 - $J$9 > 10), AND( $J$8 = 3, E3 - $J$9 > 20), AND($J$8 = 5, E3 - $J$9 < -10), AND($J$8 = 3, E3 - $J$9 < -10))

But my stop exists are weird. Although I specify 10 point loss max, my backtest stops 2 out at +- 13 point loss and the other 3 at a 15 or 16 point loss. Any ideas?

Lastly, do you know of code examples where my stops move to breakeven + 2 ticks when price moves in my favor?