I would like to have a line appear on my chart that would match a variable value so I could follow the EA visually. (MT4 please)
similar to a Trailing Stop mouvement.
I would also like to change the color of some lines in comments if possible.
Any help or advice would be appreciated.
if(ObjectFind<0) ObjectCreate in OnInit, ObjectDelete in OnDeinit, ObjectSetInteger(price)=variable && ChartRedraw in main function.
Looks like indicator commands (I know nothing about indicator coding but I will fiddle arround and try to figure it out.
These are MQL functions, you can find documentation about them here:
You can write an indicator, an expert or fit them in the existing expert's code.
You will actually need ObjectSetDouble for price, it's my mistake. You can however use ObjectSetInteger to set objects' colors.
That gives me a good starting point.
BTW, i noticed that the command you pointed out, seems to point to the sub-window and not the main window-chart wich im looking for.
I will probably find it at that link.