Information

Username: erikvb
Member since: 09 Feb 2019
Last login: 09 Feb 2019
Status: Active

Activity

Where Created Comments
Algorithms 0 1
Forum Topics 3 5
Jobs 0 0

Last Algorithm Comments

ER
erikvb · 5 years ago

Hello , i get some error when i try the robot ?

someone have the robot running ?

i installed the indicator , and work fine.

 

Severity Code Description Project File Line Suppression State

Error CS0234 The type or namespace name 'HMASingal' does not exist in the namespace 'cAlgo' (are you missing an assembly reference?) HMASignals d:\Users\Erik\Documents\cAlgo\Sources\Robots\HMASignals\HMASignals\HMASignals.cs 3 Active

Severity Code Description Project File Line Suppression State

Error CS0052 Inconsistent accessibility: field type 'HMASignals' is less accessible than field 'HMASmartBotFirstEdition.hmaSignals' HMASignals d:\Users\Erik\Documents\cAlgo\Sources\Robots\HMASignals\HMASignals\HMASignals.cs 11 Active

Severity Code Description Project File Line Suppression State

Error CS0118 'HMASignals' is a type but is used like a variable HMASignals d:\Users\Erik\Documents\cAlgo\Sources\Robots\HMASignals\HMASignals\HMASignals.cs 20 Active

Severity Code Description Project File Line Suppression State

Error CS0246 The type or namespace name 'HMASignal' could not be found (are you missing a using directive or an assembly reference?) HMASignals d:\Users\Erik\Documents\cAlgo\Sources\Robots\HMASignals\HMASignals\HMASignals.cs 20 Active

 

 

using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.HMASingal;
namespace cAlgo
{
    [Robot(TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class HMASmartBotFirstEdition : Robot
    {
        [Parameter(DefaultValue = 0.0)]
        public double Parameter { get; set; }
        public HMASignals hmaSignals;

        private MarketSeries HmaDaySeries;
        private HMASignals _hmaSignal;

        protected override void OnStart()
        {
            // Put your initialization logic here
            HmaDaySeries = MarketData.GetSeries(TimeFrame.Daily);
            HMASignals = Indicators.GetIndicator<HMASignal>(HmaDaySeries, 21, false, false, 3, false, 50);
        }

        protected override void OnTick()
        {
            // Put your core logic here
        }

        protected override void OnStop()
        {
            // Put your deinitialization logic here
        }
    }

    internal class HMASignals
    {
    }
}