...[1],Length);
Lowestvalue=Lowest(Low[1],Length);If(MarketPosition==0 and Close[1]>Highestvalue And avgp1>avgp2 )
{Buy(Lots,Open+Offset * MinMove * PriceScale);}
If(MarketPosition==0 and Close[1]
jwieen
发表时间: 2015-11-26 16:17
浏览 (2958)
回复 (9) ...]) hh=High; Else hh=hh[1];
if(Low=0.0001*tradBegin And Time 0 )
{
// 当前多仓,加仓多头
if(bc And BarsSinceLastEntry>minSpt)
{
...
sha7829
发表时间: 2012-12-08 11:54
浏览 (2843)
回复 (2) 本帖最后由 心有如来 于 2011-8-29 11:53 编辑在V4.2中,我的所有的开仓信号采用H>MP或L=UpLine+MinPoint*OffSet),
或If(GetGlobalVar(0)==0 And GetGlobalVar(1)==0 And L
心有如来
发表时间: 2011-08-29 11:42
浏览 (2540)
回复 (4) ...消失,实盘会这样吗?为什么?
If(MarketPosition==0 and TurtleUnits>=1 and DonchianFastUpper>0)
{
// 首次入市1:带过滤条件的,如果过滤条件为真,则需要前一笔交易是否是突破失败;
if(LastProfitableTradeFilter==...
alley_007
发表时间: 2013-08-21 20:13
浏览 (1759)
回复 (0) ...0);
PlotNumeric("MA30",MA30);
If(ma10[1]>ma20[1] And ma20[1]>ma30[1] And MA5[2]ma10[1])
{
MyPrice=Open;
Buy(1,MyPrice);
}
If(MarketPosition==1 And BarsSinceEntry>0)
{
...
1)condition = lowd(1)>lowd(2) and lowd(1)dgb and dga
kuixbao
发表时间: 2014-04-23 22:57
浏览 (1547)
回复 (1) ... //不是分钟线就不标注
Return;
else if (BarInterval1 and BarInterval3 and BarInterval5) //不是1分钟、3分钟、5分钟不标注
Return;
Else if (BarInterval==1) //1min 标注方法
{
if (time>=0.0915 and time
...
Else
If(Timehh[1]) hh=High; Else hh=hh[1];
if(Low=0.0001*tradBegin And Time 0 )
{
// 当前多仓,加仓多头
if(bc And BarsSinceLastEntry>minSpt)
{
if(BarStatus==2) tradePrice= Q_AskPrice +splitDot; Else tradePrice=hh+splitDot;
Buy(maxLots,tradePrice);
...
fish0451
发表时间: 2009-01-14 20:55
浏览 (33077)
回复 (28) ...lse
If(Timehh[1]) hh=High; Else hh=hh[1];
if(Low=0.0001*tradBegin And Time 0 )
{
// 当前多仓,加仓多头
if(bc And BarsSinceLastEntry>minSpt)
{
if(BarStatus==2) tradePrice= Q_AskPrice +splitDot; Else tradePrice=hh+splitDot;
Buy(maxLots,tradePrice);
}
// 当前多头,...
sunshinire
发表时间: 2014-05-02 16:02
浏览 (9130)
回复 (19) ...限
Numeric floorAmt(20); // 自适应参数的下限
Numeric bolBandTrig(1.5); // 布林通道参数
Numeric Lots(2); // 交易手数
Numeric a(2);
Numeric jx(120);
Numeric b(14);
Numeric StopLossSet(20); // 止损设置
Numeric rsi2(80);
Vars
Numeric MyEntr...
...1000000+$t[3]*3600+$t[4]*60+$t[5]
$cha=$truetime-$tbtime
If @HOUR=9 And @MIN=0 And @SEC=0 Then
$mmm=0
EndIf;9点错误次数清0
If( ( @HOUR=9 And @min>0 )or @HOUR=10 Or (@HOUR=13 And @MIN>0) Or @HOUR=14 Or (@HOUR=21 And @min>0) Or @HOUR=22 Or @HOUR=23 Or ( @HOUR=11 An...
hal5667
发表时间: 2015-03-14 14:45
浏览 (4991)
回复 (5) ...seD(1))
);
//4、开仓操作
If(!bDuoStoped and MarketPosition1 and High>nHighPrice and OpenInt>OpenInt[1] and Time>=0.0945 and bStart)//从11:21开始启动自动交易
{
MyPrice = Max(Open,nHighPrice)+OffsetMargin;
Buy(Lots,MyPrice);
SendOr...
sflyhm2012
发表时间: 2014-01-25 13:38
浏览 (8962)
回复 (3) ...Var(0,0);
KF=GetGlobalVar(0);
If(Lots>=1 and Lots=4 and Lots=8 ) Lots=8;
SetGlobalVar(27,Lots); //记录开仓手数
//---------------
Sell(Lotp, Q_BidPrice);
Return;
}
}
...
flyer
发表时间: 2021-05-29 08:35
浏览 (845)
回复 (0) ...也高于打分均线时的入场做多
If(MarketPosition 1 and MA[1] 0)
{
If(Close[1] >= MA[1] and TrendScore[1] >= TrendScoreMA[1] And Vol > 0)
{
Buy(0,Open);
...
haizhou
发表时间: 2016-05-17 08:59
浏览 (1562)
回复 (0) ...2);
PlotNumeric("MA",MA);
if(BarStatus==2)
{
If(Q_AskPrice > ma[1] and GetGlobalVar (0) 1 AND A_BuyPosition==0 ){
//A_SendOrder(Enum_Sell,Enum_Exit,1,Q_AskPrice);
A_SendOrder (Enum_Buy,Enum_Entry,1,Q_BidPrice()) ;
SetGlobalVar (0,1);
}
If(Q_BidPrice
okmijn
发表时间: 2020-08-05 14:16
浏览 (1184)
回复 (4) ...BB:=(X1+X2)/2;
MA3:SMA(AA,40,1);
MA6:SMA(BB,20,1);
a1:= ref(close,1)MA6 and close>ma3;
b1:=close
wshengxl
发表时间: 2013-05-29 16:07
浏览 (1961)
回复 (0) ...
...
...If(CurrentTime()>0.091700 And CurrentTime()0.091700 And CurrentTime()= MyEntryPrice + TrailingStart2*MinPoint)
// 跟踪止损的条件表达式
{
...
空空大师
发表时间: 2012-03-02 08:54
浏览 (2350)
回复 (7) ...Date(0) != TrueDate(1))
{
n_loss = 0;
}
If(MarketPosition != 1 And Close[1] > AvgValue[1] And n_loss < MN)
{
Buy(1,Open);
}
If(MarketPosition == 1 And Close[1] < AvgValue[1])
{
Sell(0,Open);
}myNetProfit = NetProfit;
If(myNetProfit < myNetProfit[1]) n_loss = n_lo...
小马
发表时间: 2013-12-25 01:27
浏览 (3877)
回复 (4) ...ots; // 加仓数量
、、、、、、、
//加仓
if (BarStatus == 2 and MarketPosition == -1 )
{extryLots=A_FreeMargin /(Q_AskPrice*ContractUnit*MarginRatio);
extryLots = IntPart(extryLots );
if(condtion and Time
dengwenle
发表时间: 2007-09-14 01:24
浏览 (5076)
回复 (2) bool qd2;
qd2=CountIf(close>open,2)==2 And(Close-Open(1))/Open(1)>0.04;
定义的是bool型的qd2,赋值的时候tb提示函数调用时的参数数目与申明时不符合(太多的调用参数),怎么解决这个问题呢?
final9
发表时间: 2015-04-17 23:03
浏览 (1493)
回复 (2)