Support Board
Date/Time: Mon, 13 Jan 2025 07:37:45 +0000
Post From: Custom study - don't execute when chart is recalculating, reloading, anything, ...
[2017-04-02 11:42:09] |
User612903 - Posts: 51 |
Hi, I've got a custom sutdy that works great, but sometime it get's called when I change some chart settings and the chart reload / recalculate. This is what i have in my code, is there any other line I can use to stop it for running when it's not live. if (!(sc.ServerConnectionState == SCS_CONNECTED)) { sc.AddMessageToLog("NOT CONNECTED", 1); return false; } if (sc.Index == 0) { sc.AddMessageToLog("INDEX == 0 ", 1); return false; } if (sc.IsFullRecalculation)//This indicates a study is being recalculated. { sc.AddMessageToLog("IsFullRecalculation", 1); return false; } Thank you very much for your help. |