Difference between revisions of "Then"
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. | ||
− | + | == Usage == | |
− | |||
− | |||
<syntaxhighlight>If E Then I</syntaxhighlight> | <syntaxhighlight>If E Then I</syntaxhighlight> | ||
− | Where: | + | Where: |
− | + | :'''E''' - a true/false expression. | |
+ | :'''I''' - conditional instructions. | ||
− | ==== | + | == Notes == |
− | If | + | * 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;