This function is used to set the value in the instrument.customSortValue property.  

 

When a value is given to each instrument the portfolio, those custom values can be sorted to change the order in which the instruments in the portfolio are sequenced.

 

Syntax:

instrument.SetCustomSortValue( value )

 

Parameter:

Description:

value

Any positive or negative number.

 

Example:

'  Assign RSI value 23
instrument.SetCustomSortValue( RSI )
 
'  Sort Portfolio
system.SortInstrumentList ( 4 )

Returns:

RSI value of 23 will be available in instrument's where the RSI value of 23 was assigned.

 

Links:

Accessing System Portfolio Instruments, Ranking Functions, Ranking Properties

See Also:

 

 


Edit Time: 9/25/2017 09:09:58 AM


Topic ID#: 540

 

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