Inflection color
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 . .
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!