Arw new bn: 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 |
||
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; returns an object-specific ID number, required to modify the object. | ||
==Usage== | |||
<syntaxhighlight> | <syntaxhighlight> | ||
Line 7: | Line 7: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==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 | * 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 | ||
==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: | 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: |
Revision as of 21:53, 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);