开拓者超级好用的股指日内模型源码: 股指指数1分钟
Params
Numeric M(25);
Numeric LOTS(1);
Vars
Numeric offset;
Numeric offset1;
NumericSeries MA1;
NumericSeries MA2;
Numeric spread;
Numeric OPENP;
Begin
ffset = MinMove()*PriceScale();
spread=Max(HighD(1)-CloseD(1),CloseD(1)-LowD(1));
PENP=OpenD(0);
MA1=OPENP+0.01*M*spread;
MA2=OPENP-0.01*M*spread;
if(Time>0.0915 Timema1 )
{
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;
// 来源:
}
if(marketposition==1)
{
Sell(0,Open-offset);
PlotString("Vol","平11",high,Red);
Return;
}}
End