Knowledgebase:
ChangeSymbolSettings
Posted by Mohammad Rahhal, Last modified by Angham Al-Banawien on 28 June 2018 02:19 PM

Syntax

 Function ChangeSymbolSettings(SymbolsIDs As StringOptional Name As String = “#*#”, Optional OpenDay As String = “#*#”, Optional OpenTime As String = “#*#”, Optional CloseDay As String = “#*#”, Optional CloseTime As String = “#*#”, Optional DailyCloseTime1 As String = “#*#”, Optional DailyOpenTime1 As String = “#*#”, Optional DailyCloseTime2 As String = “#*#”, Optional DailyOpenTime2 As String = “#*#”, Optional DailyCloseTime3 As String = “#*#”, Optional DailyOpenTime3 As String = “#*#”, Optional TickPips As String = “#*#”, Optional MarketIsClosed As String = “#*#”, Optional DDESource As String = “#*#”, Optional IsUsed As String = “#*#”, Optional PipLoc As String = “#*#”,Optional SymbolType As String = “#*#”, Optional RefSymbol As String = “#*#”, Optional ContractSize As String = “#*#”, Optional Direct As String = “#*#”,Optional RefCalc As String = “#*#”Optional MoveIfClosed As String = “#*#”,Optional Unit As String = “#*#”,Optional IntEnabled As String = “#*#”, Optional IntBuyRate As String = “#*#”Optional IntSellRate As String = “#*#”, Optional IntYearDays As String = “#*#”,Optional IntDayClose As String = “#*#”Optional IntSatDays As String = “#*#”, Optional IntSunDays As String = “#*#”, Optional IntMonDays As String = “#*#”, Optional IntTusDays As String = “#*#”, Optional IntWedDays As String = “#*#”, Optional IntThrDays As String = “#*#”, Optional IntFriDays As String = “#*#”, Optional StopTradeIfNoPrices As String = “#*#”, Optional StopTradeSeconds As String = “#*#”, Optional Requotable As String = “#*#”, Optional BackColor As String = “#*#”, Optional MOType As String = “#*#”,Optional PairNo As String = “#*#”,Optional Description As String = “#*#”Optional SpreadType As String = “#*#”, Optional JustClose As String = “#*#”, Optional BuyOnly As String = “#*#”, Optional ExpDate As String = “#*#”,Optional EnableDel As String = “#*#”, Optional  InterestType As String = "#*#", Optional MainUnitFactor As String = "#*#") As SymbolSettingsEnum

This function changes settings for specific symbols and return value of type SymbolSettingsEnum.

Parameters

Parameter Description 
SymbolsIDs Symbols IDs that setting will be changed that separated by commas
Name  The name for this symbol which will appear on the Market Watch, “#*#” means don’t change the current setting
OpenDay To set weekly trading time, by defining the opening day. , “#*#” means don’t change the current setting
OpenTime To set weekly trading time, by defining the opening time. , “#*#” means don’t change the current setting
CloseDay To set weekly trading time, by defining the closing day. , “#*#” means don’t change the current setting
CloseTime To set weekly trading time, by defining the closing time. , “#*#” means don’t change the current setting
DailyCloseTime1 Daily close time, “#*#” means don’t change the current setting
DailyOpenTime1 Daily open time. , “#*#” means don’t change the current setting
DailyCloseTime2 Daily close time. , “#*#” means don’t change the current setting
DailyOpenTime2 Daily open time. , “#*#” means don’t change the current setting
DailyCloseTime3 Daily close time. , “#*#” means don’t change the current setting
DailyOpenTime3 Daily open time. , “#*#” means don’t change the current setting
TickPips To define the exact number of Pips desired to be increased or decreased at the Chatting window for this symbol. And it mustn't be Null or Zero value, “#*#” means don’t change the current setting
MarketIsClosed Trade Status, “0” means open “1” means close
DDESource  Source Name, “#*#” means don’t change the current setting
IsUsed  To determine if the selected symbol is used or not.
If the symbol is used you can show it in the 
Market Watch Window “1” means True “0” means False, “#*#” means don’t change the current setting
PipLoc To set the number of decimal moving points, “#*#” means don’t change the current setting
SymbolType To set the symbol Type to be Group of symbol or not ,“#*#” means don’t change the current setting
RefSymbol To set the symbol references,“#*#” means don’t change the current setting
ContractSize The contract size which belongs to the value for standard one lot amount of the selected symbol, “#*#” means don’t change the current setting
Direct To set the Direct/Indirect ,“#*#” means don’t change the current setting.
RefCal  To set the way to calculation the reference symbol if multiplication / Division,“#*#” means don’t change the current setting
MoveIFClose Let the selected symbol prices to be moving on the Market Watch Window although the system market is closed, “1” means enable “0” means disable, “#*#” means don’t change the current setting
Unit The ID of amount type that you are using at trading, Optional Value of type is String. 
IntEnabled  Enable the interest for selected symbols “1” means enable “0” means disable
IntBuyRate  Long Swap Days, “#*#” means don’t change the current setting
IntSellRate Short Swap rate, “#*#” means don’t change the current setting
IntYearDays  Year Days, “#*#” means don’t change the current setting
IntDayClose The close time which the interest will be calculated every day , “#*#” means don’t change the current setting
IntSatDays  Saturday interest factor, “#*#” means don’t change the current setting
IntSunDays  Sunday interest factor, “#*#” means don’t change the current setting
IntMonDays  Monday interest factor, “#*#” means don’t change the current setting
IntTusDays Tuesday interest factor, “#*#” means don’t change the current setting
IntWedDays Wednesday interest factor, “#*#” means don’t change the current setting
IntThrDays Thursday interest factor, “#*#” means don’t change the current setting
IntFriDays Friday interest factor, “#*#” means don’t change the current setting
StopTradeIfNoPrices To determine if you want to stop trading at this symbol after scound value when no price,“#*#” means don’t change the current setting
StopTradeSeconds The value of second that the trade will be stopped if no price, “#*#” means don’t change the current setting
Requotable If you enable this option then when a dealer change (re-quote) an order price, a confirmation message will be sent to the client who requested the order to inform him with the new accepted price., “1” means enable “0” means disable, “#*#” means don’t change the current setting
BackColor Market Watch Back color for this symbol, “#*#” means don’t change the current setting
MOType The market order type “At Price” or “Market”, Optional Value of type is String.
 1: Means “At Price”.
 2: Means “Market”. 
 “#*#” means don’t change the current setting
PairNo The Symbol Id to be paired with source. “#*#” means don’t change the current setting
Description The symbol description,“#*#” means don’t change the current setting.
SpreadType The spread calculation type”From bid/From average”. Optional value of type is String.
 1: Means From bid.
 2: means From average.
.“#*#” means don’t change the current setting.
JustClose If you set this option to "0" then your clients can be trading with buy & sell orders on this symbol.
And if you set it to “1”, then you will force the clients to only close their positions of this symbol
BuyOnly If you set this option to "0" then your clients can start trading with buy & sell orders on this symbol.
And if you set it to "1" then you will force the clients to set only buy orders for the first trade on this symbol, “#*#” means don’t change the current setting
ExpDate Set an expiry date for this symbol, “#*#” means don’t change the current setting
InterestType To set the interest type  , Optional value of type String “#*#” means don’t change the current setting, can be one of the following :
0: Swap by Interest.
1: Swap by Point.
2: Swap by Money.
MainUnitFactor To set the main unit factor ,Optional value of type String “#*#” means don’t change the current.

 


See Also


VertexFX Backoffice API Index

(1 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
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