Anonymous user
Begin: Difference between revisions
From MultiCharts
no edit summary
(Created page with "Used in combination with <syntaxhighlight>End</syntaxhighlight> to group instructions for conditional execution; a <syntaxhighlight>Begin</syntaxhighlight> must always be foll...") |
No edit summary |
||
Line 1: | Line 1: | ||
Used in combination with | Used in combination with [[End]] to group instructions for conditional execution; a [[Begin]] must always be followed by an [[End.]] | ||
[[Begin]] and [[End]] can be used with [[Then, Else, For,]] and [[While]] conditional statements. | |||
[[Begin]] should not be followed by a semicolon (;), code lines within an instruction group should end with a semicolon (;), and only the last instance of [[End]] within the same conditional execution statement should be followed by a semicolon (;). | |||
==== Usage ==== | ==== Usage ==== | ||
<syntaxhighlight>CS Begin | <syntaxhighlight>CS Begin | ||
I1; | I1; | ||
I2; | I2; | ||
I3; | I3; | ||
End;</syntaxhighlight> | |||
Where: | Where: [[CS]] - conditional statement | ||
I - conditional instructions | I - conditional instructions | ||
Line 17: | Line 17: | ||
If UpTrend is true then buy, otherwise sell short: | If UpTrend is true then buy, otherwise sell short: | ||
<syntaxhighlight>If | <syntaxhighlight>If UpTrend Then Begin | ||
Buy Next Bar Market; | Buy Next Bar Market; | ||
End | End |