stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Hedging - Close open positions in profit first
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4657
Page 2 of 2
Author:  ixbone [ Sat Sep 03, 2016 1:18 pm ]
Post subject:  Hedging - Close open positions in profit first

the easy way:
-select all orders you want to close
-flag your orders with profit >"0" with flag "profitflag"
-flag your orders with profit <="0" with flag "lossflag"
-select all order with flag "profitflag" and close
-select all order with flag "lossflag" and close
check if any flagged orders open, if, go back and run close function again
if no flagged orders open, clear both flags ""
All times are UTC Page 2 of 2