![]() |
在這個頁面顯示本主題全部的 7 個文章 |
奇狐社區論壇 (http://www.chiefox.com.tw/bbs/index.php)
- 問題交流 (http://www.chiefox.com.tw/bbs/forumdisplay.php?forumid=28)
-- 股票箱的公式 (http://www.chiefox.com.tw/bbs/showthread.php?threadid=3169)
股票箱的公式
請問股票箱的公式要怎麼選用繪圖函數?
既然是股票箱的公式
一般應該都已經畫好了相關線條
剩下的可能是您自己想要增加的部分
誠如您所說的繪圖函數中
應該可以找到您所想要表達的部分
感覺上您沒有明確說出需求
難怪版大不知如何上手
ps.
您的問題或許放到 問題交流 要好些
回覆: 股票箱的公式
這是一組股票箱的指標您參考看看
引用:
hh:=h;ll:=l;
top:=h;
bot:=l;
xx[1]:=1;
kk:=1;
for i=1 to datacount do begin
if xx[i]=1 then begin
top[i]:=hh[i];
end;
if xx[i-1]=1 then begin
if hh[i]>top[i-1] then begin
top[i]:=hh[i];
xx[i]:=1;
end;else begin
top[i]:=top[i-1];
xx[i]:=2;
end;
end;
if xx[i-1]=2 then begin
if hh[i]>top[i-1] then begin
top[i]:=hh[i];
xx[i]:=1;
end;else begin
top[i]:=top[i-1];
bot[i]:=ll[i];
xx[i]:=3;
end;
end;
if xx[i-1]=3 then begin
top[i]:=top[i-1];
if ll[i]<bot[i-1] then begin
bot[i]:=ll[i];
xx[i]:=3;
end;else begin
bot[i]:=bot[i-1];
xx[i]:=4;
end;
end;
if xx[i-1]=4 then begin
top[i]:=top[i-1];
if ll[i]<bot[i-1] then begin
bot[i]:=ll[i];
xx[i]:=3;
end;else begin
bot[i]:=bot[i-1];
xx[i]:=5;
end;
end;
if xx[i-1]=5 then begin
if ll[i]<bot[i-1] or hh[i]>top[i-1] then begin
top[i]:=hh[i];
bot[i]:=hh[i];
xx[i]:=1;
end;else begin
bot[i]:=bot[i-1];
top[i]:=top[i-1];
xx[i]:=5;
end;
end;
end;
for j=1 to datacount do begin
if xx[j]=5 and xx[j-1]=4 then begin
for k=j-1 downto j-kk do begin
top[k]:=top[j];
bot[k]:=bot[j];
end;
end;
if xx[j-1]=5 and xx[j]=1 then kk:=0;
kk:=kk+1;
end;jj:=BARSLAST(top<>ref(top,1));
top:top POINTDOT linethick3 colorcyan;drawnumber(top<>ref(top,1),ref(top,jj)*1.015 ,(top-bot)*100/bot,2) colorff9900;
bot:bot POINTDOT linethick3 colorcyan;drawnumber(top<>ref(top,1),ref(bot,jj)*0.99,top-bot ,2) colorgreen ;
DRAWICON(cross(h,ref(top,1)) and xx=1 and ref(xx,1)=5,h,4);
DRAWICON(cross(ref(bot,1),l) and xx=1 and ref(xx,1)=5,l,5);
藍色 綠色 數字 代表何意???:
謝謝喔
請問版主
圖中 藍色 綠色 數字 代表何意???
謝謝joanne115244大大
天資駑鈍,看不懂
感謝joanne115244大大提供的股票箱程式碼;
只是小弟天資駑鈍,實在看不懂此程式碼,
請問:
例如程式碼中
xx[i]:=1;
xx[i]:=2;
xx[i]:=3;
xx[i]:=4;
xx[i]:=5;
是代表什麼意義?
回覆: 天資駑鈍,看不懂
引用:
最初由 HXS6988 發表
感謝joanne115244大大提供的股票箱程式碼;
只是小弟天資駑鈍,實在看不懂此程式碼,
請問:
例如程式碼中
xx[i]:=1;
xx[i]:=2;
xx[i]:=3;
xx[i]:=4;
xx[i]:=5;
是代表什麼意義?
全部時間均為台灣時間, 現在時間為05:24 | 在這個頁面顯示本主題全部的 7 個文章 |
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved.