Adding entry filters to your strategies

Forums ProRealTime English forum General trading discussions Adding entry filters to your strategies

Viewing 8 posts - 1 through 8 (of 8 total)
  • #228456

    Hello!

    I just watched a Youtube video regarding algo trading, this one: https://youtu.be/rrbahhoePN4?si=XG19Aw7iqNPj5Spe&t=4500

    What crossed my mind is that he says he tries to make good strategies great with a filter optimization. The way he does it, is to try 500 different filters on the strategy entries. Maybe your original trading idea works best in a low volatily market, or when the market is trending, or not trading it on mondays or if RSI is under/over 50 etc. He thought that this wasnt over-optimizing or curvefitting, only filtering which should be a good thing.

    I’m very rookie at this, but if you try 200-500 different filters on 25-50% of your data, and you can confirm it on the rest of the data, you get 50-75% out of sample data as confirmation. Would that be “bad” curvefitting or good optimization? What are your opinions and thoughts on this?

    #228479

    I only watched the section you refer to above, but interesting stuff, likely I will watch the rest sometime!

    What he didnt do though, was to keep the original Algo code as v1, duplicate v1 as v2, then add filter codes to v2, then run v1 and v2 … both over out of sample data.

    Would that be “bad” curvefitting or good optimization?

    It would be good optimisation if ‘out of sample’ results show increase at similar Gain % as the ‘in sample’ results.

    Hope above makes sense, if not just say.

    #228486

    Thanks so much GraHal, it makes total sense! Not sure if its to any help, but I put together a list of some filters he show in the video as well some of my own ideas. Feel free to improve upon and add more. I plan to add some more filters regarding volume.

     

     

    2 users thanked author for this post.
    #228490

    My take :

    Of course the idea is nice. N.b.: There’s a similar example in the Library somewhere (of which I recall the idea again was nice but it got out of hand somehow).
    But

    My brain wouldn’t be for something like this, because it “is” nothing. It can only be optimization (indeed), not hoping for the worse in the future. It is like GraHal suggest (reworded now) : pick one of the best you can find, especially don’t take another because you think it is out of whack (take your #20 as an example), and try NOT to think it will be rubbish.
    And so it goes for all the examples.

    My thoughts about this are largely fed by working the other way around : observe some working strategies for a year in a row (I mean in Live Auto trades), see how some perform better than others, then try to find the merits of that, and improve on it (like ditching the worse performers and thus have a net better income). This is now forward-testing decision based (I am pretty sure GraHal knows all about this).

    To even see better what I mean, envision that you really would put each of the filters into a Demo forward running test. For a year. Now, would you really do that ? or would you take some you deem better for any of your good reasons ? I think the latter, because else it will become too much.

     

    We should try to wrap our heads around this too :
    180K with ~700 trades in 11 years. This is an average revenue of +257 per trade (and is thus heavily optimized on top of it). What was the investment ? (maybe he tells this somewhere). Now you can go two directions : 1. the DD of 10K after trade #100 is OK-ish because the investment is 100K and this DD of 10% in that (estimated) year is fine. But wait, if I invest 100K I don’t want 180K in 11 years. So 2. the investment is only 10K and the revenue of 180K in 11 years could be acceptable. But now the DD of 10K in that estimated one year is not acceptable at all.
    If people have more justifiable scenario’s – I am all ears.

     

    #228492

    TIME is formatted as HHMMSS, thus 040000 is 40000, not 400 and 100000 is just 100000.

     

    1 user thanked author for this post.
    #228524

    Not sure if its to any help, but I put together a list of some filters

    Looks well good, but how do we use these in a strategy which then allows the optimiser to give results for each Filter?

     

    #228528

    You have to enter X (the variable within brackets at the end of the code) in the optimizer, ranging from 1 to 159 and a step of 1.

     

    2 users thanked author for this post.
    #228532

    Thanks for your thoughts PeterSt. And thanks Roberto for the TIME correction.

Viewing 8 posts - 1 through 8 (of 8 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login