You should use the EA both of those for market analysis and actual trading things to do likewise. To make the process easier, there are plenty of tools offered within the market, for example EA Studio, as an example, which lets you create your personal expert advisor for MetaTrader https://bestmt4ea.com/product-category/forex-robot/