CustomInstrument

Questions about MultiCharts .NET and user contributed studies.
beggar
Posts: 27
Joined: 22 Sep 2016

CustomInstrument

Postby beggar » 24 Feb 2017

Is there a working version of the Custominstrument indicator? The one provided in the faq gives errors when applied to a chart.
using System;
using System.Drawing;
using System.Linq;
using PowerLanguage.Function;

namespace PowerLanguage.Indicator
{
public class Test_CustomInstrument : IndicatorObject
{
public Test_CustomInstrument(object _ctx):base(_ctx){}
private IPlotObject plot1;

CustomInstrument m_MyCustomInstrument;

protected override void Create()
{
plot1 = AddPlot(new PlotAttributes("", EPlotShapes.Line, Color.Red));

}

protected override void StartCalc()
{
//m_MyCustomInstrument = new PowerLanguage.CustomInstrument(Bars, "AAPL", new Resolution { Size = 20, Type = EResolution.Minute }, true);
m_MyCustomInstrument = new CustomInstrument(this, Resolution.CreateRenko(EResolution.Tick, 1, RenkoBoxSizeType.FIXEDPRICE,.1, true, false, true, false));
}

protected override void CalcBar()
{
plot1.Set(m_MyCustomInstrument.CloseValue);
}

protected override void Dispose( bool _b)
{
m_MyCustomInstrument.Dispose();
}
}
}

User avatar
Angelina MultiСharts
Posts: 260
Joined: 28 Dec 2016
Has thanked: 28 times
Been thanked: 66 times

Re: CustomInstrument

Postby Angelina MultiСharts » 27 Feb 2017

Hello beggar,

We are currently analyzing this case. I will get back to you with the answer.

beggar
Posts: 27
Joined: 22 Sep 2016

Re: CustomInstrument

Postby beggar » 27 Feb 2017

Thank you

User avatar
Angelina MultiСharts
Posts: 260
Joined: 28 Dec 2016
Has thanked: 28 times
Been thanked: 66 times

Re: CustomInstrument

Postby Angelina MultiСharts » 02 Mar 2017

The fix will be included in MultiCharts 10 Release 3.

beggar
Posts: 27
Joined: 22 Sep 2016

Re: CustomInstrument

Postby beggar » 13 Mar 2017

Any ideas when this releases coming out? It has been confirmed that custominstrument and dataloader does not work with the new chart types. It times out or gives errors when requesting data for renko and the other "exotic" chart types.

User avatar
Angelina MultiСharts
Posts: 260
Joined: 28 Dec 2016
Has thanked: 28 times
Been thanked: 66 times

Re: CustomInstrument

Postby Angelina MultiСharts » 14 Mar 2017

There is no ETA yet, but we re expecting it to be released within a month.
I've sent you an Email with a custom solution for your setup.


Return to “MultiCharts .NET”