https://sites.google.com/site/hongkongprogramtrade/download
使用說明:。。。
How to integrate to automatic trading software (Metatrader or Excel etc) by command call ?
Command Line : SPDemo.exe QUICK,BUY,HSIG2,1,10
Description : Issue Quick Order BUY HSIG2 Qty=1, Hit Ticks=10.
Command Line : SPDemo.exe QUICK,SELL,HSIG2,21050,1,30
Description : Issue Quick Order SELL HSIG2 Qty=1, Hit Ticks=30.
Command Line : SPDemo.exe NORMAL,BUY,HSIG2,21050,1
Description : Issue Limited Order BUY HSIG2 at 21050 Qty=1.
Command Line : SPDemo.exe ENHANCEDSTOP,SELL,HSIG2,2,21050,10,25
Description : Issue Enhanced Stop Order SELL HSIG2 Qty=2, Level=21050, Toler=10, Step=25.
Command Line : SPDemo.exe OCO,BUY,HSIG2,21000,1,21100,10
Description : Issue OCO Order BUY HSIG2 Price=21000, Qty=1, Stop=21100, Toler=10.
Command Line : SPDemo.exe BULLBEAR,BUY,HSIG2,21000,1,100,50,10
Description : Issue Bull & Bear Order BUY HSIG2 Price=21000, Qty=1, Profit=100, Loss=50, Toler=10.
Command Line : SPDemo.exe DELETEORDER
Description : Delete all issued but not traded orders.
Command Line : SPDemo.exe GETORDER
Description : Get order trading status and save to text file.
Command Line : SPDemo.exe OPENSP,yourSPpassword
Description : Automatic open SPTrader and login.
Limitation in real SP account :
In Quick Order default hit ticks is -100,
When issue "Limited Order", the inactive function will be checked,
all those limitation are free on Demo SP account.
for register demo account, please go to http://www.sharppoint.com.hk
How to call from excel macro?
Dim Myapp
Myapp = Shell("C:\Program Files\SPPluginDemo\SPPluginDemo\SPDemo.exe QUICK,BUY,HSIG2,1,10", 1)