Reply

ATR constraint

2 replies

Charles Umani

Subscriber, bbp_participant, 36 replies.

Visit profile

3 years ago #257969

Hi ! sorry for my bad english by advance…

can you help me to find how to add, for example, an ATR contraint ?

For my generations, i want to autorize trading only if ATR < X or ATR > X for example.

all the rest need to be free of constraint as habitually.

 

the goal is to make 2 differents strategies for low volatility and high volatility and merge them finally.

 

Have you any idea ?

 

thanks by advance ! 😉

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

3 years ago #257988

Hello,

you have two options basically:

1) setup a simple template in AlgoWizard (using New -> Create a template with Settings -> Advanced -> Template mode ENABLED) and add two conditions – one for ATR and another “random” so SQX can generate it randomly as shown on the screenshot attached

2) create a new custom block for example named “Low Volatility” with a condition like ATR < 2 and use this custom block in the builder. Check the other screenshot

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

0

Charles Umani

Subscriber, bbp_participant, 36 replies.

Visit profile

3 years ago #258013

thank you very much !!!

 

it’s perfectly clear for me now ! 😉

0

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