Code: Select all
value1=Average(close,5) of data2;
plot1(value1);
Code: Select all
value1=Average(close,5) of data2;
plot1(value1);
Code: Select all
value1=Average(close,5) of data2;
plot1(value1);
RecalcLastBarAfter(1);
There is no way to turn off the study from the code.Thank you,Please tell me how can I "turn on/off" indicator or signal per time automatically,The results seems different from manual。“RecalcLastBarAfter” and “recalculate” may be unavailableCode: Select all
value1=Average(close,5) of data2;
plot1(value1);
RecalcLastBarAfter(1);
You can turn off an indicator with the RaiseRunTimeError() keyword.Thank you,Please tell me how can I "turn on/off" indicator or signal per time automatically,The results seems different from manual。“RecalcLastBarAfter” and “recalculate” may be unavailable
Code: Select all
Variables:
IntrabarPersist calculateScript(true);
if (calculateScript = true) then begin
// Execute the script's code here
end;
// Turn off the script's calculations when 'something' happens
if (something) then
calculateScript = false;