請(qǐng)大家?guī)蛡€(gè)小忙,在線等
作者:開(kāi)拓者 TB 來(lái)源:cxh99.com 發(fā)布時(shí)間:2014年02月25日
- 咨詢內(nèi)容:
希望大家?guī)臀覀€(gè)忙,我學(xué)程序化時(shí)間不長(zhǎng),現(xiàn)在想寫(xiě)一個(gè)程序。
就是,9點(diǎn)35分之后(周期看到是一分鐘),第一根陽(yáng)線開(kāi)多,若是陰線就開(kāi)空,不論開(kāi)的是多單還是空單,回撤20個(gè)點(diǎn)立即反手。14點(diǎn)58分全部平倉(cāng)。
- TB技術(shù)人員:
謝謝您啦
- TB客服:
Vars
Begin
if(time>=0.0936 and close[1]>open[1] && markposition==0)
buy(1,open);
if(time>=0.0936 and close[1]<open[1] && markposition==0)
sellshort(1,open);
if(markposition==1 && (EntryPrice-open)*MinMove*PriceScale>=20)
sellshort(1,open);
if(markposition==-1 && (open-EntryPrice)*MinMove*PriceScale>=20)
buy(1,open);
end