+1 888 340 6572

End

From MultiCharts
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Used in combination with Begin to group instructions for conditional execution; an End must always be preceded by a Begin.

Usage

CS Begin
  I1;
  I2;
  I3;
End;

Where:

C - conditional statement.
I - conditional instructions.

Notes

  • 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 (;).

Example

If UpTrend is true then buy, otherwise sell short:

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