投资者咨询:这个也改成WH8谢谢 (文华财经WH6赢顺V6.7)
来源:文华财经 日期:2018-8-15 22:01
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,l[1]-offset);
}
If(h[1]>ma1 )
{
Buy(LOTS,h[1]+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
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,l[1]-offset);
}
If(h[1]>ma1 )
{
Buy(LOTS,h[1]+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
技术人员回复
日期:2018-8-15 22:05
M:=25;
OFFSET := UNIT;
SPREAD:=MAX(REF(H-C,1),REF(C-L,1));
OPENP:=O;
MA1:=OPENP+0.01*M*SPREAD;
MA2:=OPENP-0.01*M*SPREAD;
REF(L,1)<MA2,SPK;
REF(H,1)>MA1,BPK;
AUTOFILTER;
TIME>1512 AND TIME<1600,CLOSEOUT;