help would be appreciated
private void FinalCallTimer()
{
if (isFinalCallNoneTimerActive && (DateTime.Now - finalCallNoneStartTime).TotalMinutes >= FinalCallNoneDurationMinutes)
{
isFinalCallNoneTimerActive = false; // Deactivate timer after duration
}
if (isFinalCallNoneTimerActive)
{
finalCall = "NONE"; // Keep final call as NONE if timer is active
finalCallCount += 1;
}
}
Print("VolumeSpikeIndicator = " + volumeSpikeIndicator.volumeSpikeIsTrue);
if (volumeSpikeIndicator != null && volumeSpikeIndicator.volumeSpikeIsTrue){
finalCall = "NONE";
NinjaTrader.NinjaScript.AddOns.btAddOn.SharedStrin g = finalCall;
FinalCallTimer();
Print("Volume Spike Is Active Final Call is NONE");
return;
}
else if (volumeSpikeIndicator.volumeSpikeIsTrue == false){
Print("No Volume Spike Detected");
}
Comment