Hi, I would like to catch the pattern in the attached image, it’s basically any indicator that increases values on either the plus or the minus side. I have a two questions,
- the first is how to capture this sequence of events in code?
- what is a recommended pattern for IF (within 20 bars X is fullfilled THEN IF within 20 bars X is still true and Y is fullfilled and so on…
I meant something like this, maybe it can help someone..
if event then
a = intradaybarindex
b = 20 //number of bars within next event have to happen
endif
if (a + b) > intradaybarindex AND other_event
1/ that sequence is (according to the picture), an oscillation that is widening since X periods?