+1 888 340 6572

Arw New s: Difference between revisions

From MultiCharts
(Created page with "Displays an object, consisting of an up or a down arrow located at the specified bar and specified price value, on the chart that the study is based on; returns an object-spec...")
 
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Displays an object, consisting of an up or a down arrow 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.  
Displays an object, consisting of an up or a down arrow located at the specified bar and specified price value, on the chart that the study is based on.
 
Arw_New_s returns an object-specific ID number, required to further modify the object.  
   
   
==== Usage ====
== Usage ==
<syntaxhighlight>Arw_New_s (BarDate, BarTime_s, PriceValue, Direction)</syntaxhighlight>  
<syntaxhighlight>Arw_New_s(BarDate, BarTime_s, PriceValue, Direction)</syntaxhighlight>  


==== Parameters ====  
== 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  
:'''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  
:'''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  
:'''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.


Direction - a logical expression specifying the direction of the arrow; True = Down and False = Up  
:'''Direction''' - a logical expression specifying the direction of the arrow; [[True]] = Down and [[False]] = Up.
 
== Notes ==
* Use [[Arw_New_self]] and [[Arw_New_self_s]] to create an arrow on the subchart with respectively minute and seconds precision.
* Use [[Arw_New]] to draw arrows on the price chart with minute precision.
   
   
==== Example ====
== Example ==
Place, on the chart that the study is based on, an up arrow at the top of a bar if the Open price has increased incrementally over the last three bars:  
Place, on the chart that the study is based on, 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
<syntaxhighlight>If Open > Open[1] And Open[1] > Open[2] Then
Value1=Arw_New_s(Date,Time_s,High,False);</syntaxhighlight>
  Value1 = Arw_New_s(Date, Time_s, High, False);</syntaxhighlight>
 
[[Category:ArrowDrawing]]

Latest revision as of 08:56, 19 February 2012

Displays an object, consisting of an up or a down arrow located at the specified bar and specified price value, on the chart that the study is based on.

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

Usage

Arw_New_s(BarDate, BarTime_s, PriceValue, Direction)

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.
Direction - a logical expression specifying the direction of the arrow; True = Down and False = Up.

Notes

  • Use Arw_New_self and Arw_New_self_s to create an arrow on the subchart with respectively minute and seconds precision.
  • Use Arw_New to draw arrows on the price chart with minute precision.

Example

Place, on the chart that the study is based on, an up arrow 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 = Arw_New_s(Date, Time_s, High, False);