Search found 6 matches

by elvis1984
11 Nov 2013
Forum: MultiCharts
Topic: global variable in MC can be only used in Real time?
Replies: 4
Views: 1610

Re: global variable in MC can be only used in Real time?

Thanks, That is what I want. I will spend more time to figure out this.
by elvis1984
11 Nov 2013
Forum: MultiCharts
Topic: global variable in MC can be only used in Real time?
Replies: 4
Views: 1610

Re: global variable in MC can be only used in Real time?

What I mean is the global variable is a constant when you use it, which make the back testing failed. var0[1] can only return the value one bar ago, but the value has not change in the very beginning. Anyone know what I am saying?
by elvis1984
10 Nov 2013
Forum: MultiCharts
Topic: global variable in MC can be only used in Real time?
Replies: 4
Views: 1610

global variable in MC can be only used in Real time?

I found that global variable cant store the value in history but only the current latest value, which make the strategy back testing impossible to finish. For instance, You insert this indicator in one workspace: vars:GVset("GVtest"),var1(0);// GVSetNamedDouble(Gvset,0); if time=1500 then begin GVSe...
by elvis1984
01 Nov 2013
Forum: MultiCharts
Topic: Is there a problem?
Replies: 2
Views: 1268

Is there a problem?

I encountered two unbelievable bug today using MC, 1, I wrote a condition to open the position and condition1= (A and B and C), where A= true B= True, C= flase, How can I get condition1=true?? 2, I used backtester for the strategy, then I found if I add a new data source( like data2) and even I do n...
by elvis1984
12 Oct 2013
Forum: MultiCharts
Topic: How to store the price at daily specific time?
Replies: 6
Views: 2339

Re: How to store the price at daily specific time?

Bars.TimeValue gives you what you need. Example: if ((Bars.TimeValue.Month == 9) && (Bars.TimeValue.Year == 2011)) {do whatever} you can set this for hours, minutes, date, etc. edit- sorry, I seem to have wandered over from the MC.NET forum. This is the C# answer. Would you give me a example using ...
by elvis1984
10 Oct 2013
Forum: MultiCharts
Topic: How to store the price at daily specific time?
Replies: 6
Views: 2339

How to store the price at daily specific time?

for example, I want to use the price at 9:00 2 days ago or the vwap close of market yesterday?

Go to advanced search