资源描述:
《文华赢智程序化交易(wh)编程函数手册(mandarin winning program trading (wh) programming function manual)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、文华赢智程序化交易(wh3)编程函数手册(Mandarinwinningprogramtrading(wh3)programmingfunctionmanual)ThispaperiscontributedbyfuturestrainingschoolsPdfdocumentsmayexperiencepoorbrowsingontheWAPside.ItisrecommendedthatyoufirstselectTXT,ordownloadthesourcefiletothelocalview.Winintelligencealgorithmtransa
2、ctionprogrammingfunctionmanual?WH3programmingmanualI.quotingdata,currentpriceofacontract.Price?(Code)returnsthecurrentpricecontract?Code,Codeforthecasesofacontractcontractcode:VAR??price?//defineavariable?Price?Price=Price("m1009")??//pricevalueofcontract?M1009?Thecurrentpriceofacu
3、rrentpricecontract.AvPrice(Code)??returncontract?ThecurrentpriceofCode,Codeforthecasesofacontractcontractcode:VAR??avprice?//defineavariable?Avprice?Avprice=AvPrice("m1009")??//pricevalueofcontract?M1009?Thecurrentpriceofacontractisthemostexpensive.High?(Code)toreturnthecontract?Co
4、dethemostexpensive,Codeisacontract:contractcodewithVAR??high?//defineavariable?High?High=High("m1009")??//highvalueofcontract?M1009?Thecurrenthighcurrentlowacontract.Low?(Code)toreturnthecontract?CodethecurrentlowCodeforcasesofacontractcontractcode:VAR??low?//defineavariable?Low?Lo
5、w=Low("m1009")??//lowvalueofcontract?M1009?Thecurrentpriceacontractbidoffer.Offers?(Code,strContent)?Thesaleoffertoreturntoacontract?Code?Asacontractcontractcode(string),?StrContent?Togetcontent,thefollowingoptionalcontent?"Bid1~5","ask1~5","bidvol1~5","askvol1~5",respectively,tobu
6、y1-5sell1-5?Buy1?-?5sell1numberof-5.Examples:VAR,bid1,bid1=Offers("m1009","bid1"),//bid1?Forsoybeanmeal?1009ofthecurrentpurchasepriceof1,minimumcontractpriceofacontract.MinPrice?(Code)returnsthesmallestchangeinpricecontract?Code,Codeforthecasesofacontractcontractcode:VAR??minprice?
7、//defineavariable?Minprice?Minprice=MinPrice("m1009")??//minpricevalueofcontract?M1009?Thesmallestchangeinpriceofacurrentcontractvolume.Volume?(Code)returnsthecurrentcontract?VolumeCode,Codecasesofacontractcontractcode:VAR?Volume?//defineavariable?Volume?Volume=Volume("m1009")??//v
8、olumevalueforthecurrentvol