Usage:
qdmcli.exe
qdmcli.exe license=xxxx
qdmcli.exe -command [options]
-------------------------------------------
-symbol Manage symbols.
-------------------------------------------
Arguments:	
	action: Performs the specific action [list,add,edit,delete,clear]
	symbols: List of symbols
	instrument: (optional) Symbol instrument
	bartype: (optional) Bar type [startofbar, endofbar] (startofbar)
	datatype: (optional) Data type, [M1,TICK] (M1)
	datasource: (optional) Data source, [dukascopy,file,darwinex,crypto,yahoo] (dukascopy)
	exchange: (optional) Exchange, [#CryptoExchanges#] (Binance)
	timeframe: (optional) Imported timeframe [#AvailableTimeframes#]
	postfix: (optional) Data postfix
	broker: (optional) Name of broker (SQ Default)
Example:
	qdmcli.exe -symbol action=list
	qdmcli.exe -symbol action=add symbols=EURUSD,GBPUSD datasource=dukascopy datatype=TICK
	qdmcli.exe -symbol action=add symbols=ETHBTC datasource=crypto exchange=Binance timeframe=D1
	qdmcli.exe -symbol action=add symbols=EURUSD,GBPUSD datasource=darwinex datatype=M1
	qdmcli.exe -symbol action=add symbols=EURUSD datasource=darwinex datatype=M1 broker=[[Darwinex]]
	qdmcli.exe -symbol action=edit symbol=EURUSD name=EURUSD_OLD
	qdmcli.exe -symbol action=delete symbols=EURUSD,GBPUSD	
	qdmcli.exe -symbol action=clear symbols=EURUSD,GBPUSD
-------------------------------------------
-instrument Manage instruments.
-------------------------------------------
Arguments:	
	action: Performs the specific action [list,add,edit,delete]
	instrument: Instrument to add
	description: (optional) Instrument description
	pointvalue: (optional) Point value (100000)
	ticksize: (optional) Pip/Tick size (0.0001)
	tickstep: (optional) Pip/Tick step (0.00001)
	defaultspread: (optional) Default spread (2)
	datatype: (optional) Data type, [stock,futures,forex,cfds,etf,index,crypto] (forex)
	commissions: (optional) Commissions	
	minDistance: (optional) Minimal distance (0)
	swap: (optional) Swap
	orderSizeMultiplier: (optional) Order size multiplier (1)
	orderSizeStep: (optional) Order size step (1)
	broker: (optional) Name of broker (SQ Default)
Example:
	qdmcli.exe -instrument action=list
	qdmcli.exe -instrument action=add instrument=EURUSD
	qdmcli.exe -instrument action=edit instrument=EURUSD datatype=forex
	qdmcli.exe -instrument action=delete instruments=EURUSD
-------------------------------------------
-data Manage data.
-------------------------------------------
Arguments:	
	action: Performs the specific action [update,import,export,exportToMT4,exportToMT5,clone,timezones]
	symbol: Symbol to import	
	filepath: Path of file
	filename: Name of file
	instrument: (optional)Symbol instrument
	bartype: (optional)Bar type [startofbar, endofbar]
	errorhandling: (optional)Data errors handling [stop,ignore]
	timezone: (optional) Timezone. To list the available timezones, use command -tz [Etc/UCT, Europe/London, America/New_York...] 
	timeframe: (optional) Imported timeframe [auto,Intraday,TICK,M1,M5,M15,M30,H1,H4,D1]
	datefrom: (optional) Date from in format 'yyyy.MM.dd'
	dateto: (optional) Date to in format 'yyyy.MM.dd'
	outputdir: (optional) Target directory
	prefix: (optional) File prefix
	format: (optional) Format, [#ExportAvailableCsvFormats#] (MetaTrader4 bar format)
	cIncludeHeader: (optional - only for Custom format) Include header
	cHeader: (optional - only for Custom format) Header format
	cFormat: (optional - only for Custom format) Format definitio
	postfix: (optional) Data postfix (_{timeframe}_{cloneTime})
	removeWeekends: (optional) Remove weekends [true,false] (false)
	hours: (optional) Fixed shift in hours [stop,ignore]
	appPath: MT4 Installation folder
	dataPath: MT4 Data folder
	serverName: Server name
	mt4Symbol: Symbol from MT4 data specification file
	mt4SymbolName: Name in MT4
	spreadType: Spread type [points,pips,real]
	spreadValue: Spread in points/pips
	
Example:
	qdmcli.exe -data action=update
	qdmcli.exe -data action=update symbols=GBPUSD_M1
	qdmcli.exe -data action=import symbol=EURUSD instrument=EURUSD filepath=C:/data/EURUSD.csv
	qdmcli.exe -data action=export symbols=EURUSD_M1,GBPUSD_M1 timeframe=M1 datefrom=2018.01.01 dateto=2018.12.31 outputdir=C:/data
	qdmcli.exe -data action=export symbols=EURUSD_M1 timeframe=M1 format=Custom cFormat=[Date:yyyy.MM.dd],[Time:HH:mm],[Open],[High],[Low],[Close],[Volume] outputdir=C:/data
	qdmcli.exe -data action=export symbols=EURUSD_M1 timeframe=M1 format=Custom cIncludeHeader=true cHeader=Date,Time,Open,High,Low,Close,Volume cFormat=[Date:yyyy.MM.dd],[Time:HH:mm],[Open],[High],[Low],[Close],[Volume] outputdir=C:/data
	qdmcli.exe -data action=clone symbols=AUDCAD hours=8
	qdmcli.exe -data action=timezones
	qdmcli.exe -data action=exportToMT4 symbol=EURUSD timeframe=M1 appPath=C:/mt4 dataPath=C:/Users/Tomas/AppData/Roaming/MetaQuotes/Terminal/BB190E062770E27C3E79391AB0D1A117 serverName=Demo
	qdmcli.exe -data action=exportToMT4 symbol=EURUSD timeframe=M1 appPath=C:/mt4 dataPath=C:/Users/Tomas/AppData/Roaming/MetaQuotes/Terminal/BB190E062770E27C3E79391AB0D1A117 serverName=Demo mt4Symbol=EURUSD mt4SymbolName=EURUSD
	qdmcli.exe -data action=exportToMT5 symbol=EURUSD timeframe=Tick
	qdmcli.exe -data action=exportToMT5 symbol=EURUSD timeframe=M1 spreadType=points spreadValue=2 datefrom=2018.01.01 dateto=2018.12.31 outputdir=C:/data filename=EURUSD
-------------------------------------------
-run Runs commands from the file.
-------------------------------------------
Arguments:	
	file: Path of the file
Example:
	qdmcli.exe -run file=C:/data/commands.txt
-------------------------------------------
-gui Starts webserver to access GUI remotely.
-------------------------------------------
Example:
	qdmcli.exe -gui
-------------------------------------------
-deletefile Deletes the specific file.
-------------------------------------------
Arguments:
	file: Path of the file or folder
Example:
	qdmcli.exe -deletefile file=C:/reports/evaluate.txt
-------------------------------------------
-waitfor Waits for user/file
-------------------------------------------
Arguments:
	action: Waits for action [user,file]
	file: Path of the file or folder
Example:
	qdmcli.exe -waitfor action=user
	qdmcli.exe -waitfor action=file file=C:/reports/controlfile.txt
-------------------------------------------
-execute Calls external script
-------------------------------------------
Arguments:
	file: Path of the script
Example:
	qdmcli.exe -execute file=C:/reports/evaluate.bat
	qdmcli.exe -waitfor 
-------------------------------------------
> Redirects output to a file
-------------------------------------------
Example:
	qdmcli.exe -symbol action=list > "C:/reports/output.log"
-------------------------------------------
-license Manage license
-------------------------------------------
Arguments:
	action: Performs the specific action [info,update]
	code: (optional) License code
Example:
	qdmcli.exe -license action=info
	qdmcli.exe -license action=update code=xxxxx
-------------------------------------------
-exit Exit.
-------------------------------------------
Example:
	qdmcli.exe -exit