if( some condition )
Values[0].Set( SMA(Period)[0] )
else
Values[0].Set(-1) // this I do not want to view
So I prevent displaying it by setting
Plots[0].Min = 0; // this prevents displaying values less then 0
BUT!!! This works very bad when I have set indicator's AutoScale = true!!! Values -1 are not displayed, but I see all range from -1 up to prices!!!! Can this be corrected or am I missing something?
Another possilibily I have deal with this earlier was that during some times I have not set Values at all. This works good visually, but Values not set have some random numbers ( I have printed values in strategies via Print).
Comment