Params
Numeric FastLength (5);
Numeric SlowLength (20);
Numeric N(1);
Vars
NumericSeries AvgValuel;
NumericSeries AvgValue2;
NumericSeries ATR;
NumericSeries Buy_line;
NumericSeries Sell_line;
NumericSeries CurrentB;
Begin
//集合竞价和小节休息过滤
If(!CallAuctionFilter()) Return;
AvgValue1 = AverageFC(C1ose,FastLength);
AvgValue2 = AverageFC(Close,SlowLength);
ATR =AvgTrueRange(S1owLength);
If(CrossOver(AvgValuel[1],AvgValue2[1])) CurrentB = CurrentBar;
Sel1_line =Lowest(1,20)-N*ATR;
Buy_line = Highest(h,20)+N*ATR;
PlotNumeric(\"Se11_line\",Sel1_line);
PlotNumeric( \"Buy_line\" ,Buy_line);
PlotNumeric( \"AvgValue1\",AvgValuel);
PlotNumeric(\"AvgValue2\",AvgValue2);
If( MarketPosition==0 And CurrentBar>CurrentB and CurrentBar<CurrentB+20 And CrossOver(High,Buy_line[1])and AvgValuel[1]>AvgValue2[1]);
Buy(0,Max( o ,Buy_line[1]));
If( Marketposition==1 and AvgValue1[1]< AvgValue2[1]);
Se11(0,o );
End
标红处一直显示小括号不匹配,怎么改都不行,什么情况?
你这代码我不知道怎么吐槽
这里定义的valueL 下面用的是value1
c 1 ose还是cLose?
标点符号要用英文半角
新手不要用旗舰版了,直接用tbquant