How to "tag" each candle with an object in an EA

 

Hi,

I'm writing an EA and was wondering if anyone had a little snippet of code that I can use to tag each candle after it's evaluted? It doesn't have to be in the main window, could be in a sub window but needs to show up on the chart after running the backtester. I don't know if this can be done in the EA or if it has to be a custom indicator. Any help would be greatly appreciated. Thanks.


Wayen

 
https://docs.mql4.com/objects/ObjectCreate