SellThreshold Property

Top  Previous  Next

Syntax:

 

value = object.SellThreshold

 

or

 

object.SellThreshold = value

 

 

Part

Description

value

A variant type variable in the user program which receives or sets numerical threshold used by formula in a trading strategy to decide whether to sell or not.

object

The name of an object (or an object expression) that evaluates to an object of ChaosHunter_Runtime.DLL class.

 

The property is valid only if loaded model represents a trading strategy.

 

After model is loaded using OpenModel method, the SellThreshold property returns a value used by ChaosHunter during model optimization. The property is read/write meaning that you can set a different sell threshold before calling the Predict method if you feel that the new sell threshold may work better.