
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
Hello, I am trying to learn mql5, so basically a newbie in this language.
I am trying to build a simple (and probably useless) indicator that would show a positive (green) bar when close price go up compared to the previous bar, and a negative (red) bar when priced go down.
I tried to look into some code from the average speed indicator and it helps me to build a positive (green) bar. However, I could not figure out how to add another color and negative measurement.
Any help?
Thank you.
Edit: Something like this.
This is what I have now