以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://222.73.7.161/bbs/index.asp)
--  公式模型编写问题提交  (http://222.73.7.161/bbs/list.asp?boardid=4)
----  老师帮忙改下咱们软件用的  (http://222.73.7.161/bbs/dispbbs.asp?boardid=4&id=188532)

--  作者:李俊文
--  发布时间:2021/5/29 17:37:43
--  老师帮忙改下咱们软件用的
LC := REF(CLOSE,1);
VID := SUM(VOL,2)/(((HHV(HIGH,2)-LLV(LOW,2)))*100);
RC := (CLOSE-LC)*VID;
LONG := SUM(RC,0);
DIFF := SMA(LONG,10,1);
DEA := SMA(LONG,20,1);
LON : =DIFF-DEA;
LONMA := MA(LON,10);
LONT : =LON, COLORSTICK;
LONMA>0,BPK;
LONMA<0,SPK;
AUTOFILTER;


--  作者:yukizzc
--  发布时间:2021/5/30 21:35:48
--  

LC := REF(CLOSE,1);
VID := SUM(VOL,2)/(((HHV(HIGH,2)-LLV(LOW,2)))*100);
RC := (CLOSE-LC)*VID;
LONG := SUM(RC,0);
DIFF := SMA(LONG,10,1);
DEA := SMA(LONG,20,1);
LON : =DIFF-DEA;
LONMA := MA(LON,10);
LONT : =LON, COLORSTICK;
if LONMA>0 and holding<=0 then
begin
 sellshort(1,holding,marketr);
 buy(1,1,marketr);
end

if LONMA<0 tand holding>=0 hen
begin
 sell(1,holding,marketr);
 buyshort(1,1,marketr);
END