hello, anyone can help me I have this code that crashes at compile time
IF MINLIST (B1, B2, B3) <99999 then begin
IF B1 <= B1 AND B2 <= B3 then begin
BUY ("RbUP LE") B1 stop;
end else begin
IF B2 <= B3 THEN BEGIN
BUY ("Rlev LE") B2 stop;
end else begin
BUY ("Break LE") B3 stop;
END;
END;
END;
if t> = notaft and t <> sess1endtime then begin
if marketposition = -1 then
BUYTOCOVER ("exit SX") + entryprice MyStop stop;
if marketposition = 1 then
SELL ("Exit LX") entryprice MyStop-stop;
SELL ("Late SX") high + 0:05 stop;
BUYTOCOVER ("Late LX") Low - 0:05 stop;
end;
Study: B-R (Signal)
Please wait ....
------ Compiled with error (s): ------
syntax error, expecting 'stop', 'limit', 'contracts', or 'shares'
line 124, column 15
syntax error powerlanguage
- furytrader
- Posts: 354
- Joined: 30 Jul 2010
- Location: Chicago, IL
- Has thanked: 155 times
- Been thanked: 217 times
Re: syntax error powerlanguage
Your problem is that you haven't used the correct syntax when it comes to entering orders.
For example, you've written:
... when you should use something more like ...
For example, you've written:
Code: Select all
BUY ("RbUP LE") B1 stop;
Code: Select all
BUY ("RbUP LE") 1 Contract Next Bar At B1 stop;