 |
cgjj
總版主

註冊日期: Oct 2003
來 自:
文章數量: 18255 |
|
引用: 最初由 tsh 發表
版主再請教你, 我若
1.只要最後一次符合條件出現就好,前面發生的就不用劃線
MA5:ma(c,5);
MA42:ma(c,42);
CK1:=Cross(MA5,MA42);
CK1:=Cross(C,ref(H,barslast(CK1)));
CK2:=Cross(MA42,C);
CK1SP:=barslast(CK1);
CK2SP:=barslast(CK2);
MH:HHV(H,CK1SP+1) colorred linethick0;
MH:=ref(MH,CK2SP);
CK2N:=sum(CK2,0);
DWCK:=barslast(CK2N<>CK2N[datacount])>1;
PARTLINE(DWCK,MH) colorred;
VERTLINE(CK1) colorred linedot;
VERTLINE(CK2) colorgreen linedot;
|
|
向版主報告此篇 |  |
|
2016-05-26 10:40 |
|
|
|  |
 |
tsh
資深會員

註冊日期: Feb 2016
來 自:
文章數量: 220 |
|
MA5:ma(c,5);
MA42:ma(c,42);
CK1:=Cross(MA5,MA42);
CK1:=Cross(C,ref(H,barslast(CK1)));
CK2:=Cross(MA42,C);
CK1SP:=barslast(CK1);
CK2SP:=barslast(CK2);
MH:HHV(H,CK1SP+1) colorred linethick0;
MH:=ref(MH,CK2SP);
CK2N:=sum(CK2,0);
DWCK:=barslast(CK2N<>CK2N[datacount])>1;
PARTLINE(DWCK,MH) colorred;
VERTLINE(CK1) colorred linedot;
VERTLINE(CK2) colorgreen linedot;
CK1:=Cross(MA5,MA42); CK1:=Cross(C,ref(H,barslast(CK1)));
請教版主,我若想改成黃金交叉後,取第一根 H>ref(h,1) and l>ref(l,1) 到ck2間 取最高價, 應如何改,我改成以下所列,但無法呈現高價, 一直麻煩版主真不好意思
MA5:ma(c,5);
MA42:ma(c,42);
CK1:=Cross(MA5,MA42);
CK3:=h>ref(h,1) and l>ref(l,1);
CK2:=Cross(MA42,C);
CK3SP:=barslast(CK3);
CK2SP:=barslast(CK2);
MH:HHV(H,CK3SP+1) colorred linethick0;
MH:=ref(MH,CK2SP);
CK2N:=sum(CK2,0);
DWCK:=barslast(CK2N<>CK2N[datacount])>1;
PARTLINE(DWCK,MH) colorred;
VERTLINE(CK3) colorred linedot;
VERTLINE(CK2) colorgreen linedot;
|
|
向版主報告此篇 |  |
|
2016-05-27 13:05 |
|
|
|  |
 |
cgjj
總版主

註冊日期: Oct 2003
來 自:
文章數量: 18255 |
|
引用: 最初由 tsh 發表
MA5:ma(c,5);
MA42:ma(c,42);
CK1:=Cross(MA5,MA42);
CK1:=Cross(C,ref(H,barslast(CK1)));
CK2:=Cross(MA42,C);
CK1SP:=barslast(CK1);
CK2SP:=barslast(CK2);
MH:HHV(H,CK1SP+1) colorred linethick0;
MH:=ref(MH,CK2SP);
CK2N:=sum(CK2,0);
DWCK:=barslast(CK2N<>CK2N[datacount])>1;
PARTLINE(DWCK,MH) colorred;
VERTLINE(CK1) colorred linedot;
VERTLINE(CK2) colorgreen linedot;
CK1:=Cross(MA5,MA42); CK1:=Cross(C,ref(H,barslast(CK1)));
請教版主,我若想改成黃金交叉後,取第一根 H>ref(h,1) and l>ref(l,1) 到ck2間 取最高價, 應如何改,我改成以下所列,但無法呈現高價, 一直麻煩版主真不好意思
MA5:ma(c,5);
MA42:ma(c,42);
CK1:=Cross(MA5,MA42);
CK3:=h>ref(h,1) and l>ref(l,1);
CK2:=Cross(MA42,C);
CK3SP:=barslast(CK3);
CK2SP:=barslast(CK2);
MH:HHV(H,CK3SP+1) colorred linethick0;
MH:=ref(MH,CK2SP);
CK2N:=sum(CK2,0);
DWCK:=barslast(CK2N<>CK2N[datacount])>1;
PARTLINE(DWCK,MH) colorred;
VERTLINE(CK3) colorred linedot;
VERTLINE(CK2) colorgreen linedot;
MA5:ma(c,5);
MA42:ma(c,42);
CK:=Cross(MA5,MA42); CKSP:=barslast(CK);
CK1:=MA5>MA42 and H>ref(h,1) and l>ref(l,1);
CK1:=CK1 and sum(CK1,CKSP+1)=1;
CK2:=Cross(MA42,C);
CK1SP:=barslast(CK1);
CK2SP:=barslast(CK2);
MH:HHV(H,CK1SP+1) colorred linethick0;
MH:=ref(MH,CK2SP);
CK2N:=sum(CK2,0);
DWCK:=barslast(CK2N<>CK2N[datacount])>1;
PARTLINE(DWCK,MH) colorred;
VERTLINE(CK1) colorred linedot;
VERTLINE(CK2) colorgreen linedot;
|
|
向版主報告此篇 |  |
|
2016-05-27 14:09 |
|
|
|  |
本站所有內容未經作者授權禁止轉貼節錄, 發表言論僅供參考勿作為投資決策依據。瀏覽本站請使用 IE 5.5 以上版本, 最佳瀏覽解析度 1024 x 768 全彩。
|
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved. 聯絡我們
|