MI
Topics
19 Apr 2020, 23:22
2198
7
Replies
mizo.rakkii
22 Apr 2020, 18:56
Hi PanagiotisCharalampous ,
Thank you for replying.
I tried your command, but It didn't work.
To apply tick data to simple moving average, I used the method as follows.
using System;
using System.Linq;
using cAlgo.API;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using cAlgo.Indicators;
namespace cAlgo.Robots
{
[Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
public class cBot1 : Robot
{
private SimpleMovingAverage sma1;
protected override void OnTick()
{
sma1 = Indicators.SimpleMovingAverage(MarketData.GetTicks(Symbol.Name),20);
............
}
}
}
I used GetTicks(Symbol.Name) method because I couldn't compile it with GetTicks(Symbol) method.
What is the problem on my code?
Best Regards,
mizo.rakkii
@mizo.rakkii
mizo.rakkii
29 Apr 2020, 15:01
Hi PanagiotisCharalampous ,
Thank you for your advice.
I was able to complete the accurate system with your bright solution.
Best Regards,
mizo.rakkii
@mizo.rakkii