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();
}
}
}
CustomInstrument
CustomInstrument
Is there a working version of the Custominstrument indicator? The one provided in the faq gives errors when applied to a chart.
- Angelina MultiСharts
- Posts: 260
- Joined: 28 Dec 2016
- Has thanked: 28 times
- Been thanked: 66 times
Re: CustomInstrument
Hello beggar,
We are currently analyzing this case. I will get back to you with the answer.
We are currently analyzing this case. I will get back to you with the answer.
- Angelina MultiСharts
- Posts: 260
- Joined: 28 Dec 2016
- Has thanked: 28 times
- Been thanked: 66 times
Re: CustomInstrument
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.
- Angelina MultiСharts
- Posts: 260
- Joined: 28 Dec 2016
- Has thanked: 28 times
- Been thanked: 66 times
Re: CustomInstrument
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.
I've sent you an Email with a custom solution for your setup.