MACD and different time frames.
Created at 10 Dec 2016, 19:14
MACD and different time frames.
10 Dec 2016, 19:14
I am trying ti figureout how to initialise multipl MACDCrossover Indicators for differen timeframes?
Because the MacdCrossover indicator takes a DataSeries which doesn't seem to be created based on any given time frame how do you acheive this?
DataSeries _data_series = Robot.CreateDataSeries(); MacdCrossOver_indicator = Robot.Indicators.MacdCrossOver( _data_series, LongCyclePeriod, ShortCyclePeriod, SignalPeriod ) //no time frame indication here.
How does the MACDCrossover know that you want a 4hour macdcrossover indictor as apoosed to a 2 hour MacdCrossover indicator?
Any help would be muchaprreciated.
David
firemyst
04 Sep 2020, 09:37
RE:
kdcp999 said:
It knows based on the data series you pass into it.
Instead of creating a data series, you need to pass it one.
Example:
@firemyst