MULTICHARTS .NET 9.0 BETA 2

Questions about MultiCharts .NET and user contributed studies.
User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

MULTICHARTS .NET 9.0 BETA 2

Postby Henry MultiСharts » 08 Jul 2014

MultiCharts .NET 9.0 Beta 2 has minor updates and fixes for features that were introduced in Beta 1.
Learn more here

Download MultiCharts .NET 9.0 Beta 2

Portfolio Trader Manual

rjelles
Posts: 36
Joined: 04 Feb 2010
Location: Calgary, AB Canada
Has thanked: 7 times
Been thanked: 19 times
Contact:

Re: MULTICHARTS .NET 9.0 BETA 2

Postby rjelles » 13 Jul 2014

In Portfolio Trader, I am no longer able to enter high tick resolution values - the tick resolution is being incorrectly limited to 1440 (number of minutes in day). I didn't test this in the Beta 1, so not sure when this was introduced.

Jeff

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: MULTICHARTS .NET 9.0 BETA 2

Postby Henry MultiСharts » 14 Jul 2014

In Portfolio Trader, I am no longer able to enter high tick resolution values - the tick resolution is being incorrectly limited to 1440 (number of minutes in day). I didn't test this in the Beta 1, so not sure when this was introduced.
Hello Jeff,

This issue has been confirmed. Thank you for the reporting.

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: MULTICHARTS .NET 9.0 BETA 2

Postby JoshM » 26 Jul 2014

Edited to remove my help question; I figured it out myself.

Here's how to plot values from a strategy in an indicator if you might have the same question:

Code: Select all

public class ExampleIndicator : IndicatorObject
{
public ExampleIndicator(object _ctx):base(_ctx){}

private IPlotObject plot1, plot2;

protected override void Create()
{
plot1 = AddPlot(new PlotAttributes(1));
plot2 = AddPlot(new PlotAttributes("Test", EPlotShapes.Cross, Color.Yellow));
}

protected override void CalcBar()
{
plot1.Set(StrategyInfo.GetPlotValue(1));
plot2.Set(StrategyInfo.GetPlotValue(2));
}
}
And in the strategy:

Code: Select all

public class ExampleStrategy : SignalObject
{
public ExampleStrategy(object _ctx):base(_ctx){}

protected override void CalcBar()
{
StrategyInfo.SetPlotValue(1, Bars.Close[0]);
StrategyInfo.SetPlotValue(2, (Bars.High[0] - Bars.Low[0]) / 2);
}
}

davewolfs
Posts: 89
Joined: 06 Feb 2013
Has thanked: 2 times
Been thanked: 11 times

Re: MULTICHARTS .NET 9.0 BETA 2

Postby davewolfs » 07 Aug 2014

What Class/library contains the portfolio functions for .net. Your attached documentation doesn't seem to cover the API.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: MULTICHARTS .NET 9.0 BETA 2

Postby Henry MultiСharts » 07 Aug 2014

What Class/library contains the portfolio functions for .net. Your attached documentation doesn't seem to cover the API.
Hello davewolfs,

Old functionality is available via IPortfolioPerformance. New functionality can be inherited from PortfolioSignalObject. You can check the prebuilt signals starting with Portfolio_*** for usage examples.



Return to “MultiCharts .NET”