For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
How to give to EMA DAILY timeframe?
-
self.ema = bt.indicators.ExponentialSmoothing(period=200)
-
Calculate EMA for data feed with daily time frame.
self.ema = bt.indicators.ExponentialSmoothing(self.data, period=200)
-
I didn't notice but for EMA I would use the following indicator:
self.ema = bt.indicators.ExponentialMovingAverage(self.data, period=200)
-
How to change it, if I want to use hourly timeframe?
-
@YELNAr
Calculate EMA for data feed with hourly bars. -
Thanks, Do you know where I can parse historical forex data hourly?