... )
{
SetGlobalVar( 6, 0 );
Return;
}
If( Q_BidPrice > MA and GetGlobalVar(0) ==1 )
SetGlobalVar( 0, 0 );
If( ( A_BuyPosition >0 or A_BuyPosition ==0 and A_GetLastOpenOrderIndex( Enum_Buy, Enum_Entry ) == InvalidInteger ) and GetGlobalVar(1) ==1 )
{
SetGlobalVar( 1...
i7755_1
发表时间: 2019-01-10 02:42
浏览 (2282)
回复 (7) ...verage(XAverage(XAverage(Close,Length),Length),Length),Length);If(Cha1 and Cha1[1] and Cha1[2] and Close[1]>Ema[1])
{
Buy(lots,Open);
}If(Cha2 and Cha2[1] and Cha2[2] and Close[1]
bingxue
发表时间: 2012-09-08 15:02
浏览 (11656)
回复 (25) ...
{
.......
if(CurrentEntries==2 And CloseMA20 And CurrentContracts>=2) //减多单
{
Sell(1,Close-Offset * MinMove * PriceScale);
}
.......
}If(MarketPosition==-1)
{
......
if(CurrentEntries==2 And Cl...
jwieen
发表时间: 2015-12-14 16:58
浏览 (5414)
回复 (16) ...是加仓不对。代码是:
//空仓进场
If (marketposition==0 And Condition2)
{
FirstEntryPrice = Min(Low[1],Low[2]);
unAddSetPrice = Min(open,FirstEntryPrice);
{
SellShort(lots,unAddSetPrice);
}
}
//空仓加仓
If (marketposition==-1...
marialeng
发表时间: 2017-07-18 16:02
浏览 (2183)
回复 (3) ...= Value(GetTBProfileString(SymbolName(),"duozhisun"));If (BarStatus==2 And Left(ExchangeName,4)=="上海")
{
tradetime = (CurrentTime>0.090000 And CurrentTime0.103000 And CurrentTime0.133000 And CurrentTime0.142000 And CurrentTime0.090000 And CurrentTime0.103000 And CurrentTime0.133000 An...
gbo001
发表时间: 2010-03-23 10:11
浏览 (5513)
回复 (19) ...==================================================开仓买入
if(zgmmm=0 And ff[2] ) //开空
{
A_SendOrder(Enum_Sell,Enum_Entry,scale2);
SetGlobalVar(1,1); //为1
}
}//开仓卖出
If(zgmmm>=5 && A_SellPosition()==0 && GetGlobalVar(1)==0 && BarStatus == 2)
{If(f=5 && A_SellPosition()>=0...
zhuang123
发表时间: 2016-05-26 16:15
浏览 (1587)
回复 (1) ...(1,0);
if(barstatus==2)
{
//多开
if(Q_OutsideVol>GetGlobalVar(0) and (Q_LastVol()>1000 and Q_OpenIntFlag>0) and (Q_Last==GetGlobalVar(2)))
{
A_SendOrder(Enum_Buy,Enum_Entry,1,Q_Last);}//空开
if(Q_InsideVol>GetGlobalVar(1) and (...
... if(barstatus==2)
{
//多开
if(Q_OutsideVol>GetGlobalVar(0) and (Q_LastVol()>1000 and Q_OpenIntFlag>0) and (Q_Last==GetGlobalVar(2)))
{
A_SendOrder(Enum_Buy,Enum_Entry,1,Q_Last);}//空开if(Q_InsideVol>GetGlobalVa...
请教,下面这个语句在盘中会实际发单吗?
if (barstatus!=2)
{If (MarketPosition!=1 and m1[1])
{ buy(0,open+2*minpoint);}}
盼复!
gslizg
发表时间: 2011-11-05 18:43
浏览 (2209)
回复 (2) ...HighD(1);
zc2=piv-HighD(1)*LowD(1);
BBTop=Average(close,length)+stddev*StandardDev(close,length,2);
BBBot=Average(close,length)-stddev*StandardDev(close,length,2);
PlotNumeric("zl1",zl1);
PlotNumeric("zc1",zc1);
PlotNumeric("BBTop",BBTop);
PlotNumeric("BBBot",BBBot);
//交易开仓主体
...
bbqqcc6888
发表时间: 2016-06-08 14:11
浏览 (1890)
回复 (1) ...还是持仓变化后.谢谢-------------------------
if(Time>=0.0900 and Time0 and GetGlobalVar(0) == 3)
{
SetGlobalVar(2,1);
If(条件1 ) // 止盈平空
{
A_SendOrder(Enum_Buy,Enum_Exi...
hxh989898
发表时间: 2016-05-27 10:32
浏览 (2529)
回复 (1) VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1) AND CLOSE=REF(CLOSE,2);
VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE=REF(CLOSE,1) AND CLOSE
wszzsw
发表时间: 2010-10-22 20:10
浏览 (1858)
回复 (0)
if(A_BuyPosition()==0 and A_SellPosition()==0) SetGlobalVar(2,0);
If(GetGlobalVar(2)==InvalidNumeric)
{
SetGlobalVar(2,0);
}cond1=(GetGlobalVar(2));
BUYSS=A_BuyPosition;
PlotStrin...
sjfczpf2
发表时间: 2016-11-08 16:03
浏览 (1770)
回复 (1) ...2,N);
E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2;
E2:=(H+L)/2;
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1;
L1:=(D2 AND NOT(D1 AND E1=E2);
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1));
G1:=F1>REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I...
...一部分(正常开平仓):
if (MarketPosition!=1 and L > MA1+x)
{
Buy(1,C);
}
if (MarketPosition==1 and (L < MA1-x)
{
Sell(1,C);
}if (MarketPosition!=-1 and H < MA2-x)
...
...==================================================开仓买入
if(zgmmm=0 And ff[2] ) //开空
{
A_SendOrder(Enum_Sell,Enum_Entry,scale2);
SetGlobalVar(1,1); //为1
}
}//开仓卖出
If(zgmmm>=5 && A_SellPosition()==0 && GetGlobalVar(1)==0 && BarStatus == 2)
{If(f=5 && A_SellPosition()>=0...
zhuang123
发表时间: 2016-05-27 22:33
浏览 (1838)
回复 (0) ...k计数器
{
tickjishuoqi = GetGlobalVar(1);}
If( Condition13 and h>h[1] and A_BuyPosition()==0 && GetGlobalVar(0)==0 && BarStatus == 2 && GetGlobalVar(1)>=20)
{
A_SendOrder(Enum_Buy,Enum_Entry,1,Q_AskPrice+OffsetPoint*MinMove*PriceScale);SetGlobalVar(0,1); //全局变...
fsh463400
发表时间: 2016-08-02 15:41
浏览 (1433)
回复 (0) ...以了
if(BarStatus==0)
SetGlobalVar(0,0);
/* if(GetGlobalVar(0)==0 and A_BuyPosition>0)
SetGlobalVar(0,1);
if(GetGlobalVar(0)==0 and A_SellPosition>0)
SetGlobalVar(0,-1); */
If(BarStatus==2 and A_BuyPosition==0 and GetGlobalVar(0)==0 and l2[1]==l3[1] and l2>l3 )
{A_SendOrder(Enu...
q3479382
发表时间: 2014-07-15 15:22
浏览 (2077)
回复 (2) ...以了
if(BarStatus==0)
SetGlobalVar(0,0);
/* if(GetGlobalVar(0)==0 and A_BuyPosition>0)
SetGlobalVar(0,1);
if(GetGlobalVar(0)==0 and A_SellPosition>0)
SetGlobalVar(0,-1); */
If(BarStatus==2 and A_BuyPosition==0 and GetGlobalVar(0)==0 and l2[1]==l3[1] and l2>l3 )
{A_SendOrder(Enu...
q3479382
发表时间: 2014-07-16 08:49
浏览 (2092)
回复 (0) 在R-Break策略中:
if(Time*100>=notbef and Time*100=2 and rfilter)
{if(Time != GetGlobalVar(1) and GetGlobalVar(1) != 0)
{
SetGlobalVar(1,10000);
}---------
请问,第一个条件将时间控制在9:00-14:55,在这段时间中,什么...
hxh989898
发表时间: 2016-03-25 16:19
浏览 (2184)
回复 (0)