投资者咨询:模型加载不了 (文华财经wh9)
来源:文华财经 日期:2019-2-15 20:30
技术人员回复
日期:2019-2-15 20:33
投资者咨询:模型加载不了 (文华财经wh9)
来源:文华财经 日期:2019-2-15 20:30
Params
Numeric Lots(5);
Numeric Length(9);
Numeric Length1(3);
Numeric Length2(3);
Numeric ShortLengh(12);//MACD参数
Numeric LongLength(26);
Numeric M(9);
Numeric N1(5);//均线参数
Numeric N2(10);//均线参数
Vars
NumericSeries RSV;
NumericSeries K;
NumericSeries D;
NumericSeries J;
NumericSeries DIFF;
NumericSeries DEA;
NumericSeries MA1;
NumericSeries MA2;
NumericSeries JCN;
NumericSeries SCN;
NumericSeries Buy1;
NumericSeries SellShort1;
Setting
MultSig:0,0,0,0,1000,0;
Begin
RSV = (Close - LLV(Low,Length)) / (HHV(High,Length) - LLV(Low,Length)) * 100;
K = Sma(RSV,Length1,1);
D = Sma(K,Length2,1);
J = 3 * K - 2 * D;
DIFF = Ema(Close, ShortLengh) - Ema(Close, LongLength);
DEA = Ema(DIFF,M);
MA1 = Ma(Close,N1);
MA2 = Ma(Close,N2);
SCN = SumBars(CrossDown(K,D),1);
JCN = SumBars(CrossUp(K,D),1);
Buy1 = LLV(K,SCN)<10 && MA1="MA1" >MA2 && DIFF>DEA && K>D;
SellShort1 = HHV(K,JCN)>90 && MA1BKPrice && CloseRef(High,1))
{
BuyToCover(SKVol,Active_Order);
}
If(Close>SKPrice && K>D)
{
BuyToCover(SKVol,Active_Order);
}
PlotLine("MA1",MA1,Green);
PlotLine("MA2",MA2,Yellow);
DrawIcon(CountSig(Buy,1)==1 ,RefSig_Price(Buy,1),"ICO119");
DrawIcon(CountSig(SellShort,1)==1 ,RefSig_Price(SellShort,1),"ICO119");
DrawIcon(CountSig(Sell,1)==1 ,RefSig_Price(Sell,1),"ICO119");
DrawIcon(CountSig(BuyToCover,1)==1 ,RefSig_Price(BuyToCover,1),"ICO119");
KText(IsLastBuy&&CountSig(Buy,1)>0 ,0,Low,Red,"多开");
KText(IsLastSellShort&&CountSig(SellShort,1)>0 ,0,High,Green,"空开");
KText(IsLastSell&&CountSig(Sell,1)>0 ,0,High,Green,"多平");
KText(IsLastBuyToCover&&CountSig(BuyToCover,1)>0 ,0,Low,Red,"空平");
PlotLine("资金",MoneyTot,Yellow,Linethick1,2,0);//资金曲线
End
投资者咨询:模型加载不了 (文华财经wh9)
来源:文华财经 日期:2019-2-15 20:30
技术人员回复
日期:2019-2-15 20:52
投资者咨询:模型加载不了 (文华财经wh9)
来源:文华财经 日期:2019-2-15 20:30