Compile failed at the "Else" part ???
Message:
syntax error, unexpected 'else', expecting 'End'
errLine 35, errColumn 7, errLineEnd 35, errColumnEnd 7
causal study: (Function)
This part is to test if the variable TLLow is the lowet Low within 5 periods. If it is, them TLLOw should be equal to the lowset low within 5 periods
Code: Select all
if Step1 then begin //If Step2_Step1_S1
If Low >= TLLow then begin //If Step2_Step1_S2 // Dont test the same low
// Price to be higher than TLLOw within 5 periods. Meaning TLLow as to be the lowest price within 5 periods
If Lowest(Low, 5) = TLLOw then begin // If Lowest(5)_S3
step2 = true;
else
Step2 = False;
Step1 = False;
end; //If Lowest(5)_E3
end; //If Step2_Step1_E2
end; //If Step2_Step1_E1
Any help appreciated
MT