Difference between revisions of "Arw new bn"

From MultiCharts
Jump to navigation Jump to search
 
Line 8: Line 8:
  
 
==Parameters==
 
==Parameters==
* Bar_DateTime - a numerical expression specifying the number of the bar counting from the first bar on the chart.
+
:'''Bar_DateTime''' - a numerical expression specifying the number of the bar counting from the first bar on the chart.
* 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
+
:'''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
  
 
==Example==
 
==Example==

Latest revision as of 21:57, 27 February 2017

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.

Usage

Arw_New_bn (Barnumber, PriceValue, Direction);

Parameters

Bar_DateTime - a numerical expression specifying the number of the bar counting from the first bar on the chart.
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

Example

Place, on the chart that the study is based on, an up arrow at the top of a bar number 100 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_bn(100,High,False);