Directional Movement System of a different timefram
Created at 10 Feb 2018, 15:32
Directional Movement System of a different timefram
10 Feb 2018, 15:32
How do I create Directional Movement System instance of a different timeframe?
private MarketSeries m5;
using System; using System.Linq; using cAlgo.API; using cAlgo.API.Indicators; using cAlgo.API.Internals; using cAlgo.Indicators; namespace cAlgo { [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)] public class testdel : Robot { [Parameter(DefaultValue = 0.0)] public double Parameter { get; set; } public MarketSeries m5; public DirectionalMovementSystem _dms5m; protected override void OnStart() { m5 = MarketData.GetSeries(TimeFrame.Minute5); _dms5m = Indicators.DirectionalMovementSystem(m5.Close, 14); } } }
The code above seem doesn;t work...