Topics
08 Jul 2019, 16:56
 2
 1141
 1
Replies

AndreaDev
22 Mar 2019, 22:39

RE:

Panagiotis Charalampous said:

Hi .ics,

No this is not available yet.

Best Regards,

Panagiotis

Hi Panagiotis,

Will the Heikin-Ashi chart be available on the desktop any time soon? I can see it on the web and has been voted a lot, so I was just wondering if you can give us an eta for this feature.

In case you will, is there any plan for Heikin-Ashi  in backtesting?

 


@AndreaDev

AndreaDev
23 Feb 2019, 14:44

RE:

admin said:

Robots do not support displaying the results of indicators for the time being. It may be implemented in the future.

Has this been implemented?

If yes, can you point me out some links, thanks in advance.

If no...well I will eventually open a vote to request it, even if it should be something basic to have in a bot.

 


@AndreaDev

AndreaDev
23 Feb 2019, 14:11

RE:

Spotware said:

You need to mark resultFA with OutputAttribute.

I do have the same issue but OutputAttribute didn't help this is my cutomIndicator :

using System;
using cAlgo.API;
using cAlgo.API.Internals;
using cAlgo.API.Indicators;
using cAlgo.Indicators;

namespace cAlgo
{
    [Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]
    public class CustomIndicator : Indicator
    {

        //--- Public
        [Parameter(DefaultValue = 1, MinValue = 1)]
        public int Periods { get; set; }
        [Parameter("MA Type", DefaultValue = MovingAverageType.Simple)]
        public MovingAverageType MAType { get; set; }
        [Output("NewOpen ", Color = Colors.Black)]
        public IndicatorDataSeries NewOpen { get; set; }
        //--- Private
        private MovingAverage maOpen;


        protected override void Initialize()
        {
            NewOpen = CreateDataSeries();
            maOpen = Indicators.MovingAverage(MarketSeries.Open, Periods, MAType);
        }

        public override void Calculate(int index)
        {         
            //--- My Calculate Value
           NewOpen[index] = MarketSeries.Open[index];
        }


    }
}

Then I'm trying to retrieve the value inside my CustomcBot(I add the indicator in the manager reference as per guide line) :

using System;
using System.Linq;
using System.Windows.Forms;
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 CustomcBot : Robot
    {
        //--- Public
        [Parameter(DefaultValue = 1, MinValue = 1)]
        public int Periods { get; set; }
        [Parameter("MA Type", DefaultValue = MovingAverageType.Simple)]
        public MovingAverageType MAType { get; set; }

        private CustomIndicator cIndicator;

        protected override void OnStart()
        {
            cIndicator = Indicators.GetIndicator<CustomIndicator>( Periods, MAType);
        }

        protected override void OnTick()
        {
            Print("Open {0}", cIndicator.NewOpen);
        }

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

In the log I keep receiving "Open IndicatorDataSeries (Count: 0, LastValue: NaN)", any idea why this is happening?

I'm on ICMarket cTrader v3.2(last one).


@AndreaDev

AndreaDev
20 Feb 2019, 01:35

Please add Haikein Ashi chart

Almost 2 years and still no Haikein Ashi on the desktop platform...I have done few indicators to help me out but I would really love to see this indicator as a native chartType.

What hit me the most is the fact that is not that hard to generate Haikein Ashi natively, you give us Renko, that is way much harder to calculate, why not Haikein Ashi?


@AndreaDev