Search found 6 matches

by csswowsers
23 Apr 2014
Forum: MultiCharts .NET
Topic: Array populated with CalcBar
Replies: 3
Views: 1449

Re: Array populated with CalcBar

I was able to edit the New_High_for_Day/New_Low_for_Day indicators to get what I want. However, when trying to close out a position on a reversal, I am not getting the expected behavior with OrderExit.FromEntry(buy_order) or OrderExit.FromEntry(sell_order); I send a buy with buy_order.Send(price,lot...
by csswowsers
21 Apr 2014
Forum: MultiCharts .NET
Topic: Array populated with CalcBar
Replies: 3
Views: 1449

Array populated with CalcBar

My understanding is that the CalcBar() routine is run once per bar. In trying to keep an array of the x bar high/low, I notice that the first time CalcBar() is run, all the values of the array are populated. I had started using VariableSeries but was getting the values were being overridden by previ...
by csswowsers
10 Dec 2013
Forum: MultiCharts .NET
Topic: Indicator Can't Access Another Indicator
Replies: 1
Views: 1273

Indicator Can't Access Another Indicator

I get a nullreference exception in referencing another indicator value. tr is a custom indicator. The below line throws a nullreference. double a1 = Indicator.TR.tr.Value; Is this a limitation in MultiCharts.NET? If so, how can I reference indicator values in programming other custom indicators/stud...
by csswowsers
09 Dec 2013
Forum: MultiCharts .NET
Topic: Indicator Can't Access Previous Bar Close [SOLVED]
Replies: 6
Views: 2201

Re: Indicator Can't Access Previous Bar Close [SOLVED]

I don't see the option to export. I only have the indicator added currently. How can I have your team take a look?
by csswowsers
08 Dec 2013
Forum: MultiCharts .NET
Topic: Indicator Can't Access Previous Bar Close [SOLVED]
Replies: 6
Views: 2201

Re: Indicator Can't Access Previous Bar Close [SOLVED]

That didn't work. This is my indicator code: public class TR : IndicatorObject { public TR(object _ctx):base(_ctx){ } public static VariableSeries<Double> tr; public static VariableObject<Double> ra; private IPlotObject plot1; protected override void Create() { // create variable objects, function o...
by csswowsers
04 Dec 2013
Forum: MultiCharts .NET
Topic: Indicator Can't Access Previous Bar Close [SOLVED]
Replies: 6
Views: 2201

Indicator Can't Access Previous Bar Close [SOLVED]

I am trying to plot a custom indicator but am getting an exception when accessing previous bar close. When referencing Bars.Close[1] I get the exception. protected override void CalcBar(){ if (Bars.CurrentBar == 1) { tr.Value = Bars.High[0] - Bars.Low[0]; } if (Bars.CurrentBar > 1) { if (Bars.High[0...

Go to advanced search