MC for TWS compile error  [SOLVED]

Questions about MultiCharts and user contributed studies.
Dirk8
Posts: 26
Joined: 24 Mar 2014
Has thanked: 10 times
Been thanked: 1 time

MC for TWS compile error

Postby Dirk8 » 04 Feb 2015

I installed MC for TWS (64bit) and did a simple copy/paste of the original MACD formula into MC for TWS. It gaves a compile error. How comes? Is it because it's a trial version?

------ Build started: ------
Study: "Band_Low" (Indicator)
Please wait ....
------ Compiled with error(s): ------
Compile error
line 0, column 0
--

Code: Select all

inputs: FastLength( 12 ), SlowLength( 26 ), MACDLength( 9 ) ;
variables: var0( 0 ), var1( 0 ), var2( 0 ) ;

var0 = MACD( Close, FastLength, SlowLength ) ;
var1 = XAverage( var0, MACDLength ) ;
var2 = var0 - var1 ;

Plot1( var0, "MACD" ) ;
Plot2( var1, "MACDAvg" ) ;
Plot3( var2, "MACDDiff" ) ;
Plot4( 0, "ZeroLine" ) ;

condition1 = var2 crosses over 0 ;
if condition1 then
Alert( "Bullish alert" )
else
begin
condition1 = var2 crosses under 0 ;
if condition1 then
Alert( "Bearish alert" ) ;
end;

tony
Posts: 420
Joined: 14 Jun 2013
Has thanked: 30 times
Been thanked: 81 times
Contact:

Re: MC for TWS compile error

Postby tony » 04 Feb 2015

Good chance it is related to this - https://www.multicharts.com/trading-sof ... mnEnd_0%29

Dirk8
Posts: 26
Joined: 24 Mar 2014
Has thanked: 10 times
Been thanked: 1 time

Re: MC for TWS compile error

Postby Dirk8 » 04 Feb 2015

Good idea but is that for vista users or for versions below 8.8.

I use windows 8 with MC version 9.

There were never problems. Now that I install the latest MC for TWS 8.90, there's the problem.

I saw that the error is also when compiling an existing indicator.

Is this a conflict between the two versions on the same pc..?

tony
Posts: 420
Joined: 14 Jun 2013
Has thanked: 30 times
Been thanked: 81 times
Contact:

Re: MC for TWS compile error

Postby tony » 04 Feb 2015

It's happened to me before where I had a compilation error line 0 column 0 as you get. It doesn't look like anything wrong in your code in terms of missing an end; for example. This was the fix I followed in the past per MC.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: MC for TWS compile error  [SOLVED]

Postby Henry MultiСharts » 04 Feb 2015

The issue has been resolved by Repairing MultiCharts for TWS.


Return to “MultiCharts”