I know this language just enough to code EA based on given indicators and condition, and nothing about coding indicators or scripts.
So i was studying few of my backtests to find few logical errors. and it would be helpful if my chart was highlighted in red or green when conditions ma1>ma2 and ma1<ma2 are fulfilled.
Pls help me by giving a few lines to add to my EA which may highlight my chart according to the given conditions.
perhaps now you can get what I am saying. This EA places pending order at every MA crossing so it looks like the first image during backtesting. But i want it to get colored at these crossings as shown in second image.
I am also not into these chart operations.
but I'll look into this ChartObjectCreate() .
I am not so deep into ChartDraw(), but it looks like a rectangle that has been drawn with some alpha value for transparency.
You are (I suppose) looking for something like this:
Please enable the necessary setting in your browser, otherwise you will not be able to log in.