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!

maximum trades per hour

2 replies

Nikolai Haug

Subscriber, bbp_participant, customer, community, 8 replies.

Visit profile

3 years ago #283296

Hi, here is another question:

I would like to activate duplicate trades but only allow to open one trade per hour.
I’m pretty sure this is possible but I don’t know how to set up the variable/counter. Could someone help me please?

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

3 years ago #283299

Hi,

you need to create a variable for “counting” trades. For example “Counter (int)”

With each order increase the Counter + 1

Into your trading condition add a new line such as If Counter < 10

You can then setup a resetting condition that set the Counter variable to 0 for example if Bar Minute[1] = 0 … that is a start of a new hour

0

Nikolai Haug

Subscriber, bbp_participant, customer, community, 8 replies.

Visit profile

3 years ago #283313

oh that is what I was looking for. Thank you Tomas!!

0

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