
PROGRAM LANGUAGE
文章平均质量分 87
seekthere
willing power
展开
-
281=2,Insufficient band-width
see the old codes: void CurrenexApplication::marketDataRequest(){ FIX::MDReqID mdReqID( "MARKETDATAID" );//MARKETDATAID FIX::SubscriptionRequestType subType( FIX::SubscriptionRequestType_SNAPS原创 2013-12-26 15:54:12 · 954 阅读 · 0 评论 -
qt excel
There are 2 C++ libaries to create excel.One is free xlslib : http://xlslib.sourceforge.net/Other is commercial libXL : http://www.libxl.com/原创 2013-12-18 16:59:42 · 905 阅读 · 0 评论 -
MT4 often-used function
void enterAskPosition(double lots){ if(0 > OrderSend(Symbol(),OP_SELL,lots,Bid,slippoint,stoploss,takeprofit,"My Order #kay",13603,0,Red)) { writeLog("sell open failure"); }}//---wr原创 2013-11-21 16:50:06 · 1409 阅读 · 0 评论 -
130
ordersend && ordermodify , error no 130这个错误经常发生,意思是无效的止损止盈位price1 = Bid - step * Point;OrderSend(Symbol(), OP_SELLSTOP, lots, price1, 3, 0, 0, "# ", 0 , 0 ,Red);有的时候,我们没有设置成price1,原创 2013-12-11 15:21:15 · 2332 阅读 · 0 评论 -
FTDC
FTDC: future TradingData Exchange protocol, an information exchange protocal based on CTP.原创 2013-10-09 14:44:02 · 2054 阅读 · 0 评论 -
warning c4819
解决方法:打开出现warning的文件,Ctrl+A全选,然后在文件菜单:file->advanced save options ,在弹出的选项中选择新的编码方式为:UNICODE codepage 1200 ,点击确定,问题就解决了。原创 2013-12-04 17:21:45 · 731 阅读 · 0 评论 -
TestGenerator: unmatched data error
It's very critical and all EA's will suffer to some degree if you feed them bad data . . .you can get OK data here: http://www.forextester.com/data/datasources.html more info here: http://www.原创 2013-12-17 16:41:56 · 5030 阅读 · 0 评论 -
testgenerator: error code 126
EA:#include //smk.mqh#import "smk.ex4"void writeLog(string a);//smk.mq4void writeLog(string a){int handle = FileOpen("tmp",FILE_READ | FILE_WRITE); if(FileSeek(handle,0,SEEK_END))原创 2013-12-17 17:23:24 · 1675 阅读 · 0 评论 -
20 ways to debug Qt signals and slots
Referenced by:http://samdutton.wordpress.com/2008/10/03/debugging-signals-and-slots-in-qt/Below are some suggestions for troubleshooting signals and slots in the Qt C++ library.1.转载 2013-10-15 15:47:26 · 1306 阅读 · 1 评论 -
Qt中Signal与Slot参数问题<一>
Referenced by:http://www.ibm.com/developerworks/cn/linux/guitoolkit/qt/signal-slot/;应注意的问题信号与槽机制是比较灵活的,但有些局限性我们必须了解,这样在实际的使用过程中做到有的放矢,避免产生一些错误。下面就介绍一下这方面的情况。1 .信号与槽的效率是非常高的,但是同真正原创 2013-10-16 17:13:27 · 5088 阅读 · 1 评论 -
Qt modal & modalless
Qdialogmodal就是窗口不能交互直到关闭;modalless就是窗口可以交互,也可以不交互;exec()总是modal,而show()取决于其modal(),默认是false,这个时候就是modalless,如果是true,这个时候就是modal.原创 2013-12-05 17:47:38 · 941 阅读 · 0 评论 -
toStdString()
今天由于要更新版本,才引出了一些列问题,真心不知道当时是怎么发布出去的。下面要谈的是Qt下的toStdString()问题,debug版本下没有问题,但是在release版本下就出了问题,具体情况是这样的:assume qstring qs = "12345";std::string str = qs.toStdString();In debug mode,str is "1234原创 2013-12-04 16:14:17 · 6728 阅读 · 1 评论