[求助]請金字塔的老師幫個忙 [金字塔]
- 咨詢內(nèi)容:
我想編個用于分時的交易系統(tǒng),要求突破今天最高點(diǎn)買入開倉,突破今天最低點(diǎn)賣出開倉。
謝謝!
[此貼子已經(jīng)被作者于2011-3-8 21:17:17編輯過] - 金字塔客服:
這是什么邏輯?
今天的分時圖,怎么可能突破今天的最高點(diǎn),怎么可能突破今天的最低點(diǎn)?
- 用戶回復(fù):
啊,不好意思,就是比如開盤價是10現(xiàn)在是11開多然后要是價格跌破10平多開空,然后要是突破11再平空開多。
- 網(wǎng)友回復(fù):
就是突破開盤以來的高低點(diǎn)開平倉。
- 網(wǎng)友回復(fù):
用于分時圖:
n:=barslast(barpos=1)+1;
hh:=if(barpos=1,o,ref(hhv(h,n),1));
ll:=if(barpos=1,o,ref(llv(l,n),1));
entertime:=time<closetime(0);
exittime:=time=closetime(0);
enterlong:c>hh and entertime,tfilter;
exitlong:c<ll or exittime,tfilter;
entershort:c<ll and entertime,tfilter;
exitshort:c>hh or exittime,tfilter;
相關(guān)文章
-
沒有相關(guān)內(nèi)容