Difference between revisions of "TrueFalse"

From MultiCharts
Jump to navigation Jump to search
m
 
Line 1: Line 1:
 
Used in function input declaration statements to define an input as true/false.  
 
Used in function input declaration statements to define an input as true/false.  
Input defined as true/false can be used both as a true/false Simple as well as a true/false Series input; the value of a Simple input is constant from bar to bar and thus has no history, while the value of a Series input may vary from bar to bar and can be referenced historically.
 
 
==== Usage ====
 
<syntaxhighlight>Input:InputName(TrueFalse)</syntaxhighlight>
 
 
Where: [[InputName]] - an expression specifying the input name
 
 
The name can consist of letters, underscore characters, numbers, and periods.
 
  
The name cannot begin with a number or a period and is not case-sensitive.  
+
Input defined as true/false can be used both as a ''True/False Simple'' as well as a ''True/False Series'' input; the value of a Simple input is constant from bar to bar and thus has no history, while the value of a Series input may vary from bar to bar and can be referenced historically.  
 
   
 
   
==== Example ====
+
== Usage ==
Declare Overnight as a true/false function input:
+
<syntaxhighlight>Input: InputName(TrueFalse)</syntaxhighlight>
  
<syntaxhighlight>Input:Overnight(TrueFalse);</syntaxhighlight>
+
Where:
 +
:'''InputName''' - an expression specifying the input name. The name can consist of letters, underscore characters, numbers, and periods. The name ''cannot'' begin with a number or a period and is not case-sensitive.
 
   
 
   
 +
== Example ==
 +
Declare ''Overnight'' as a true/false function input:
  
 +
<syntaxhighlight>Input: Overnight(TrueFalse);</syntaxhighlight>
  
 
[[Category:Declaration]]
 
[[Category:Declaration]]

Latest revision as of 06:04, 8 April 2013

Used in function input declaration statements to define an input as true/false.

Input defined as true/false can be used both as a True/False Simple as well as a True/False Series input; the value of a Simple input is constant from bar to bar and thus has no history, while the value of a Series input may vary from bar to bar and can be referenced historically.

Usage

Input: InputName(TrueFalse)

Where:

InputName - an expression specifying the input name. The name can consist of letters, underscore characters, numbers, and periods. The name cannot begin with a number or a period and is not case-sensitive.

Example

Declare Overnight as a true/false function input:

Input: Overnight(TrueFalse);