I have attached also an image with the jumbled mess that appears on the leftmost part of the indicator when I try to limit the amount of bars
with this piece of code.
if(Bars>BarsBack)
{
limit=BarsBack;
}
If i limit the bars like this for a simple moving average code I do not get the mess that you see in the attached image.
I strongly believe there is something I don't understand I personally believe it has something to do with the IMAOnArray part.
If I limit the bars even more like to 500 it just doesn't display properly at all.
Can you guys please help me here, shed some light on this?
So I have found this TEMA indicator and I just wanted to limit the number of Bars it needs to process by adding a new parameter "BarsBack".
The problem is that by doing this it messes up the indicator line.
The attached code is as follows
I have attached also an image with the jumbled mess that appears on the leftmost part of the indicator when I try to limit the amount of bars with this piece of code.
If i limit the bars like this for a simple moving average code I do not get the mess that you see in the attached image.
I strongly believe there is something I don't understand I personally believe it has something to do with the IMAOnArray part.
If I limit the bars even more like to 500 it just doesn't display properly at all.
Can you guys please help me here, shed some light on this?