Weekend positions

Hi,
I think it could be useful to add a feature to close all positions of a strategy (open trades and pending orders) before market closure in friday in order to avoid opening gaps on monday and to get rid of the margin problem with brokers that change leverage during the weekend.
Thank you for your work SQ team
Attachments
No attachments
  • Votes +1
  • Project StrategyQuant X
  • Type Feature
  • Status Fixed
  • Priority Normal

History

g
#1

davide gardella

09.06.2018 01:07

Task created

n
#2

rnd_ddbae2af490nnn

09.06.2018 01:38
+1
N
#3

nathan

25.10.2018 11:03
Voted for this task.
N
#4

nathan

25.10.2018 11:06
Agreed. I initially thought that restricting postilions to a 'time range' and checking 'exit at end of time range' would solve this, but SQ4 still holds positions over the weekend. Exit on Fridays does not solve this. Session = 24/5 does not solve this. I dont want open positions while I am asleep Monday to Friday, or over the weekend. Would be nice if this could be defined.
TB
#5

Tomas Brynda

21.12.2018 08:26

Status changed from New to Fixed

The time range range limitation, EOD and EOF should solve this problem. It closes all open orders at the preset time. When there is a gap at the end of the day, sadly we can't do anything about it. The orders wil be closed on the next tick. It is a matter of choosing the close time wisely. 


If you experience problems caused by unclosed orders, please attach the problematic strategy and your project config and we will take a look at it.


Votes: +1

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please