Code: Select all
inputs: SMAFilter( 34 ), ShortEMA( 12 ), LongEMA( 35 ), ShortTermSlopeDays(15), LongTermSlopeDays(245),
ATRStop(1.83), ATRLength(14), ProfitTarget(14000), RiskPerTrade(0.03);
variables: MacdMA( 0 ), SMA( 0 ), ShortTermSlope( 0 ), LongTermSlope( 0 ), EquityAtRisk( 0 );
array: MacdLine[ ] ( 0 );
array_setmaxindex[ MacdLine, ShortEMA + 1 ]
//Calculate long and short term slope filters
ShortTermSlope = LinearRegSlope( Close, ShortTermSlopeDays)
LongTermSlope = LinearRegSlope( Close, LongTermSlopeDays)
Any advice and/or guidance on solving this compiling error would be greatly appreciated.05.10.10 10:04:33
------ Build started: ------
Study: "Guinness" (Signal)
Please wait ....
------ Compiled with error(s): ------
syntax error, unexpected 'identificator'
errLine 8, errColumn 0, errLineEnd 8, errColumnEnd 0
causal study: (Function)
FYI: Line 8 is "ShortTermSlope = LinearRegSlope( Close, ShortTermSlopeDays)"
Thanks in advance,
Adam