I was plotting a 15 minute Supertrend (50,100) on my 3 minute chart of Germany 30 Cash (€1) when I noticed the following:
Before the 8th of may 2018, the graphed Supertrend on the 3 minute chart does not match the Supertrend of the 15 minute chart (as can be seen on screenshot 1)
After the 8th of may 2018, the graphed Supertrend on the 3 minute chart will always match the Supertrend of the 15 minute chart (as can be seen on screenshot 2)
The 15 minute Supertrend is plotted based upon “updateonclose”
I was wondering why this is the case. Is it perhaps because of the very large values I’m using for the Supertrend?
Kind regards,
Pzonda5
because of the very large values I’m using for the Supertrend?
It could be that, you can load more bars at startup of the program by adding:
defparam preloadbars=10000
Without the supertrend code part of your program, I can’t help much. I’d like to replicate the problem to investigate more! Thanks.
Adding the defparam preloadbars=10000 line fixed the problem.
Thank you.