Seasonality Analysis Indicator small bug fix

Forums ProRealTime English forum ProBuilder support Seasonality Analysis Indicator small bug fix

Viewing 14 posts - 1 through 14 (of 14 total)
  • #57755

    There is a very minor graphical error in the coding of my Seasonality Analysis indicator in the library. Please replace lines 256 to 302 with the following or alternatively download the corrected ITF file attached to this post.

     

    3 users thanked author for this post.
    #57781

    Thank you, your indicator has been updated in the library. Great post! 🙂

    Seasonality Analysis

    #57784

    Thanks Nicolas.

    I have just converted the indicator into two new versions. One that looks back at a fixed number of years from today so that the latest results are always from the latest sample period. A sort of always up to date walk forward.

    In the second version you can set an in sample and an out of sample period so as to be able to check reliability of results more accurately.

    Once I’ve double checked that they do what they say on the tin do you think it is best that I post them to the library or maybe just put them in a related forum post. I’m a bit conscious of filling up the library with similar indicators as this may not be what you want for the library.

    #57786

    I’m a bit conscious of filling up the library with similar indicators as this may not be what you want for the library.

    Don’t worry about this, post them. Since indicators are linked with their tags, if someone want something related to “seasonality”, he/she will find a lot of things and that’s a good point.

    In the second version you can set an in sample and an out of sample period so as to be able to check reliability of results more accurately.

    OMG, sounds enormous! 🙂

    #57796

     

    OMG, sounds enormous! 🙂

    Only 772 very repetitive lines of code. Thank goodness for cut and paste and the find and replace all facility!

    1 user thanked author for this post.
    #57802

    You could have used external indicators as functions, instead of copy paste them X times in the same code.

    #57810

    I did originally set it up as two separate codes. One for in sample and the other for out but it felt a bit clumsy so I combined the two. I hate calling on external indicators. I much prefer stand alone code. Sometimes I just like to make my life difficult. It makes the beer taste better.

    The code is now up to 939 lines as I’ve added a rating system for the combined in sample and out of sample returns for each month!

    I may have to stop now or I will go to sleep dreaming of Jan, Feb, Mar…….

    #57813

    😆 good job! Passion feeds passion. Have a good night.

     

    #57814

    Minor bug fix no.2!

    I just noticed that the description when you hover over the speech bubble in the corner for the Seasonality Analysis indicator is incorrect as it was for an older version.

    I’ve attached a new itf with the correct text.

    Hopefully this is the last bug I spot.

     

    1 user thanked author for this post.
    #57822

    (Post off topic folder)

    Good evening Vonasi, you seem to me to have a good command of your subject. That’s why I would like to ask you if you would feel able to translate the attached code (easylanguage) into probuilder language?

    Waves of Wolfe

    To tell the truth I do not know what this code is worth! But currently, I think it is the only available free access.
    I’ll be curious to see it work, but unfortunately I do not have the skills to translate it under Probuilder.
    The basic idea is to see if its operation can be closer to that on the attached video …!

    #57826

    Sorry Alai-n EasyLanguage is not my thing.

    Thank you for thinking that I might be able to help but to be totally honest I dabbled with programming when I was a kid (in the days of ZX Spectrums and Commodore 64’s!) and I went to IT college after school while working for a company that wrote programs for city traders – but this was back in the late 80’s when just getting a line on a graph took a month. I  gave it up quickly when I realised that I hated sitting behind a desk and went off and became an engineer instead. I have always loved finding solutions to problems which I guess is how I now end up coding PRT in my free time (which I have a lot of). I like creating indicators that can be adapted into strategies rather than just using off the shelf indicators. I only really started on PRT coding eight months ago so I am sure there are others on here who can be of more use. Sorry to disappoint.

    On a separate note I spent some time studying Waves of Wolfe and to be honest with you found no merit in it. If you spend long enough staring at enough lines on enough graphs you can see what ever you want to see!

    #58614

    Thank you for your reply Vonasi and too bad for my code Waves of Wolfe, which leaves me still very curious;)

    In any case, thank you very much for your contribution to the effort of this site.

    #58924

    Hi

    Thanks for sharing your seasonality analysis.

    Would you be able to mix your seasonality indicator and your trend checker to built seasonal trading algorithm?

    Something inspired by http://systemtradersuccess.com/seasonal-strategies-built-right-way/ even there is no code published

    Regards

    #58936

    I’m not sure what the exact thing is that you are asking for?

    I have read that article before you posted the link and I was inspired by the suggestion that walk forward analysis was better than starting with a fixed date and always using that fixed date each month. Better to move the start point forward one month every month. I converted my indicator into this a couple of days ago and then had a better idea. Why not have two periods that walk forward – an in sample and out of sample for easy comparison of reliability? So I converted it to do this. I then added a rating system for each month using the results from each sample weighted more on the more recent out of sample results. I have posted this to the library and it is pending review before being listed.

    I like the idea in the article of looking at the historical results for the up and coming days and would like to write this as an indicator.

    As for converting it all to a trading strategy that would take quite a bit of thought and I’m not sure that just trading now because this day last year for the last few years was profitable is a good basis for a strategy. Best just to use the analysis and maybe the rating score to adjust trade direction and position sizing month by month to give you an edge in other strategies.

    I have had a lot of time recently for indicator writing but this will shortly change due to other commitments and I doubt I will have much time to code. I have a long list of ‘would like to do’s’ already and not enough hours in the day!

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

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