
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
You need to correct the calculation. Not the indicator. There's something wrong with your calculation. This is not an error in the indicator. Your report point shifts when you open a new bar. The amounts change accordingly. You are saying that we should not pay attention to this and calculate the amount only for the zero bar, while all the previous ones have already been drawn. But changing the timeframe and going back will present a totally different picture - the line will be recalculated from the new starting point.
Artem, please excuse me if I didn't put it that way. I'm just saying that if the results of indicator calculation are calculated and stored in a file, they should never change, while recording the results of the battles after the completion of the 0-th bar to the 1st bar, while deleting the last bar from the operational history of the indicator in the form of a single point is not able to change the character and position of the lines on the history.
I have forced you to manually recalculate the appearance of just three bars. Three calculations showed three different lines. You said it was bullshit - you should ignore it and draw only the zero bar. And so I did. Only the change of the timeframe will break everything.
Of course, changing the TF should break everything and rightly so! Different TFs have different inputs. The changes should not be within the same TF.Here it is step by step, asnew barsare opened.
Where do you see changes in the calculations? Please point out the changes in lines B and M on the history when comparing the first and subsequent two tables. Here the calculation period is N=10. The changes occur only in new bars. If we take Close prices instead of Bars, the situation will not change:
Make a simple check like this:
1) TF 1 minute. Put a vertical line on the 1st bar (fixed value). Take the first screenshot of the chart.
2) Switch to any other TF. Wait 10-20 minutes.
3) Switch back to the TF 1 minute. Take the second screenshot of the chart.
4) Compare the chart readings in the screenshots below the vertical line.
Of course, changing the TF should break everything, and rightly so! Different TFs have different inputs. Changes should not be within the same TF.This is step by step, asnew barsare opened.
..Where do you see changes in the calculations? Please point out the changes in lines B and M on the history when comparing the first and subsequent two tables. The calculation period here is N=10. The changes occur only in new bars. If we take closing prices instead of bars, the situation will not change:
...Yusuf, well, you're being facetious ;) You have substituted the data from the previous calculated bars with an offset in the recalculated tables, and recalculated the zero bar using the new data. BUT... If you don't substitute the data, but recalculate it, it will already be different. And you know that. That's the reason you told me to just take the data not the calculated data, but the data already in place. Well, the indicator logic is designed in such a way that already calculated values are not redrawn and only the current bar is calculated. But as soon as we shift the timeframe back and forth, everything changes. The indicator recalculates the entire history and then starts to calculate only the zero bar again. But the recalculated history will be different if we switch thef after some number of bars after the first calculation - before switching thef, because the starting point of calculation has already shifted by the number of new bars from the moment of the first calculation.
Yusuf, you're being facetious ;) You have put in the recalculated tables the data from the previous calculated bars with an offset, and recalculated the zero bar using the new data. BUT... If you don't substitute the data, but recalculate it, it will already be different. And you know that. That's the reason you told me to just take the data not the calculated data, but the data already in place. Well, the indicator logic is designed in such a way that already calculated values are not redrawn and only the current bar is calculated. But as soon as we shift the timeframe back and forth, everything changes. The indicator recalculates the entire history and then starts to calculate only the zero bar again. But the recalculated history will be different if we switch thef after some number of bars after the first calculation - before switching thef, because the starting point of calculation has already shifted by the number of new bars received from the moment of the first calculation.
Make a simple check like this:
1) TF 1 minute. Put a vertical line on the 1st bar (fixed value). Take the first screenshot of the chart.
2) Switch to any other TF. Wait 10-20 minutes.
3) Switch back to the TF 1 minute. Take the second screenshot of the chart.
4) Compare the chart readings in the screenshots below the vertical line.
Artem, save the data so that it does not change when you switch the TF. Any non redrawing indicator changes chart profile when switching - it's not a problem, it's bad when the profiles change when the indicator is reset on the same TF with the same period, moreover, we have profile change over time, i.e. even without resetting the indicator. This is the problem.
The problem is your calculation. First understand what you are being told, then convert your calculation, and then you can do something about it. But I will not make crutches to bypass the wrong calculation - it is not serious.
Artem, where do you think my calculation is wrong, what am I misunderstanding?