Difference between revisions of "Then"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Used in combination with If to form a conditional statement that executes specific instructions if a logical expression is true. For more information see If. ==== ...")
 
 
Line 1: Line 1:
 
Used in combination with [[If]] to form a conditional statement that executes specific instructions if a logical expression is true.
 
Used in combination with [[If]] to form a conditional statement that executes specific instructions if a logical expression is true.
  
For more information see [[If.]]
+
== Usage ==
 
==== Usage ====
 
 
<syntaxhighlight>If E Then I</syntaxhighlight>
 
<syntaxhighlight>If E Then I</syntaxhighlight>
  
Where: [[E]] - a true/false expression
+
Where:  
  
[[I]] - conditional instructions
+
:'''E''' - a true/false expression.
 +
:'''I''' - conditional instructions.
  
==== Example ====
+
== Notes ==
If [[UpTrend]] is false then sell:  
+
* For more information see [[If]].
 +
 
 +
== Example ==
 +
If ''UpTrend'' is false then sell:  
  
 
<syntaxhighlight>If UpTrend=False Then Sell Next Bar Market;</syntaxhighlight>  
 
<syntaxhighlight>If UpTrend=False Then Sell Next Bar Market;</syntaxhighlight>  
 
   
 
   
 
[[Category:Comparisons and Loops]]
 
[[Category:Comparisons and Loops]]

Latest revision as of 11:00, 19 February 2012

Used in combination with If to form a conditional statement that executes specific instructions if a logical expression is true.

Usage

If E Then I

Where:

E - a true/false expression.
I - conditional instructions.

Notes

  • For more information see If.

Example

If UpTrend is false then sell:

If UpTrend=False Then Sell Next Bar Market;