龙听期货论坛's Archiver

龙听 发表于 2024-9-27 14:49

鼎元C++期货量化/程序化教程【调用K线数据(RsqBar)】

函数公式部分:[code]void test::RsqBar(string period, string inst)
{
        TRSQBAR* t = new TRSQBAR();
        t->Name = sName;
        t->Type = "RsqBar";
        t->Period = period;
        t->Inst = inst;
        if (hwnd)SendMessage(hwnd, WM_RSQBAR, (WPARAM)t, (LPARAM)36);
}[/code]策略中申请调用:[code]RsqBar(sPeriod, sInst);[/code]

页: [1]