Reply

Cancel trade if XX number of candles below/above pre-selected level

1 replies

IvanD1983

Subscriber, bbp_participant, community, 46 replies.

Visit profile

6 years ago #117259

Hi Tomas,

 

How can I set a condition by which if XX number of candles close below a pre-selected level, no longer consider taking any signal. 

 

See on a screenshot an example. 

 

I’d appreciate a sample on sqw format if the explanation becomes too complex.

 

Thanks as always. 

 

 

File: 1.png1.png

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #143809

Hello,

 

you need to setup a counter to count number of bars matching specific conditions. Here is an example using moving averages how to do that https://strategyquant.com/forum/topic/4955-define-range-in-bars-instead-of-time/#entry18937 (counts EMA above SMA)

 

Let me know if that helped to solve the issue

0

Viewing 1 replies (of 1 total)