請(qǐng)老師幫忙! [開(kāi)拓者 TB]
-
咨詢內(nèi)容:
建立新指標(biāo):
? ?日線模型:AAA:收盤價(jià)。
? ?? ?? ?? ?? ?? ???AA1:開(kāi)盤價(jià)。
? ?? ?? ?? ?? ?? ?AAAA:AAA-AA1;
如果AAAA>0,信號(hào)持續(xù)3分鐘 現(xiàn)價(jià)開(kāi)倉(cāng)買入。大概意思就是這樣,然后我會(huì)把東西按這個(gè)基本方法我再補(bǔ)齊。謝謝了?
?來(lái)源:CXH99.COM
-
TB技術(shù)人員:
Bool okBuy;
Numeric iMod;
If(BarStatus == 0)
? ? SetGlobalVar(0,-1);
okBuy = False;
If(Close > Open and GetGlobalVar(0) == -1)
? ? SetGlobalVar(0, CurrentTime);
Else If(Close <= Open)
? ? SetGlobalVar(0,-1);
If(GetGlobalVar(0)??> -1)
{
? ? // 暫僅考慮日盤(可以通過(guò)時(shí)間控制增加夜盤)
? ? If(GetGlobalVar(0) >= 0.0900 and GetGlobalVar(0) < 0.1457)
? ? {
? ?? ???iMod = Mod(GetGlobalVar(0)*10000, 100);
? ?? ???If((iMod< 57 and Mod(CurrentTime*10000, 100) - iMod >= 3) or (iMod >= 57 and Mod(CurrentTime*10000, 100) + (60-iMod) >= 3))
? ?? ?? ?? ?okBuy = True;
? ? }
}
If (okBuy == True)
? ? Buy (xx,xx);?
-
TB客服:
Yuen_Lee 發(fā)表于 2020-7-22 10:08
Bool okBuy;
Numeric iMod;
替樓主謝謝你
有思路,想編寫各種指標(biāo)公式,交易模型,選股公式,還原公式的朋友
可聯(lián)系技術(shù)人員 QQ: 262069696 或微信號(hào):cxh99cxh99 進(jìn)行 有償收費(fèi) 編寫!
(怎么收費(fèi),代編流程等詳情請(qǐng)點(diǎn)擊閱讀!)
(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,加好友時(shí)請(qǐng)簡(jiǎn)單備注下您的需求,否則無(wú)法通過(guò)。謝謝您!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容