I recently listened to a “Better System Trader” podcast about Market Phases, where the person interviewed talked about 6 different market phases. I coded these quickly and thought I would share it with you. Feel free to add in any other ideas or code snippets you use to define market phases to improve your algos.
To use this snippet, I add the “and $mp[x]” to my buy conditions and then optimize x between 1-6, to see if any market phases are bad for the particular system.
Market Phases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//Market Phases
// based off https://www.youtube.com/live/pXxmhZsqbzA?si=UbPSOTYNvrVpvc-v
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue