 |
tsh
資深會員

註冊日期: Feb 2016
來 自:
文章數量: 220 |
回覆: 回覆: 回覆: 回覆: 請教
引用: 最初由 cgjj 發表
SPA:=barslast(A條件);
SPB:=barslast(B條件);
漲幅:=(c/ref(c,SPA)-1)*100;
ref(漲幅,SPB)<-10 and sum(C>=ref(L,1),SPB+1)=SPB+1;
//A點
hhv2:=hhV(h,2);
CKh:=h>=hhV2 and h>refx(hhv2,2);
SNh:=sum(CKh,0);
ssh:=CKh and SNh=SNh[datacount];CKhsp:=barslast(CKh);
//B點
llv2:=ssh and llV(l,2);
CK:=l<=llV2 and l<refx(llv2,2);
SN:=sum(CK,0);
ss:=CK and SN=SN[datacount];CKsp:=barslast(CK);
{ck1: sum(l>=ref(l,1),n)=n and l>ss;}
漲幅:=(c/ref(h,ckhsp)-1)*100;
ref(漲幅,cksp)<-10 and sum(l>=ref(L,1),cksp+1)=cksp+1;
沒挑到半支, 不知那裡有錯, 麻煩版主, 謝謝!!
|
|
向版主報告此篇 |  |
|
2020-04-27 12:52 |
|
|
|  |
 |
cgjj
總版主

註冊日期: Oct 2003
來 自:
文章數量: 18116 |
回覆: 回覆: 回覆: 回覆: 回覆: 請教
引用: 最初由 tsh 發表
//A點
hhv2:=hhV(h,2);
CKh:=h>=hhV2 and h>refx(hhv2,2);
SNh:=sum(CKh,0);
ssh:=CKh and SNh=SNh[datacount];CKhsp:=barslast(CKh);
//B點
llv2:=ssh and llV(l,2);
CK:=l<=llV2 and l<refx(llv2,2);
SN:=sum(CK,0);
ss:=CK and SN=SN[datacount];CKsp:=barslast(CK);
{ck1: sum(l>=ref(l,1),n)=n and l>ss;}
漲幅:=(c/ref(h,ckhsp)-1)*100;
ref(漲幅,cksp)<-10 and sum(l>=ref(L,1),cksp+1)=cksp+1;
沒挑到半支, 不知那裡有錯, 麻煩版主, 謝謝!!
不一定有錯,條件太嚴格自然就會很難選到!!!
您把 A 和 B 都標垂直線出來
一支一支股票對著觀察~~~
"低點都沒破前一根k棒低點" 這是很嚴格的條件。
此外跌幅度也可試著調整看看!
|
|
向版主報告此篇 |  |
|
2020-04-27 13:16 |
|
|
|  |
 |
cgjj
總版主

註冊日期: Oct 2003
來 自:
文章數量: 18116 |
回覆: 回覆: 回覆: 回覆: 回覆: 請教
引用: 最初由 tsh 發表
//A點
hhv2:=hhV(h,2);
CKh:=h>=hhV2 and h>refx(hhv2,2);
SNh:=sum(CKh,0);
ssh:=CKh and SNh=SNh[datacount];CKhsp:=barslast(CKh);
//B點
llv2:=ssh and llV(l,2);
CK:=l<=llV2 and l<refx(llv2,2);
SN:=sum(CK,0);
ss:=CK and SN=SN[datacount];CKsp:=barslast(CK);
{ck1: sum(l>=ref(l,1),n)=n and l>ss;}
漲幅:=(c/ref(h,ckhsp)-1)*100;
ref(漲幅,cksp)<-10 and sum(l>=ref(L,1),cksp+1)=cksp+1;
沒挑到半支, 不知那裡有錯, 麻煩版主, 謝謝!!
你的 B點邏輯應該是錯誤的吧!
沒有成立的地方
llv2:=ssh and llV(l,2); <== 這行肯定有問題!!!
請自行修正 B點
|
|
向版主報告此篇 |  |
|
2020-04-27 13:21 |
|
|
|  |
本站所有內容未經作者授權禁止轉貼節錄, 發表言論僅供參考勿作為投資決策依據。瀏覽本站請使用 IE 5.5 以上版本, 最佳瀏覽解析度 1024 x 768 全彩。
|
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved. 聯絡我們
|