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 |
Real amount of money a client has in his account., value of type Double |
FltPL |
The profit/loss the client gains or looses respectively , Value of type Double. |
Credit |
An amount of money put to the account of a certain client in order to be a paid later, value of type Double |
equity |
This equals to Balance + FLT P/L + Credit,value of type Double. |
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, value of type Double |
margin
Level
|
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 + MarginReq , value of type Double. |
Return value
Returns value of type CallingResultsEnum. If the request sent to the server successfully it will return SuccessResult
Sample
Public Sub main()
Dim balance, FltPL, credite, equity, marginReq, marginLevel, EFFmargine As Double
Dim result As VTLGeneral.CallingResultsEnum
Result = 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
Back to VTL Server Script Index
|