×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

End

30 bytes added, 10:59, 19 February 2012
no edit summary
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 ====
<syntaxhighlight>CS Begin
I1; I2; I3;
End;</syntaxhighlight>
Where: [[CS]] - conditional statement
[[:'''C''' - conditional statement.:'''I]] ''' - conditional instructions .
==== Example ==Notes ==If * [[Begin]] and [[End]] can be used with [[UpTrendThen]] is true then buy, otherwise sell short:[[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: <syntaxhighlight>If UpTrend = True Then Begin Buy Next Bar Market;
End
Else Begin
SellShort Next Bar Market;
End;</syntaxhighlight>
 
[[Category:Comparisons and Loops]]

Navigation menu