Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 18:40:42 +0000



Post From: Offering To The Community: Forex: Currency Decorrelation (and Currency Strength)

[2021-09-19 06:03:14]
bjohnson777 (Brett Johnson) - Posts: 284
Give the attached source code file a compile and try. I "think" this will work consistently. You should put this in a new chartbook so your existing one doesn't get messy. If something breaks, you'll also have your original chartbook to fall back to. Be sure to select the FOREX study that is outside my main consolidation DLL as I've only updated it in the attached file. I'm on overload with my health problems getting worse and really don't have time to troubleshoot any problems, though, if it doesn't work.

To use it, set "Bars Back" to 0. Then you can select a date from the "Date Back" box below it. The date is kinda primitive looking, so you may want to select a date from the drop down box and then edit it to whatever you want. If "Bars Back" is greater than 0, it will override anything in the "Date Back" box.

For spreadsheet and writing to file, I don't know. I don't make any arbitrary limits in my code on this. SC may have an internal limit from legacy code, as what I do here is pretty heavy and probably wasn't fully considered years ago. You'll need to start a new forum post and ask the SC dev's. They don't like to see messy charts, so you may want to create yet another chartbook just for testing that is the Decorrelation study only with your file writer and spreadsheet troubles.
attachmentForex_CurrencyDecorrelationAndCurrencyStrength.cpp - Attached On 2021-09-19 05:51:06 UTC - Size: 127.39 KB - 433 views