Determines the accessibility of trade operations and data.


SYNTAX


public bool IsAllowed (Function rule)


PARAMETERS


rule — Function

Operation's code


RETURN


bool Returns true when the specified operation is allowed for this user


EXAMPLE


The example below shows the possibility of setting up the Stop loss and Take profit:

public override void Init()
{
  Account my = Accounts.Current;
    Print(my.IsAllowed(Function.SLTP));    
}