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.

 
'  In this example, the WeightedAverage indicator is using
'  the close of the price-bar to determine a Weighted-Average result.
'  The user wants to see how the High of the price-bar would
'  effect how the system responds.
SetSeriesValueType( WeightedAverage, "High")
 

 

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:

Creating Indicators, SetParameters, SetParameters Methods

See Also:

 

 


Edit Time: 9/18/2020 11:36:01 AM


Topic ID#: 658

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software