READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Placing New Pending Trades Every Day

3 replies

William Regan

Subscriber, bbp_participant, customer, community, 4 replies.

Visit profile

2 months ago #293133

Hello,

I am aiming to create a strategy that places a new pending trade every day at the previous day high and previous day low. If neither trade triggers, then both orders cancel at the end of day.

Right now over a 2 month period SQX results shows 13 trades taken place. From using this as an EA, it trades more often than that.

I have attached an image of my current rule structure. I am unsure if this is the right framework to be building with. I have found a lot fo content on building strategies but have not quite found anything addressing end of day and start of day order handling.

Appreciate any help!

 

 

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

2 months ago #293151

Hi,

the simple way would be to enable trading options to remove the pending order at specific time (time range end). See the image attached

The other more complicated way would be to setup a time condition and add the ‘Close pending order’ action

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

1

William Regan

Subscriber, bbp_participant, customer, community, 4 replies.

Visit profile

2 months ago #293179

Legend! Thanks for your help Tomas!!

 

0

William Regan

Subscriber, bbp_participant, customer, community, 4 replies.

Visit profile

1 month ago #293538

Hi Tomas,

Your previous answer was great and fixed my issue, so thank you!

I am now trying to add an ATR filter, however with ‘Bar Date()[0] <> Bar Date()[1]’ in the ‘IF’ rule to ensure the rules reset every new day, when I include a ‘ATR is higher than Level’ filter in the ‘IF’ rule triggers, the ATR is only counting the last 14 bars before the new day- rather than counting the last 14 bars before the Previous Day High is hit/when the Stop Entry Trade is entered.

Is there a way to get the ATR14 to measure the 14 bars before the Entry, rather than the last 14 bars of the day prior.

For Example: Price hits Previous Day High and ATR of the last 14 bars > 2, then enter the buy stop.

Instead of what currently happens which is: New Day & The ATR of the Last 14 bars > 2 before the New Day (so yesterdays last 14 bars) = Then Place the pending Buy stop for today.

Ultimately I am aiming to filter the volatiltiy before the trade is executed, rather then filter the volatiltiy when the pending trade is placed at the days opening.

I really appreciate any assistance.

 

 

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

0

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