Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 14 September 2020 12:34 PM


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


This function used to returns a summary of the Selected account details.


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.



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



This equals to (Equity/MarginReq) *100% (The bigger number ,the better) , value of type Double



Called also Free Margin which equals to Equity + MarginReq , value of type Double.

Return value

Returns value of type CallingResultsEnumIf the request sent to the server successfully it will return SuccessResult 


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

(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions