PLOT DIFFERENCE BETWEEN MC & TS

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

PLOT DIFFERENCE BETWEEN MC & TS

Postby piranhaxp » 10 Apr 2008

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
(47.96 KiB) Downloaded 603 times
TS_Plot.png
Plot in TS 8.3 (Build1615)
(28.5 KiB) Downloaded 604 times

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 12 Apr 2008

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....

Postby Jack Zolty » 16 Apr 2008

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....

User avatar
piranhaxp
Posts: 241
Joined: 18 Oct 2005
Has thanked: 4 times
Been thanked: 30 times

Postby piranhaxp » 21 Apr 2008

Hi Andrew .....

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

Regards.

Mike
Attachments
FORUM_POST041008_PIRANHAXP.ELD
(5.57 KiB) Downloaded 441 times

User avatar
piranhaxp
Posts: 241
Joined: 18 Oct 2005
Has thanked: 4 times
Been thanked: 30 times

Postby piranhaxp » 23 Apr 2008

Hi Andrew .....

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

Regards.

Mike
Attachments
FORUM_POST041008_PIRANHAXP.ELD
(5.57 KiB) Downloaded 456 times

User avatar
MC_Prog
Posts: 330
Joined: 28 Feb 2007
Has thanked: 64 times
Been thanked: 35 times

Func should count up

Postby MC_Prog » 23 Apr 2008

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?

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 30 Apr 2008

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.


Return to “MultiCharts”