COCO研究院

 找回密碼
 註冊
搜索
查看: 3367|回復: 1

Stenitz System

[複製鏈接]
發表於 10-6-11 17:54 | 顯示全部樓層 |閱讀模式
  1. _SECTION_BEGIN("Stenitz System");

  2. SetChartOptions(0,chartShowArrows|chartShowDates);
  3. Title = ("Stenitz System " + Name()+" " + Date() +" "+Interval(2) +" "+ EncodeColor(colorLime)+",Open "+Open +" ,High "+H+" ,Low "+L+" ,Close "+C+" "+"{{VALUES}}");

  4. per1=Param("First Period",6,2,30,1);
  5. per2=Param("Second Period",2,2,30,1);
  6. Om=MA(O,per1);
  7. hm=MA(H,per1);
  8. lm=MA(L,per1);
  9. Cm=MA(C,per1);



  10. //==============================================================================================================
  11. HACLOSE=(Om+Hm+Lm+Cm)/4;
  12. HaOpen = AMA( Ref( HaClose, -1 ), 0.5 );
  13. HaHigh = Max( Hm, Max( HaClose, HaOpen ) );
  14. HaLow = Min( Lm, Min( HaClose, HaOpen ) );
  15. //PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, "" + Name(), colorBlack, styleCandle | styleNoLabel );

  16. Of=MA(Haopen,per2);
  17. Cf=MA(Haclose,per2);
  18. Lf=IIf(haOpen<haClose,MA(Halow,per2),MA(Hahigh,per2));
  19. Hf=IIf(haOpen<haClose,MA(Hahigh,per2),MA(Halow,per2));

  20. PlotOHLC( Of, Hf, Lf, Cf, "" + Name(), colorBlack, styleCandle | styleNoLabel );



  21. Plot(C,"Close",colorLime,styleLine);
  22. //=======================================================================================================================
複製代碼
發表於 10-6-11 19:19 | 顯示全部樓層
很不錯喔~謝謝喔
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

手機版|Archiver|站長信箱|廣告洽詢|COCO研究院

GMT+8, 24-11-20 09:34

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回復 返回頂部 返回列表
理財討論網站 |