Search found 9 matches

by MarketPrep
07 Jun 2015
Forum: MultiCharts .NET
Topic: CurrentPosition.MaxDrawDown and IOG Plus BarMagnifier [SOLVED]
Replies: 1
Views: 2426

CurrentPosition.MaxDrawDown and IOG Plus BarMagnifier [SOLVED]

PreSetup: I am using Daily Bars constructed from a smaller Minute resolution IE 15 minutes. Question: It appears that the CurrentPosition.MaxDrawDown only calculates at the close of a bar, even if IOG and BarMagnifier are enabled? Is this by design? and is there a way to force calculation of Current...
by MarketPrep
22 May 2015
Forum: MultiCharts .NET
Topic: How to increase the array size of a VariableSeries Object? [SOLVED]
Replies: 1
Views: 2611

How to increase the array size of a VariableSeries Object? [SOLVED]

Is there a way to increase the array size of a VariableSeries Object using Multicharts.Net?

Example with easy language settings:

ARRAY: OpenEquity[](0);

Observation = Observation + 1;
array_setmaxindex(OpenEquity,Observation);
OpenEquity[Observation]= i_OpenEquity ;
by MarketPrep
26 Mar 2015
Forum: MultiCharts .NET
Topic: historical open equity issue
Replies: 2
Views: 1993

Re: historical open equity issue

Henry/Forum does anyone have an example for this? I can do it but would rather not reinvent the wheel.
by MarketPrep
22 Mar 2015
Forum: MultiCharts .NET
Topic: historical open equity issue
Replies: 2
Views: 1993

historical open equity issue

So here's my problem if I want to optimize based upon smoothness of equity curve using K ratio, then I need historical access to my open equity. however in order to store the historical data I need to use a variable series and the problem is the variable series is limited to the max number of bars b...
by MarketPrep
22 Jan 2014
Forum: MultiCharts .NET
Topic: Persistence of primitives if declared within constructor?
Replies: 4
Views: 1828

Re: Persistence of primitives if declared within constructor

Thanks Andrew, I figured that between bars VariableSeries or VariableObject were needed, however what i need is an array of VariableObjects to be available from bar to bar calculation. Is there an example of how to do this? Pseudo code below (example) private VariableObject<Double>[] R2; private Var...
by MarketPrep
17 Jan 2014
Forum: MultiCharts .NET
Topic: Persistence of primitives if declared within constructor?
Replies: 4
Views: 1828

Persistence of primitives if declared within constructor?

In the .NET programming guide there is the following example: double old_power; protected override void StartCalc() { old_power = 0; } protected override void CalcBar(){ double afast = AvgVal(fastLength); double aslow = AvgVal(slowLength); double power = Math.Abs(100*(afast - aslow)/Bars.Close[0]); ...
by MarketPrep
02 Oct 2013
Forum: MultiCharts .NET
Topic: Global Variables in MC.Net ?
Replies: 9
Views: 10887

Re: Global Variables in MC.Net ?

I am intrigued if this use of GlobalVariables will work with the backtesting engine? I've seen several posts which do not recommend the use of GlobalVariables with the backtesting engine. If it will not is there any recommended way to pass information between SignalObjects using MC.Net? Should we cr...
by MarketPrep
21 Aug 2013
Forum: MultiCharts .NET
Topic: Referencing multiple C# .dlls error due to Reflection?
Replies: 3
Views: 2160

Referencing multiple C# .dlls error due to Reflection?

I have an interesting issue. 1. I am trying to reference a .dll using the PowerLanguage.Net editor, however this .dll references a separate .dll which I am also trying to add via the PowerLanguage.Net editor however I am getting an error when trying to load the .dlls. Example: adding Accord.dll and ...
by MarketPrep
08 Aug 2013
Forum: MultiCharts .NET
Topic: Market Orders w/ BarMagnifier and IOG on Range Bars Question [SOLVED]
Replies: 1
Views: 2296

Market Orders w/ BarMagnifier and IOG on Range Bars Question [SOLVED]

I cannot get Market Orders w/ BarMagnifier (ON) and IOG (ON) on Range Bars to execute on the current bar before the bar close. Is this possible in 8.5 .Net ? I am trying to execute a sellshort market order when I get above a certain value in an existing Range Bar. As I understand the wiki and C# gui...

Go to advanced search