[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 479

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
Good afternoon... I have written a simple indicator (see attached file).
In a nutshell, the essence of the indicator: the indicator consists of 3 lines:
1 line shows the difference of two MAs on Close with periods a and b (conditionally).
The 2nd line shows the difference of two MAs on Close with periods c and d (conditionally);a≠b≠c≠d.
Line 3 displays the MA of Line1 and Line2 difference, i.e. MA(Line1-Line2) with a certain period .
Question: Why is Line3 (black) shown as a straight line in the graph?
Note to the image: the upper chart shows the desired result, the lower chart shows my created indicator
Note: If someone will find some more bugs, I will be very grateful for a tip
P.S. In order not to litter the forum, thank you in advance for your feedback
First, try linking the fourth non-displayable buffer ExtMapBuffer4 to the indicator buffer
because you write
at the beginning you describe 3 lines/buffers
by the way, then you won't need to declare it as a timeseries and check it
and your main mistake here
you have to go like this.
First, try linking the fourth non-displayable buffer ExtMapBuffer4 to the indicator buffer
because you write
at the beginning you describe 3 lines/buffers
by the way, then you won't need to declare it as a timeseries and check it
Thanks for the reply... To finally dot the i's, I'd like to find out more about this:
1. You wrote: "First, try to associate the fourth non-mapped buffer ExtMapBuffer4 with the indicator buffer". I thought that only those arrays should be bound, which should be displayed one way or another on the Client Terminal screen, and the total number of all arrays that participate in the calculation of the custom indicator should be specified using the IndicatorBuffers function. So I must be mistaken?
2. If you don't mind, why don't you declare this array as a timeseries? Is it somehow self-organized as a timeseries?
Thank you for your reply... In order to finalise this, I would like to find out one more thing:
1. You write: "first, try to connect the fourth non-mapped buffer ExtMapBuffer4 to the indicator buffer". I thought that only those arrays should be bound, which should be displayed one way or another on the Client Terminal screen, and the total number of all arrays that participate in the calculation of the custom indicator should be specified using the IndicatorBuffers function. So I was wrong?
2. If it's not difficult for you, please explain why we shouldn't declare this array as a timeseries? Is it somehow self-organising as a timeseries?
exactly so, it's automatically organized as a timeseries
you describe visible indicator buffers in the beginning
usingIndicatorBuffers() you can expand the number of automatically organized timeseries to 8 and link them to your arrays
It would be very nice if you could comment your algorithm in detail (each command and the data used), because it's very difficult to understand what is done and for what purpose
then, perhaps, you will get some help, or maybe you will find the problem yourself
According to the help, theSetIndexDrawBegin function indicates from which bar to start drawing. I took a standard AC indicator for testing and changed there in parameters
to
Nothing has changed; it starts drawing from ... not from 8 bar to 0 bar, but from what bar it is unclear.
You can see that it's not 8...
According to the help, theSetIndexDrawBegin function indicates from which bar to start drawing. I took a standard AC indicator for testing and changed there in parameters
to
Nothing has changed; it starts drawing from ... not from 8 bar to 0 bar, but from what bar it is unclear.
You can see that it's not 8...
Set the serial number of the bar from the beginning of the data (read "from the beginning of the chart" "from the left side of the chart"), from which the indicated indicator line should start to be drawn. The indicator is drawn from left to right.
And if I need to draw the last 30 bars for example, how should I do it then?