Don't double post
Sorry - I was under the impression it was better to post a new topic as opposed to asking multiple different questions under one topic?
Same code, same problems, continuations of the same topic.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
If someone could be kind enough to shed some light on this...
I need to know which was the bar where all the MA's fanned up... which I have.... If this is true, then it needs to move onto the next IF statement. However, when it moves onto the next "IF" statement, all the moving averages DO NOT need to remain in the correct order as stated in the first IF statement (indicated with the arrow).
Instead, what I am wanting to make sure is that price close, remains above the 60 EMA, (irrelevant of the moving averages being stacked up on top of each other in the right order...) else it needs to run the loop again to determine the point where all the moving averages are fanned up again....