Board logo

标题: [金字塔源码] [转载]分形通道突破+考夫曼自适应移动均线+鳄鱼(金字塔) [打印本页]

作者: 龙听    时间: 2019-1-6 14:29     标题: [转载]分形通道突破+考夫曼自适应移动均线+鳄鱼(金字塔)

分形通道突破
  1. runmode:0;
  2. sfx:=ref(high,1)ref(high,3);
  3. xfx:= ref(low,1)>ref(low,2) and ref(low,2)
  4. upperband:=valuewhen(sfx,ref(high,2));
  5. lowerband:=valuewhen(xfx,ref(low,2));
  6. exittime:=time>=150000;

  7. if holding=0 then begin
  8. if high>=upperband then
  9.   buy(1,1,limitr,max(open,upperband));
  10. end
  11. if holding=0 then begin
  12. if low<=lowerband then
  13.   buyshort(1,1,limitr,min(open,lowerband));
  14. end
  15. if holding>0 then begin
  16. if time>=150000 then
  17.   sell(1,holding,limitr,close);
  18. end
  19. if holding<0 then begin
  20. if time>=150000 then
  21.   sellshort(1,holding,limitr,close);
  22. end
  23. 盈亏:asset-50000,noaxis,colorred,linethick2;
复制代码



考夫曼自适应移动均线系统

  1. runmode:0;
  2. input:length1(10,5,60,5);
  3. input:length2(5,5,60,5);
  4. ama:=md(close,length1);
  5. ama1:=ema(ama,length2);
  6. entrylongcond:=ref(cross(ama,ama1),1);
  7. entryshortcond:=ref(cross(ama1,ama),1);
  8. if holding=0 then begin
  9. if entrylongcond then
  10.   buy(1,1,limitr,open);
  11. end
  12. if holding=0 then begin
  13. if entryshortcond then
  14.   buyshort(1,1,limitr,open);
  15. end
  16. if holding>0 then begin
  17. if entryshortcond then begin
  18.   sell(1,holding,limitr,open);
  19.   buyshort(1,1,limitr,open);
  20. end
  21. end
  22. if holding<0 then begin
  23. if entrylongcond then begin
  24.   sellshort(1,holding,limitr,open);
  25.   buy(1,1,limitr,open);
  26. end
  27. end
  28. 盈亏:asset-50000,noaxis,colorred,linethick2;
复制代码



鳄鱼线与分形图

本帖隐藏的内容需要回复才可以浏览

作者: 水月寒    时间: 2019-1-12 12:32

thanks
作者: 刘伟    时间: 2019-1-18 21:12

thanks
作者: 清心淡雅    时间: 2019-4-4 13:55

学习
作者: 刘伟    时间: 2019-6-6 15:51

好东西学习学习
作者: 金刚橛    时间: 2019-7-30 12:13

感谢分享
作者: 呆哥哥    时间: 2020-1-3 23:27

感謝分享、版主辛苦了
作者: 呆哥哥    时间: 2020-1-3 23:28

感謝分享、版主辛苦了
作者: 傲雪松    时间: 2020-1-26 21:10

感谢!学习
作者: 雷杨    时间: 2020-3-15 20:27

学习了
作者: 野孩子期货量化    时间: 2022-11-22 14:19






欢迎光临 龙听期货论坛 (http://www.qhlt.cn/) Powered by Discuz! 7.2