I may have mixed up the "for" loop and while. Eliminating the "for" loop syntax of the while loop should be correct right?
I do not understand this step .. sorry
I declare this: Int a=bars; and operator Cylce body is a--;
No, not OK! The whole thing is just not right. I don't think you seem to understand how a custom Indicator works and how its code is supposed to be structured correctly.
I suggest you study all the sample indicator code provided by MetaQuotes and go over the documentation again, until you fully understand how customer indicators are supposed to be coded.
Also, you seem to have some difficulty with understand basic coding concepts as well, so I suggest you also do some more learning of coding in general, such as in "C".
To add comments, please log in or register