gcUserStudies / sierrachart

8 stars 7 forks source link

ForexFactory study causing CPU exception #1

Open alfakid opened 3 weeks ago

alfakid commented 3 weeks ago

Hello,

Love the studies! Thanks so much for sharing. I have recently started experiencing this issue...

2024-08-19 18:53:35.767 | Warning: The Custom DLL study "gcUserStudies.scsf_gcForexFactory" has just caused a CPU exception.

Current env details: SC: 2667 OpenGL enabled

Previous: SC: 2652

Upgrade does not appear to have resolved the issue. I will try updating NVIDIA driver next.

alfakid commented 3 weeks ago

After further review, looks like maybe this study is crashing because Forex Factory is throttling the requests?

                <ul class="error__body">
                    <li>
                        You've exceeded the limit for Calendar Export requests. Please wait five minutes before trying again.

                        The Calendar export file is only updated once per hour.  Requesting it more than that is unnecessary and can result in being blocked.
tvhir commented 3 weeks ago

+1

alfakid commented 3 weeks ago

I set my study settings to only check for updates from FF every 60 minutes, but it doesn't seem that the study honors this setting. I don't use time based charts, perhaps that is part of the problem?

tvhir commented 3 weeks ago

I tried a couple things here, and was able to get it working:

I think you are correct in the fact that FF is throttling the amount of calls that can be made to the website, as to why I went with just one chart only and waited before applying the study again. Anytime you hit apply, it will send a request to the website