Hello,
if one changes the period of the chart or enters new values to the indicator, than all variables are put back, but if one simply only switches off the terminals and then switch it on again the variables are not put back again?
Who knows the problem and a solution?
Eaxmple:
Now first you get the issue from the Print() function, now you switch down the terminal and after example 2 minutes you switch the terminal on again, and now you dont get a issue from the Print() function again, but if you just change the period or kompiler the script you get a issue again, because the variables are all put back to their onset, but if you switch of the terminal and than switch on again it dont works, because why please?
if one changes the period of the chart or enters new values to the indicator, than all variables are put back, but if one simply only switches off the terminals and then switch it on again the variables are not put back again?
Who knows the problem and a solution?
Eaxmple:
PHP Code
bool first=true;
int start() {
if(first==true){
Print("first is true ",TimeToStr(Time[0],TIME_DATE|TIME_MINUTES));
first=false;
}
}