Saturday, January 27, 2018

Brokerage fee comparison at a glance - Hong Kong


Trading Value and brokage fee in HKD
BrokerMinimumRate5,00010,000100,000
Bank of China (Gold
Star)
1000.200%100.00100.00200.00
Bank of East Asia
Supreme Gold
800.250%80.0080.00250.00
Bright Smart500.067%50.0050.0066.80
China Construction Bank00.180%9.0018.00180.00
Citigold1000.200%100.00100.00200.00
DBS Treasures00.250%12.5025.00250.00
Fubon Bank800.250%80.0080.00250.00
Hang Seng Bank1000.250%100.00100.00250.00
HSBC1000.250%100.00100.00250.00
Interactive Brokers180.080%18.0018.0080.00
SHK direct880.138%88.0088.00138.00
Standard Chartered Bank00.200%10.0020.00200.00

WinnerChina Construction BankChina Construction Bank &
Interactive Brokers
Bright Smart
Fee9.0018.0066.80

Additional cost
– SFC Transaction Levy 0.0027% of the transaction amount
– Stock Exchange Trading Fee 0.005% of the transaction amount
- Stamp Duty 0.1% of the transaction amount
Date: 1/27/2018



Wednesday, January 24, 2018

Listing all tables in a database and their row counts and sizes



CREATE TABLE #RowCountsAndSizes (TableName NVARCHAR(128),rows CHAR(11),     
       reserved VARCHAR(18),data VARCHAR(18),index_size VARCHAR(18),
       unused VARCHAR(18))

EXEC       sp_MSForEachTable 'INSERT INTO #RowCountsAndSizes EXEC sp_spaceused ''?'' '

SELECT     TableName,CONVERT(bigint,rows) AS NumberOfRows,
           CONVERT(bigint,left(reserved,len(reserved)-3)) AS SizeinKB
FROM       #RowCountsAndSizes
ORDER BY   NumberOfRows DESC,SizeinKB DESC,TableName

DROP TABLE #RowCountsAndSizes


Source: https://www.sqlmatters.com/Articles/Listing%20all%20tables%20in%20a%20database%20and%20their%20row%20counts%20and%20sizes.aspx

Applying SMA10/20, SMA20/50 as trading signals

This is the comparison for results before and after applying SMA10/20 and SMA20/50 in the stock trader. Background Trading 3 stock ma...