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
I do not use alerts in indicators. I provide for full recalculation if the history is loaded. This is easy to control.
Please reveal the mystery.
Where did you find the mystery? Almost everything has been said and laid out. Well, almost everything.
Where did you find the mystery? Almost everything has been said and laid out. Well, almost everything.
So you won't share the code?
Why write that you know how?
So you won't share the code?
Why write that you know how?
Two lines of code are embarrassing to write.
There's rates_total. There is prev_calculated.
One stores the number of available bars, the second stores the number of bars processed.
If the difference is more than one, history is being loaded.
How do you implement this control? Allah only knows (maybe God knows). It is up to you to decide.
But there are other pitfalls with indicators. If you learned how to write EAs, it does not mean that you can write indicators. And vice versa. The logic of work is different
Two lines of code are embarrassing to write.
There is rates_total. There is prev_calculated.
One stores number of available bars, second stores number of processed bars.
If the difference is more than one, history is loaded.
How do you implement this control? Allah only knows (maybe God knows). It is up to you to decide.
But there are other pitfalls with indicators. If you learned how to write EAs, it does not mean that you can write indicators. And vice versa. The logic of work is different
Yeah. So every time they're not equal, we have to recalculate the whole story.
Do you have any other options?
I have an idea. I'll write later.
the idea is dead.
I'll ask developers to make something like HistoryUpdated() system check whether all history was updated or not.
I have an idea. I'll write later.
the idea is dead.
I'll ask developers to make something like HistoryUpdated() system check whether all history was updated or not.
Developers will not help you because they won't.
I already told you: if the difference between rates_total and prev_calculated is greater than 1, then this is HistoryUpdated.