I wish to display current EMA and yesterday EMA for the same time period.
EMA(int period)[int barsAgo]
EMA(ISeries<double> input, int period)[int barsAgo]
If I have a 5 minute bar, I have 288 in a day. barsAgo =288 except it doesn't work on Monday.
The magic is to calculate barsAgo for for same time previous trading day. Holidays make it dicy too.
Ideas, suggestions?
Thanks
Morris
Comment