How to set the color of a moving average?
How to set the color of a moving average in an EA,since i cant find any parameter to set it
Any suggestions? TY
- iMA() just returns a value. There are no colors. There are no lines.
- Look in the code base and find a colored MA indicator.
On the backtest screen it draws an MA, but it will always draw a red one, i thought that color could be changed somehow with code.
As I remember the tester screen appears according to tester.tpl
As I remember the tester screen appears according to tester.tpl
Either <EA_Name>.tpl or tester.tpl
There you can set your indicator with the needed colors, and it will be automatically used by the strategy tester.
As I remember the tester screen appears according to tester.tpl
Where can i find this tester.tpl ?
Where can i find this tester.tpl ?
you have to create (save) it, just like the way you save any other template.
you have to create (save) it, just like the way you save any other template.
Guys,
I know this is an old thread, but if you save a .tpl file with the same name as the EA, you can change the appearance of lines for example.
Data Structure in MetaTrader 4 Build 600 and Higher - MQL4 Articles 2014.02.03
How to set the color of a moving average in an EA,since i cant find any parameter to set it
Any suggestions? TY