Reply

How can i enter/reverse at stop like enter/reverse at market?

2 replies

binhsir

Subscriber, bbp_participant, customer, community, sq-ultimate, 11 replies.

Visit profile

2 weeks ago #271097

Ex: MC code is :

var1=highest(highD[1],5);

var2=lowest(lowD[1],5);

buy next bar at var1 stop;

sellshort next bar at var2 stop;

MC backtest: This is reverse breakout strategy. It’s mean that when the long signal is satisfied, if there is a short position, the short position will be closed first, and then the long position will be opened again. That is the mechanism of MC . But there is 1 trade when i create it with AlgoWizard. It seems that SQ’s stop order billing mechanism is different from MC.

So how can i enter/reverse at stop like enter/reverse at market conveniently? Or any other alternative methord or setting?

Thanks

Bin

0

tomas262

Administrator, sq-ultimate, 679 replies.

Visit profile

2 weeks ago #271103

Hello,

you can simply add “Close position” + “Close Pending Order” as the first actions under Long / Short Entry …. this will either close an existing position first or cancel the pending order. After those you simply set “Enter at Stop” for the new trade at  those specific lowest/highest prices

Let us know if any questions

 

 

0

binhsir

Subscriber, bbp_participant, customer, community, sq-ultimate, 11 replies.

Visit profile

2 weeks ago #271113

I tried, but the result is different from my idea.  Please see attachment

Attachments:
You must be logged in to view attached files.

Bin

0

Viewing 3 posts - 1 through 3 (of 3 total)