請(qǐng)老師幫忙!
作者:開(kāi)拓者 TB 來(lái)源:cxh99.com 發(fā)布時(shí)間:2023年08月30日
-
咨詢(xún)內(nèi)容:
建立新指標(biāo):
? ?日線(xiàn)模型:AAA:收盤(pán)價(jià)。
? ?? ?? ?? ?? ?? ???AA1:開(kāi)盤(pán)價(jià)。
? ?? ?? ?? ?? ?? ?AAAA:AAA-AA1;
如果AAAA>0,信號(hào)持續(xù)3分鐘 現(xiàn)價(jià)開(kāi)倉(cāng)買(mǎi)入。大概意思就是這樣,然后我會(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)
{
? ? // 暫僅考慮日盤(pán)(可以通過(guò)時(shí)間控制增加夜盤(pán))
? ? 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;
替樓主謝謝你