×

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.

Changes - MultiCharts
Open main menu

Changes

Arw New self s

372 bytes added, 08:37, 19 February 2012
no edit summary
Displays an object, consisting of an up or a down arrow located at the specified bar and specified price value, on the '''SubChart ''' containing the study; . Arw_New_self_s returns an object-specific ID number, required to modify the object.
==== Usage ====<syntaxhighlight>Arw_New_self_s (BarDate, BarTime_s, PriceValue, Direction)</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.
==== Parameters ==== BarDate :'''BarTime_s''' - a numerical expression specifying the date time of the bar , including seconds, at which the object is to be placed; the date time is indicated in the YYYMMdd 24-hour ''HHmmss'' format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month 130000 = 1:00:00 PM.
BarTime_s :'''PriceValue''' - a numerical expression specifying the time price value (vertical position, corresponding to a value on the price scale of the bara chart), including seconds, at which where the object is to be placed; the time is indicated in the 24-hour HHmmss format, where 130000 = 1:00:00 PM .
PriceValue :'''Direction''' - a numerical logical expression specifying the price value (vertical position, corresponding to a value on the price scale direction of a chart), where the object is to be placed arrow; [[True]] = Down and [[False]] = Up.
Direction - a logical expression specifying == Notes ==* Use [[Arw_New_self]] to create an arrow on the subchart with minute precision.* Use [[Arw_New]] and [[Arw_New_s]] to draw arrows on the direction of price chart.* See the category [[:Category:Date_and_Time_Routines|Date and Time Routines]] for the arrow; True = Down PowerLanguage keywords for working with dates and False = Up times.
==== Example ====
Place, on the SubChart containing the study, an up arrow at the top of a bar if the Open price has increased incrementally over the last three bars:
<syntaxhighlight>If Open>Open[1] And Open[1]>Open[2] Then Value1=Arw_New_self_s(Date,Time_s,High,False);</syntaxhighlight>  
[[Category:ArrowDrawing]]