Hi to all! I use a simple code on an indicator, just to plot some custom values on a subchart below SPX. My code is :
if DATE = 20211028 THEN
MyIndicator = 4440
endif
if DATE = 20211029 THEN
MyIndicator = 4445
endif
Return MyIndicator as “MyIndicator”
Because after the values are now 2-3 years, the whole platform starts to lag a little bit. So, I wonder, can I put my values on arrays, so to have a lighter code?
And if yes, how to transform correct? Any example please????