開拓者超級好用的股指日內模型源碼[開拓者公式]
- 開拓者超級好用的股指日內模型源碼: 股指指數1分鐘
來源 http://m.kzuj.com.cn/2013/04/12/12119.shtml 轉載請保留出處
Params
Numeric M(25);
Numeric LOTS(1);
Vars
Numeric offset;
Numeric offset1;
NumericSeries MA1;
NumericSeries MA2;
Numeric spread;
Numeric OPENP;
Begin
offset = MinMove()*PriceScale();
spread=Max(HighD(1)-CloseD(1),CloseD(1)-LowD(1));
OPENP=OpenD(0);
MA1=OPENP+0.01*M*spread;
MA2=OPENP-0.01*M*spread;
if(Time>0.0915 && Time<=0.1450)
{
If(l[1]<MA2 )
{
SellShort(LOTS,ma2-offset);
}
If(h[1]>ma1 )
{
Buy(LOTS,ma1+offset);
}}
if(Time*100>=15.12 and Time<0.1600)
{
if(marketposition==-1)
{
BuyToCover(0,Open+offset);
PlotString("Vol","平12",Low,blue);
Return;// 來源:m.kzuj.com.cn
}
if(marketposition==1)
{
Sell(0,Open-offset);
PlotString("Vol","平11",high,Red);
Return;
}}
End
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 262069696 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容