End

From MultiCharts
Revision as of 12:31, 18 January 2012 by 194.84.116.138 (talk) (Created page with "Used in combination with Begin to group instructions for conditional execution; an End must always be preceded by a Begin. Begin and End can be used with [...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Used in combination with Begin to group instructions for conditional execution; an End must always be preceded by a Begin. Begin and End can be used with Then, Else, For, and While conditional statements.

Only the last instance of End within the same conditional execution statement should be followed by a semicolon (;).

Usage

CS Begin
I1;
I2;
I3;
End;

Where: CS - conditional statement

I - conditional instructions

Example

If UpTrend is true then buy, otherwise sell short:

If UpTrend Then Begin
Buy Next Bar Market;
End
Else Begin
SellShort Next Bar Market;
End;