Text New

From MultiCharts
Revision as of 13:46, 25 January 2012 by 194.84.116.138 (talk) (Created page with "Displays a text object, consisting of the specified string expression located at the specified bar and specified price value, on the chart that the study is based on; returns ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Displays a text object, consisting of the specified string expression located at the specified bar and specified price value, on the chart that the study is based on; returns an object-specific ID number, required to modify the object.

Usage

Text_New (BarDate, BarTime, 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 - a numerical expression specifying the time of the bar at which the object is to be placed; the time is indicated in the 24-hour HHmm format, where 1300 = 1: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

Example Place, on the chart that the study is based on, the text "UpT" at the top of a bar if the Open price has increased incrementally over the last three bars:

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