Syntax
Public Function AccountSummaries(ByRef balance As Double, ByRef FltPL As Double, ByRef credit As Double, ByRef equity As Double, ByRef marginReq As Double, ByRef marginLevel As Double, ByRef EffMargin As Double) As CallingResultsEnum
Description
This function used to returns a summary of the Selected account details.
Parameters
Parameter | Description |
Balance | |
The profit/loss the client gains or looses |
|
Credit | An amount of money put to the account of a certain client in order to be a paid later, |
equity | This equals to Balance + FLT P/L + Credit |
margin Req. |
Called also Used Margin which is the amount of money that can client afford in his account to buy 1 lot of certain currency, |
|
This equals to (Equity/MarginReq) *100% (The bigger number ,the better) , value of type Double |
Eff Margin |
Called also Free Margin which equals to Equity + |
Return value
Returns value of typeCallingResultsEnum.If the request sent to the server successfully it will returnSuccessResult
Sample
Public Sub main()Dim balance, FltPL, credite, equity, marginReq, marginLevel, EFFmargine As DoubleDim result As VTLGeneral.CallingResultsEnumResult = ClientCode.AccountSummaries (balance, FltPL, credite, equity, marginReq, marginLevel, EFFmargine)GUI.MsgDialog("balance : " & balance.Tostring & " , FltPL : " & FltPL.Tostring & " , credite : " & credite.Tostring & " , equity : " & equity.Tostring & " , marginReq : " & marginReq.Tostring & " , marginLevel : " & marginLevel.Tostring & " , EFFmargine" & EFFmargine.Tostring)End Sub
See Also