writing a program to test the sequence

    Posted by matt on 8th of Nov 2021 at 01:39 pm

    this statistic from Zerohedge - I like to test that crap on my own just to make sure - so writing  a script to test it so that I can also test other combinations of the sequence. Also, for a strategy I need to define an exit - so that could be 1 day, or 2 or 3 days, or a close back below a short term MA like a 5 or 8 SMA or EMA, here's how the logic would go. Anyway just posting it showing an example of the logic you have to write in order to test something like that

    I got the program coded

    Posted by matt on 8th of Nov 2021 at 06:29 pm

    I got the program coded for TS. So ran a quick test - today is # 19 with only 2 down days in that sequence - out of 19 days with 2 down day this has only occurred 3 times out of the last 50 years counting today. 

    what's cool is that I can test other maybe more useful sequences like say for example if you test 60 trading days going back 50 years, the least number of down days you had within 60 was 17. So in the future if you ever see that you've had 60 trading days and only 16 down days, that's a first

    I can test any sequence 

    sounds like the beginning of

    Posted by pep8261 on 8th of Nov 2021 at 01:41 pm

    sounds like the beginning of a SPY subsystem... LOL

    LOL only if the stats

    Posted by matt on 8th of Nov 2021 at 01:42 pm

    LOL only if the stats look interesting but maybe

    I think I would need

    Posted by matt on 8th of Nov 2021 at 01:47 pm

    I think I would need to add more things to it for a real strategy like some other indicators / filters  but we'll see what the stats look like. 

    and we will be able to test other things like instead of being pigeoneer holed by 2 days within a sequence we could test 3 days or 4 days etc within whatever sequence we wanted - maybe need to add RSI has to be >X or other things too

Newsletter

Subscribe to our email list for regular free market updates
as well as a chance to get coupons!