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
Adding different bartypes in .net?
-
- Posts: 62
- Joined: 03 Nov 2011
- Has thanked: 12 times
- Been thanked: 2 times
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Adding different bartypes in .net?
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.
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.
-
- Posts: 62
- Joined: 03 Nov 2011
- Has thanked: 12 times
- Been thanked: 2 times
Re: Adding different bartypes in .net?
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.
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.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Adding different bartypes in .net?
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.