×

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.

Difference between revisions of "Text New self s" - MultiCharts
Open main menu

Difference between revisions of "Text New self s"

(Created page with "Displays a text object, consisting of the specified string expression located at the specified bar and specified price value, on the SubChart containing the study; returns an ...")
 
m (Reverted edits by 176.8.90.7 (talk) to last revision by JoshM)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Displays a text object, consisting of the specified string expression located at the specified bar and specified price value, on the SubChart containing the study; returns an object-specific ID number, required to modify the object.  
+
Displays a text object, consisting of the specified string expression located at the specified bar and specified price value, on the SubChart containing the study.
 +
 
 +
Text_New_self_s returns an object-specific ID number, required to modify the object.  
 
   
 
   
==== Usage ====
+
== Usage ==
<syntaxhighlight>Text_New_self_s (BarDate, BarTime_s, PriceValue,"Text")</syntaxhighlight>  
+
<syntaxhighlight>Text_New_self_s (BarDate, BarTime_s, PriceValue, "Text")</syntaxhighlight>  
 +
 
 +
== Parameters ==
 +
:'''BarDate''' - a numerical expression specifying the date of the bar at which the object is to be placed; the date is indicated in the ''YYYMMdd'' format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month.
 +
 
 +
:'''BarTime_s''' - a numerical expression specifying the time of the bar, including seconds, at which the object is to be placed; the time is indicated in the 24-hour ''HHmmss'' format, where 130000 = 1:00:00 PM.
  
==== Parameters ====
+
:'''PriceValue''' - a numerical expression specifying the price value (vertical position, corresponding to a value on the price scale of a chart), where the object is to be placed.
[[BarDate]] - a numerical expression specifying the date of the bar at which the object is to be placed; the date is indicated in the YYYMMdd format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month
 
  
[[BarTime_s]] - a numerical expression specifying the time of the bar, including seconds, at which the object is to be placed; the time is indicated in the 24-hour HHmmss format, where 130000 = 1:00:00 PM
+
:'''Text''' - the string expression to be displayed.
  
[[PriceValue]] - a numerical expression specifying the price value (vertical position, corresponding to a value on the price scale of a chart), where the object is to be placed
+
== Notes ==
 +
* See [[Text_New_self]] for placing a text on a SubChart with minutes precision.
 +
* See [[Text_New]] and [[Text_New_s]] to place text on the (price) chart.
  
[[Text]] - the string expression to be displayed
+
== Example ==
 
==== Example ====
 
 
Place, on the SubChart containing the study, the text "UpT" at the points of the plot where the Open price has increased incrementally over the last three bars:  
 
Place, on the SubChart containing the study, the text "UpT" at the points of the plot where the Open price has increased incrementally over the last three bars:  
  
 
<syntaxhighlight>Plot1(Close);
 
<syntaxhighlight>Plot1(Close);
If Open>Open[1] And Open[1]>Open[2] Then
 
Value1=Text_New_self_s(Date,Time_s,High,"UpT");</syntaxhighlight>
 
  
 +
If Open > Open[1] And Open[1] > Open[2] Then
 +
  Value1=Text_New_self_s(Date, Time_s, High, "UpT");</syntaxhighlight>
  
 
[[Category:Text Drawing]]
 
[[Category:Text Drawing]]

Latest revision as of 12:43, 13 February 2012

Displays a text object, consisting of the specified string expression located at the specified bar and specified price value, on the SubChart containing the study.

Text_New_self_s returns an object-specific ID number, required to modify the object.

Contents

Usage

Text_New_self_s (BarDate, BarTime_s, PriceValue, "Text")

Parameters

BarDate - a numerical expression specifying the date of the bar at which the object is to be placed; the date is indicated in the YYYMMdd format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month.
BarTime_s - a numerical expression specifying the time of the bar, including seconds, at which the object is to be placed; the time is indicated in the 24-hour HHmmss format, where 130000 = 1:00:00 PM.
PriceValue - a numerical expression specifying the price value (vertical position, corresponding to a value on the price scale of a chart), where the object is to be placed.
Text - the string expression to be displayed.

Notes

Example

Place, on the SubChart containing the study, the text "UpT" at the points of the plot where the Open price has increased incrementally over the last three bars:

Plot1(Close);

If Open > Open[1] And Open[1] > Open[2] Then
   Value1=Text_New_self_s(Date, Time_s, High, "UpT");