I have noticed that when my EA starts, by default it sets bars not candle. I would prefer have candles since the beginning automatically.
Is there a function that can help me?
Try this. int Chart_ID
I am assuming that this is in the Strategy Tester, because that is the only situation in which this would happen.
This is because, when your start your EA in the strategy tester, it first tries to load a template for the display in the following order:
So, to fix it, set-up a clean chart and set all the visual aspects (such as candles instead of bars, colours, etc.) you want and then save it to the templates: