Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 10:37:48 +0000



Post From: Custom indicator not recalculating automatically

[2023-12-13 05:43:30]
User925260 - Posts: 30
Hello,


I m having an issue with a custom indicator of the rsi that is connected to a multi time frame strategy. The indicator which is running on a 10,000 tick timeframe is not recalculating and affecting the trade outcome of the lower tick timeframe indicator for the strategy.


I tried using the recalculate chart code from the support board but it did not fix the issue.

-------------------------------------------
sc.UpdateAlways = true;

int recalculationTimeInSeconds = 10;
SCDateTime& r_LastCalculationDateTime = sc.GetPersistentSCDateTime(1);
const SCDateTimeMS CurrentDateTime = sc.GetCurrentDateTime();
if ((CurrentDateTime - r_LastCalculationDateTime).GetAbsoluteValue()
> SCDateTime::SECONDS(recalculationTimeInSeconds))
{
r_LastCalculationDateTime = CurrentDateTime;
sc.FlagFullRecalculate = 1;
//sc.AddMessageToLog("Performing full recalculation of chart", 0);
}

-------------------------------------------------------------


Is it possible to automatically reload the indicator or chart every tick or every minute? I have provided an image of the indicator