- UID
- 2
- 积分
- 2893117
- 威望
- 1396590 布
- 龙e币
- 1496527 刀
- 在线时间
- 13326 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-12-26
|
[金字塔源码] [转载]分形通道突破+考夫曼自适应移动均线+鳄鱼(金字塔)
分形通道突破- runmode:0;
- sfx:=ref(high,1)ref(high,3);
- xfx:= ref(low,1)>ref(low,2) and ref(low,2)
- upperband:=valuewhen(sfx,ref(high,2));
- lowerband:=valuewhen(xfx,ref(low,2));
- exittime:=time>=150000;
- if holding=0 then begin
- if high>=upperband then
- buy(1,1,limitr,max(open,upperband));
- end
- if holding=0 then begin
- if low<=lowerband then
- buyshort(1,1,limitr,min(open,lowerband));
- end
- if holding>0 then begin
- if time>=150000 then
- sell(1,holding,limitr,close);
- end
- if holding<0 then begin
- if time>=150000 then
- sellshort(1,holding,limitr,close);
- end
- 盈亏:asset-50000,noaxis,colorred,linethick2;
复制代码
考夫曼自适应移动均线系统
- runmode:0;
- input:length1(10,5,60,5);
- input:length2(5,5,60,5);
- ama:=md(close,length1);
- ama1:=ema(ama,length2);
- entrylongcond:=ref(cross(ama,ama1),1);
- entryshortcond:=ref(cross(ama1,ama),1);
- if holding=0 then begin
- if entrylongcond then
- buy(1,1,limitr,open);
- end
- if holding=0 then begin
- if entryshortcond then
- buyshort(1,1,limitr,open);
- end
- if holding>0 then begin
- if entryshortcond then begin
- sell(1,holding,limitr,open);
- buyshort(1,1,limitr,open);
- end
- end
- if holding<0 then begin
- if entrylongcond then begin
- sellshort(1,holding,limitr,open);
- buy(1,1,limitr,open);
- end
- end
- 盈亏:asset-50000,noaxis,colorred,linethick2;
复制代码
鳄鱼线与分形图
本帖隐藏的内容需要回复才可以浏览 |
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|