Shares Property

Top  Previous  Next

Syntax:

 

value = object.Shares

 

or

 

object.Shares = value

 

 

Part

Description

value

A variant type variable in the user program which receives or sets number of shares used by formula in a trading strategy to compute system equity.

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 Shares property returns a value used by ChaosHunter during model optimization. The property is read/write so you can set a different number of shares before calling the Predict method. The number of shares value does not affect how trading signals are generated. However, it does influence the final system equity value.