Open positions exit at 'Close'
Forums › ProRealTime English forum › ProOrder support › Open positions exit at 'Close'
- This topic has 6 replies, 2 voices, and was last updated 7 years ago by
Nicolas.
-
-
07/20/2017 at 11:10 AM #41146
Hi, how can I make open positions: SellShort & Buy …instead to exit at Set Stop or Set Target, but exit at close?
07/20/2017 at 1:52 PM #41165Because the code is only read at Close, you only have to liquidate your positions with the exit instructions for each of the order type, if you detect you are on market:
123456789//LONG POSITIONSif longonmarket thensell at marketendif//SHORT POSITIONSif shortonmarket thenexitshort at marketendifOf course you can complete this little code snippet with other conditions with indicators, profit of the order, time schedules, etc..
07/20/2017 at 5:25 PM #41179Here is example: Sell At Market is not executed on crosshair of 18th July candle – Entry at 08:00, 12,534
Sell at Market after the Buy is not executed at “08:00 Close”
No Stop, No Trail, No target – to skew exit away from Close.
07/20/2017 at 5:26 PM #41181Should be SellShort form 12,534 to 12,514 ??
07/22/2017 at 1:43 AM #41338Should be SellShort from 12,534 to 12,514 ??
07/22/2017 at 1:43 AM #41339Should be SellShort from 12,534 to 12,514 ??
07/22/2017 at 9:41 AM #41355I don’t understand what you are trying to do in your strategy: at line 11 you SELLSHORT and you directly close this position at line 12 with EXITSHORT? is this intentional? Because in this case, you will open and close instantly an order and only pay the spread to your broker.
-
AuthorPosts