
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
The solution to the problem
I.e. the whole problem is adding TWO of the same lines to any indicator.
Library code
Is there anything simpler, clearer and more vivid?
I also need a global variable name for each instance of the indicator, in case there are two indicators with different parameters in the chart).
Can't it be simpler, clearer and more obvious?
No.
Also each indicator instance needs its own global variable name, in case there are two indicators with different parameters in the chart).
You shouldn't do it, because two instances of the indicator with different parameters on one chart contradicts the usage, which is wanted in this branch.
Therefore, if you start the second instance, it simply won't work until the first one is unloaded.
No way.
...
Is it?
Is it?
No, of course not. Handle-chart must necessarily be written in the name of a global variable.
And my solution is achieved by adding just two lines. It's somewhat simpler.
No, of course not. Handle-chart must necessarily be written in the name of a global variable.
And my solution is achieved by adding just two lines. This is somewhat simpler.
And the logic (algorithm) itself is the same?
....
And my solution is achieved by adding just two lines. This is somewhat simpler.
And calling functions like SetIndexBuffer with a delay and not in the standard init doesn't bother you? Are you absolutely sure it's OK?
Is the logic (algorithm) the same?
Count how many lines I have and how many you have... two lines it adds, a hell of a lot of nonsense to where - two lines.
You haven't counted - that's a lot.
Exactly two is enough to add for any indicator to have the coveted property of this discussion.
You haven't counted - that's a lot.
Exactly two is enough to add to make any indicator a desirable feature of this discussion.
This is the tenth question. It's a matter of taste. But still my code is 5 times smaller and readable :/
More interesting is this:
Calling the SetIndexBuffer function with a delay and not in the standard inite is not confusing? Are you absolutely sure this is normal?
Is calling the SetIndexBuffer function with a delay and not in the standard init? Are you absolutely sure that this is normal?
Absolutely. Calling OnCalculate will probably cause problems, but this is solved by easy library edits. It will be possible to clarify it on Monday.
In principle, one line may be enough.