請教問題 [金字塔]
- 咨詢內(nèi)容:
如果是日內(nèi)第一次多頭開倉,則正常開倉 IF holding=0 and 開倉條件 then buy
如果不是日內(nèi)第一次做多,是日內(nèi)平多倉后再次做多,則C大于上一次日內(nèi)多頭開倉價才開倉
如何描述呢
- 金字塔客服:
if c>enterprice then buy....;
- 用戶回復(fù):
以下是引用jinzhe在2013/12/12 14:24:30的發(fā)言:
if c>enterprice then buy....;昏,請老師看清楚問題
第一個條件是,如果是日內(nèi)第一次做多,則正常開倉,不用C>enterprice,就是忽略昨日的開倉價
- 網(wǎng)友回復(fù):
variable:n=0;
if n=0 and 開倉條件 and holdng=0 then begin
buy....;
n:=1;
end
if n=1 and c>enterprice then buy......;
if time=closetime(0) then n:=0;
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容