Some mql4 coding problems almost same problem look to the solution
I don't think the issue is the changing colour bit . . . I think it's calculating where the point of inflexion is . . . I have my doubts it's possible due to the nature of the discontinuous X axis . .

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 you want to change the color of the buffer, not based on turning points like usual (when the slope changes from negative to positive the color changes from red to green & vice versa), but on inflection points: when the first derivative changes signs, how would you code that? This is a start, but something tells me I need to use a loop and save that I am now in a "positive inflection" part, etc. Help pls!