This little code does not compile
All variables as been define
Probably a problem with "end;" somwhere. Many minutes to look around without succees.
Code: Select all
If Close > UpperBand then Begin
If PowerTrendL then Begin
WaitTouchMidLineL= True; // A P.trend, A more p. trend. Wait for the price to touch the middline
MessageString = MessageString + "// Wait to touch the mid Line ";
end
else Begin
powertrendL = True;
End;
else begin
PowerTrendL = False;
end;
end;