antony23:
Hi, the code "while(!IsStopped())" is not working on my Indicator.
I have a code like this:
If i remove indicator from chart or close the chart, the operations inside "while" continue until the "break" is triggered (i can see it in logs).
Is it expected behaviour or a bug?
You have a loop that runs until it is complete. IsStopped() detects 3 seconds of inactivity when the code is running. in contrast, OnDeinit() detects when the indicator has been removed.
Expected. Not a bug.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi, the code "while(!IsStopped())" is not working on my Indicator.
I have a code like this:
If i remove indicator from chart or close the chart, the operations inside "while" continue until the "break" is triggered (i can see it in logs).
Is it expected behaviour or a bug?