whoever could help I'd appreciate it.
When it comes to calculating an EMA, say EMA(50), I understand that this will depend on how many "Min Bars Required" I define on the backtest inputs.
What if, however, I want to have the EMA being calculated starting at he beginning of each day?
For example
I backtest for a 5-day period of time and I'm using 1-minute bars. During the 3rd day for example, on a given bar ( >= 50), I want to calculate the EMA(50) but I want it to do it not using the entire historical data point series but only starting from the first bar of that day (where by definition EMA(50) on the first bar is equal to the current bar price).
Thanks a lot.
Comment