Custom MarketSeries
Created at 20 Sep 2015, 04:00
Custom MarketSeries
20 Sep 2015, 04:00
Hi,
How do one make custom MarketSeries for MovingAverage? Something like that:
protected override void Initialize() { double hl2 = (MarketSeries.High + MarketSeries.Low) / 2; sma = Indicators.MovingAverage(hl2, length, type); }
Thanks in advance.
Replies
ClickAlgo
20 Sep 2015, 20:47
Your 1st argument needs to be a DataSource type object and not a double, the DataSource is read only and you cannot modify it.
DataSource represents a read only list of values, typically used to represent market price series. The values are accessed with an array-like [] operator.
Sorry I cannot help more. :-)
@ClickAlgo
ClickAlgo
20 Sep 2015, 18:47
hello are you asking for a MovingAverage indicator with a custom MarketSeries Timeframe?
@ClickAlgo