金字塔如何實(shí)現(xiàn)判斷60分鐘一漲一跌[金字塔模型]
- 咨詢(xún)內(nèi)容:
漲(可以是一根或多根連續(xù)上漲K線)——跌(同理 )以當(dāng)天第一個(gè)上漲K為起點(diǎn)
問(wèn)題:
1 如何實(shí)現(xiàn)?
2 因?yàn)?0分鐘中間有休息15分鐘和中午休息時(shí)間,而且涉及到劃分60分鐘周期問(wèn)題(博弈大師和金字塔劃分不同)所以不會(huì)像5分鐘那樣容易實(shí)現(xiàn),很可能會(huì)出錯(cuò),請(qǐng)問(wèn)這個(gè)怎么解決?
- 金字塔客服:
variable:zhangtime=0,dietime=0,a=0,b=0;
if date<>ref(date,1) then begin
if c>o then begin
zhangtime:=time;
a:=1;
end
if c<o then begin
dietime:=time;
b:=1;
end
end
if date=ref(date,1) and a=1 then begin
if c<o then begin
dietime:=time;
a:=2;
end
end
if date=ref(date,1) and b=1 then begin
if c>o then begin
zhangtime:=time;
b:=2;
end
end
z1:zhangtime,linethick0;
d1:dietime,linethick0;
if time=151500 then BEGIN
a:=0;
b:=0;
dietime:=0;
zhangtime:=0;
end
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容