Hi,
I have read the FAQ about multi data and tried to do some program. My guess is the Multicharts engine will evaluate each bar of the fastest data series. May I ask if there is any keywords of the language to have the script run only one calculation of each bar of slower data series please?
Thanks.
How script run with multi data series? [SOLVED]
Re: How script run with multi data series? [SOLVED]
If the fast data series is Data1 and the slow data series is Data2, then you can add a condition to execute the codes for Data2 such that:
If BarStatus (2) = 2 Then Begin
xxxxxxxx
End;
The first value of 2 refers to Data2, the second value of 2 refers to the closing tick of a bar.
If BarStatus (2) = 2 Then Begin
xxxxxxxx
End;
The first value of 2 refers to Data2, the second value of 2 refers to the closing tick of a bar.
Re: How script run with multi data series?
Thanks so much.
May I ask if I have to place fastest data as data1 in current MC version please? Sometimes the data is added after several rounds of development which makes the refactor difficult.
Thanks.
May I ask if I have to place fastest data as data1 in current MC version please? Sometimes the data is added after several rounds of development which makes the refactor difficult.
Thanks.
If the fast data series is Data1 and the slow data series is Data2, then you can add a condition to execute the codes for Data2 such that:
If BarStatus (2) = 2 Then Begin
xxxxxxxx
End;
The first value of 2 refers to Data2, the second value of 2 refers to the closing tick of a bar.
- TJ
- Posts: 7742
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2222 times
Re: How script run with multi data series?
Strategies trade on Data1.
That's why you place your primary trading logic on Data1.
If the detail of a faster fractal is not important in your analysis, then you can forgo having it as Data1.
That's why you place your primary trading logic on Data1.
If the detail of a faster fractal is not important in your analysis, then you can forgo having it as Data1.