Click or drag to resize

Order Methods

A SharpScript Strategy handles the order routing in 2 (two) ways. The 'Managed' method and the 'Unmanaged' method. Which method user will take can be defined via the IsUserManaged property. If set to false, which is the default value, the orders submitted by a strategy will be guided by the internal order handling rules as defined in ArthaChirta. However if set to true then user has complete control on how the orders are managed.

Please click on the relevent links to know more about the various methods.

Note: The IsUserManaged method must be set when the Strategy is in Initialize State

protected override void OnStateChange()
{
    switch (base.State)
    {
        case State.Initialize:
            base.IsUserManaged = true;
            break;

        //other codes
    }
}