Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 25
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
Цикл от самого "старого" бара к самому "свежему":
Modified the indicator slightly. It counts correctly up to the decimal point. For example, on one section the indicator should be 11, but it shows 11.58.
What may be wrong?
I made vniz_1, vniz_2 be greater than zero. I have created gaps in the indicator line. How to connect the gaps and colour them differently, but not to calculate the indicator in these gaps.
Modified the indicator slightly. It counts correctly up to the decimal point. For example, on one section the indicator should be 11, but it shows 11.58.
What may be wrong?
I made vniz_1, vniz_2 be greater than zero. I have created gaps in the indicator line. How to connect the gaps and colour them differently, but not to calculate the indicator in these gaps.
Calculate the indicator on non-existent bars ?????
??????
How can I fix it so that the line is drawn only for the last 20 bars?
Below is the code of a simple indicator which draws a Horizontal line for all bars.
How can I fix it so that the line is drawn only for the last 20 bars?
What should the line be equal to?
What should the line be equal to?
The size of the line on the Y-axis in this case does not matter, this is just an example based on which I want to understand how to properly limit "drawing" by indicators to a certain number of bars.
The size of the line on the Y-axis does not matter in this case, this is just an example based on which I want to understand how to limit "drawing" by indicators to a certain number of bars.
Do you want to use indicator buffers or objects?
Indicator buffers, as in the future the solution will be used not only for straight lines, but also for moving average and other types of lines.