+1 888 340 6572

Then: Difference between revisions

From MultiCharts
(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. ==== ...")
 
No edit summary
 
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]]