This function will change the assigned price item in a Trading Blox created Indicator dialog. To change the assigned price, this function must be executed in the SetParameters script section.
Syntax: |
---|
SetSeriesValueType( series-name, "Price-Column" ) |
Parameter: |
Description: |
---|---|
series-name |
Series name is the name of the indicator, or IPV data series where the column name of the data contains more than one data series.
For example, the WeightedAverage selected for this indicator is probably using the Close of an instrument's Price-Bar. |
"Price-Name" |
One of the four text price-names that can be used to change the price record value in an indicator series are: "Open,High,Low,Close" Be sure to place Quotation marks around the price name. |
Example: |
---|
This example needs to be used in thee SetParameter script section. |
Returns: |
---|
After the function executes, the Weighted-Average of the "High" price, instead of the previous "Close" price will be the values available in all of the element locations in this indicator. |
Links: |
---|
See Also: |
|
Edit Time: 9/18/2020 11:36:01 AM |
Topic ID#: 658 |