Change all "n" to "q" after for(int q=0;q<limit;q++)
LowChannel2[n]
Vasyl Nosal:
Out of everything I tried I did not try that... Thank you very much! It works perfectly now.
Change all "n" to "q" after for(int q=0;q<limit;q++)
LowChannel2[n]
hii bro ...
if you have completed the entire code you can send the full moving average arrow code so i want to see and if you have solved the problem then send me the code.. ??

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
I was hoping someone would be willing to help me with a problem I'm having. As the title suggests, I'm trying to draw arrows when a moving average crosses a line that is drawn by an array. I'm working with the Center of Gravity indicator, trying to understand it actually. I thought it would be nice to be able to draw a signal moving average that would signal buy and sell as price moves between the channels.
I am by no means a skilled programmer but have been learning MQL and am slowly getting to grips to how it works. This has really stumped me though and can't understand why I can't get it to work. I have used similar code before to draw arrows at a cross of two moving averages and it works perfectly. The only difference here is the fact I'm crossing a line that is drawn through an array. In previous attempts I can get arrows drawn but they draw on every candle so I thought it had to do with the loop I was using. In this latest attempt I can't even get the arrows to show up!
This is the source code in question. If needs be I can post the full source if that would be easier. Any help would be very much appreciated.