谈股者 发表于 2025-3-17 17:59:37

盈利的模型 仅供参考交流[金字塔模型]

盈利的模型   网友无偿分享

这个只是为交流而发,简单到只有9行代码,没有参数,信号不闪,可以自行加入提前下单减少滑点

在股指60分钟周期运行
金字塔公式 金字塔模型策略源码:

c1:=ref(c,1);
o1:=ref(O,1);
h1:=ref(h,1);
l1:=ref(l,1);
sell(holding>0 and c1>o1 and l<=l1,1,LIMITR,c);
sellshort(holding<0 and c1<o1 and h>=h1 ,1,LIMITR,c);
buy(holding=0 and c1<o1 and h>=h1,1,LIMITR,c);
buyshort(holding=0 and c1>o1 and l<=l1,1,LIMITR,c);
资产:ASSET,NOAXIS,COLORGRAY;
页: [1]
查看完整版本: 盈利的模型 仅供参考交流[金字塔模型]