So, suppose I have a standard to distinguish between choppy and trendy market conditions. For example when price < SMA(12), it is considered choppy. But this will have some noise, like price dipped below SMA(12) for only one or two bars, so I wanna to wait several bars as to confirm it.
But this way, there is always a paradox: if you wait n bars, the market conditions could end in the n+1 bar. So not matter how many bars you wait, you always have a fat odds to get kicked out in the next bar. It is statistics. For example, I used pandas to make some counts of certain consecutive values. And it is as below:
2 1827
3 1129
4 715
5 545
6 426
7 370
8 278
9 239
10 199
11 194
12 169
14 143
13 135
15 119
16 116
17 96
18 90
19 80
20 76
So, if you wait 3 bars to confirm the market condition, you got kicked out 715 times. And if you wait for 4 bars to confirm, you got kicked out 545 times.
And it does not seem to matter which market condition you are looking for, whether it is consecutive momentum bars or what.
Any idea on this ?
But this way, there is always a paradox: if you wait n bars, the market conditions could end in the n+1 bar. So not matter how many bars you wait, you always have a fat odds to get kicked out in the next bar. It is statistics. For example, I used pandas to make some counts of certain consecutive values. And it is as below:
2 1827
3 1129
4 715
5 545
6 426
7 370
8 278
9 239
10 199
11 194
12 169
14 143
13 135
15 119
16 116
17 96
18 90
19 80
20 76
So, if you wait 3 bars to confirm the market condition, you got kicked out 715 times. And if you wait for 4 bars to confirm, you got kicked out 545 times.
And it does not seem to matter which market condition you are looking for, whether it is consecutive momentum bars or what.
Any idea on this ?