Adding different bartypes in .net?

Questions about MultiCharts .NET and user contributed studies.
greenroomhoo
Posts: 62
Joined: 03 Nov 2011
Has thanked: 12 times
Been thanked: 2 times

Adding different bartypes in .net?

Postby greenroomhoo » 24 Feb 2013

Thinking about switching over to .net. several newbie simple questions:
1. Does .net allow you to add bartypes into a script? I know in Ninjascript i can add a different time frame into a script and do stuff with it.
2. If so, are there any limitations to the bartypes that can be added to a .net script?
3. Do .net scripts work in both portfolio backtester AND the scanner?

thanks

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

Re: Adding different bartypes in .net?

Postby Henry MultiСharts » 25 Feb 2013

Hello greenroomhoo,

Please describe what do you mean exactly by "bartypes". Are you referring to a custom shaped chart type to be plotted on a chart or a custom data series loaded (like 144 ticks) from the script code for script calculation only? What is your final goal?

3) Yes, they do work in all MultiCharts .Net components/applications.

greenroomhoo
Posts: 62
Joined: 03 Nov 2011
Has thanked: 12 times
Been thanked: 2 times

Re: Adding different bartypes in .net?

Postby greenroomhoo » 25 Feb 2013

For example,

In the other trading platform using C# i can create an indicator that plots an arrow when the CCI crosses zero on a 144 tick chart. I can do that by adding a 144 tick timeframe to the indicator.

Then if I load that indicator onto a five minute chart, it will plot that arrow whenever CCI would have crossed zero on a 144 tick chart.

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

Re: Adding different bartypes in .net?

Postby Henry MultiСharts » 26 Feb 2013

You can load a custom data series with IDataLoader. In order to have your study calculated on this data you will need to write your own code for calculation on IDataLoader data.


Return to “MultiCharts .NET”