# PLOT DIFFERENCE BETWEEN MC & TS

Questions about MultiCharts and user contributed studies.
piranhaxp
Posts: 241
Joined: 18 Oct 2005
Has thanked: 4 times
Been thanked: 30 times

### PLOT DIFFERENCE BETWEEN MC & TS

Hi,

If I try to use following indicator :

Code: Select all

``` Inputs: Pct(80), sens(10); Variables: NuHI(0), NuLo(0), tgt(14), drng(0), Rng(0); Variables: AvgRng(0), AR(0), HiTgt(0), dcntr(0), LoTgt(0); Variables: value10(0), value1(0); AR = Avg_Rng (sens) ; IF DATE <> DATE[1] THEN BEGIN NuHI = CLOSE ; NuLo = CLOSE ; dcntr = dcntr+1 ; END ; IF HIGH > NuHI THEN NuHI = HIGH ; IF LOW < NuLo THEN NuLo = LOW ; drng = NuHI-NuLo ; HiTgt = NuLo+(AR*(Pct*0.010000)) ; LoTgt = NuHI-(AR*(Pct*0.010000)) ; IF DCount > sens+2 THEN BEGIN PLOT3 (HiTgt, "Hi TGT") ; PLOT4 (LoTgt, "Lo TGT") ; END ; ```
with function ("DCOUNT")

Code: Select all

``` Variables: Cntr(1); IF DATE <> DATE[1] THEN Cntr = Cntr+1 ; DCount = Cntr ; ```
I get different PLOT's in MC and TS. What is the reason and where is the solution ?

Regards.

Mike
Attachments
MC_Plot.png
Plot in Multichart 3.0 Beta2
TS_Plot.png
Plot in TS 8.3 (Build1615)

Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:
We need correct and complete archive to test it. DCount function can't out put something meaningful; because it is obvious it will return 1 or 2 always.
Please send ELD or PLA archive.

Jack Zolty
Posts: 15
Joined: 25 Aug 2007

### It depends on your data....

and when TS and Multicharts starts counting a bar from...one starts the bar on the opening price the other on closing price....a real frustration....

piranhaxp
Posts: 241
Joined: 18 Oct 2005
Has thanked: 4 times
Been thanked: 30 times
Hi Andrew .....

sorry for late answer. Here we go with the ELD_file.

Regards.

Mike
Attachments
FORUM_POST041008_PIRANHAXP.ELD

piranhaxp
Posts: 241
Joined: 18 Oct 2005
Has thanked: 4 times
Been thanked: 30 times
Hi Andrew .....

sorry for late answer. Here we go with the ELD_file.

Regards.

Mike
Attachments
FORUM_POST041008_PIRANHAXP.ELD

MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 34 times

### Func should count up

DCount function can't out put something meaningful; because it is obvious it will return 1 or 2 always.
Is this statement incorrect, or are variable values not preserved across function calls in MC?

Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007
Hi piranhaxp,

We ran tests with the code that you sent us both in TS and MC and there were no differences that we could identify. If you still see discrepancies, please contact our customer support. They'll get connected to your PC and you'll be able to show the differences.

Thank you.