I am trying to add a filter for the volatility experienced during ‘Earning Reporting Seasons’. So for example just assuming a semi-annual reporting, that would starts around mid January and mid July (of course different markets have different reporting times). There is often increased volatile market, or rapid swings with news from earning reports, usually in the first few weeks of the earning season and then settling down towards end of reporting 6-odd weeks later (my hypothesis to test). So i’m trying figure out this, to not open trades if market too volatile / choppy, during the first few weeks of earning season, to improve my auto-trading performance.
Could someone help me with the code? I have tried the below code, it does seem to improver my performance (on backtesting). However i’m not entirely sure if improved performance is due to the code its actually doing what i am planning for it to do / what i am trying to achieve? Also anyone have any ideas or suggestions?
You want to enter on some dates, if the ratio between ATR and price (CLOSE) is > a value of your choice (N).
Thanks. I want to NOT enter during the dates. If greater then value of my choice (N). Which looking at backtest results is what it is doing.
For example to avoid buying during the whiplash’s that can occur in Earning Reporting Seasons when Megacap’s earnings come out; for example the large whiplash occurred after Facebook/Meta’s disappointed, and then the about-face change after Amazon beat analysts with their earning reports
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