Changes
Jump to navigation
Jump to search
<syntaxhighlight>[[Begin</syntaxhighlight> ]] should not be followed by a semicolon (;), code lines within an instruction group should end with a semicolon (;), and only the last instance of <syntaxhighlight>[[End</syntaxhighlight> ]] within the same conditional execution statement should be followed by a semicolon (;).
<syntaxhighlight>End;</syntaxhighlight>
Begin
,no edit summary
Used in combination with <syntaxhighlight>[[End</syntaxhighlight> ]] to group instructions for conditional execution; a <syntaxhighlight>[[Begin</syntaxhighlight> ]] must always be followed by an <syntaxhighlight>[[End.</syntaxhighlight> ]] <syntaxhighlight>[[Begin</syntaxhighlight> ]] and <syntaxhighlight>[[End</syntaxhighlight> ]] can be used with <syntaxhighlight>[[Then, Else, For,</syntaxhighlight> ]] and <syntaxhighlight>[[While</syntaxhighlight> ]] conditional statements.
==== Usage ====
<syntaxhighlight>CS Begin</syntaxhighlight>
I1;
I2;
I3;
Where: <syntaxhighlight>[[CS</syntaxhighlight> ]] - conditional statement
I - conditional instructions
If UpTrend is true then buy, otherwise sell short:
<syntaxhighlight>If</syntaxhighlight> UpTrend <syntaxhighlight>Then Begin
Buy Next Bar Market;
End