Cancel trade if XX number of candles below/above pre-selected level
1 replies
IvanD1983
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.
tomas262
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
Viewing 1 replies (of 1 total)