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
MULTICHARTS .NET 9.0 BETA 2
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
-
- 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
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
Jeff
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: MULTICHARTS .NET 9.0 BETA 2
Hello Jeff,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.
This issue has been confirmed. Thank you for the reporting.
- 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
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:
And in the strategy:
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));
}
}
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);
}
}
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: MULTICHARTS .NET 9.0 BETA 2
Hello davewolfs,What Class/library contains the portfolio functions for .net. Your attached documentation doesn't seem to cover the API.
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.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times