BuyThreshold Property

Top  Previous  Next

Syntax:

 

value = object.BuyThreshold

 

or

 

object.BuyThreshold = 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 buy 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 BuyThreshold property returns a value used by ChaosHunter during model optimization. The property is read/write meaning that you can set a different buy threshold before calling the Predict method if you feel that the new buy threshold may work better.