I am trying to compile a signal which includes a true/false filter based on the value of the WAverage. Upon compilation, I am getting the following error:
Here is the code:------ Compiled with error(s): ------
Compile error
errLine 0, errColumn 0, errLineEnd 0, errColumnEnd 0
causal study: (Function)
Code: Select all
inputs: Price( Close ),
Length( 9 ),
Displace( 0 ) ;
variables: var0( 0 ),
GoLong(False),
GoShort(False);
condition1 = Displace >= 0 or CurrentBar > AbsValue( Displace ) ;
if condition1 then
begin
var0 = WAverage( Price, Length ) ;
end;
GoLong = (Close > var0);
GoShort = (Close < var0);
Thierry