Add Reverse at Stop and Reverse at Limit

I would like to put a Buy at Stop when price makes a previous High and Sell Stop when the price makes a previous low.

I would like sqx to close the position and open the next position on the same bar, but the issue is that sqx doesn't allow me to do this.
I've attached pictures of the SQX Behaviour and the expected behaviour and the strategy. Also I've attached a picture of Tradestation on how it looks.

Attachments
SQX Behavior.png
(66.17 KiB)
  • Votes +11
  • Project StrategyQuant X
  • Type Feature
  • Status New
  • Priority Normal

History

CG
#1

Chris G

02.02.2022 16:27

Task created

CG
#2

Chris G

02.02.2022 16:29

Attachment Expected Behavior.png added

Attachment SQX Behavior.png added

Attachment TS Behavior.png added

Attachment 01 Market Breakout.sqx added

SQX Behavior.png
(66.17 KiB)
01 Market Breakout.sqx
(3.64 KiB)
TS Behavior.png
(411.97 KiB)
Expected Behavior.png
(77.00 KiB)
CG
#3

Chris G

02.02.2022 16:43
Voted for this task.
CG
#4

Chris G

02.02.2022 16:44

Attachment SQX Skipping one bar.png added

SQX Skipping one bar.png
(176.39 KiB)
Another picture of this
zs
#5

m.skoluba@gmail.com

02.02.2022 17:42
Voted for this task.
o
#6

Oliver

02.02.2022 18:14
Voted for this task.
KB
#7

kbtech

02.02.2022 18:52
Voted for this task.
MK
#8

kvaraciejus@gmail.com

02.02.2022 20:24
Voted for this task.
DC
#9

anuffi

03.02.2022 00:47
Voted for this task.
IN
#10

altenburg90

04.02.2022 12:04
Voted for this task.
E
#11

Emmanuel

04.02.2022 16:54
Voted for this task.
g
#12

geektrader

06.02.2022 02:09
Voted for this task.
Fs
#13

Fortunate

06.02.2022 20:11
Voted for this task.

Votes: +11

Drop files to upload

or

choose files

Max size: 5MB

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

...
Wait please