程序化交易模型源码: VAR1:=SMA(MAX(OPEN-REF(OPEN,1),0),6,1)/SMA(ABS(OPEN-REF(OPEN,1)),6,1)*100; VAR2:=SMA(MAX(CLOSE- REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE- REF(CLOSE,1)),6,1)*100; VAR3:=SMA(MAX(HIGH-REF(HIGH,1),0),6,1)/SMA(ABS(HIGH-REF(HIGH,1)),6,1)*10...
一、模型算法 开盘后1小时,价格上穿前1小时高点,买入开仓 开盘后1小时,价格下穿前1小时低点,卖出开仓 二、模型源码 HH:=VALUEWHEN(TIME=1000,HHV(HIGH,12)); LL:=VALUEWHEN(TIME=1000,LLV(LOW,12)); UPPERBAND:HH,BOLD,COLORRED; LOWERBAND:LL,BOLD,COLORGREEN; TI...
//以20日 突破为基础的偏短线系统,突破 开仓 // 平仓:多头头寸为10日 最低价 //对于空头头寸为10日 最高价。 A:=REF(HHV(H,20),1); B:=REF(LLV(L,20),1); AA:=REF(HHV(H,10),1); BB:=REF(LLV(L,10),1); CROSS(H,A),BK;//突破20高点开多仓 CROSS(AA,H),SP;//跌破10低...
程序化交易模型源码: //在一分钟K线下加载交易模型 //指标名称为YYMA A:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; B:=MA(CLOSE,26); BK1:=AB ISUP (C-O)=(H-L-C+O) CA; SP1:=AB ISDOWN (O-C)=(H-L-O+C) CA; SK1:=AB ISDOWN (O-C)=(H-L-O+C) CA; BP1:=...
//参数:N 0 999 34 MID:=MA(CLOSE,N); TMP2:=STD(CLOSE,N); TOP:=MID+2*TMP2; BOTTOM:=MID-2*TMP2; MIDREF(MID,1)LOWMID,BK; MIDREF(MID,1)LOWMID,BP; MIDREF(MID,1)HIGHMID,SK; MIDREF(MID,1)HIGHMID,SP; MIDREF(MID,1),BP; MIDREF(MID,1),SP;...
交易方式: 趋势交易系统. 开仓选择: 突破时开仓型. 平仓选择: 回调且突破时止盈止损平仓. 是否启用未来函数: 否 . 指标公式主要功能简介: 多头: 以红色k线表示,并出现买字样提示. 空头: 以绿色k线表示,并出现卖字样提示. 是否有开平仓前提示: 是, 开平仓前k线会变为灰...
HH1:=REF(HHV(H,34),1); LL1:=REF(LLV(L,34),1); A:=HHV(H,BARSBK+1); B:=LLV(L,BARSSK+1); COPENCHH1,BK; COPENCHH1,BP; COPENREF((COPEN),1)CLL1,SK; COPENREF((COPEN),1)CLL1,SP; TIME=1455,SP; TIME=1455,BP; (C=BKPRICE-15*1||C=BKPRICE+30*1)BKPRICE0,SP; (C=SKP...
//ATR资金管理模型 A:=10T/手;//合约单位 TR := MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW)); ATR:= DMA(TR,0.05); SS:=INTPART(MONEY/(ATR*A));//模型中没有四舍五入函数,以取整代替。 DIFF := EMA(CLOSE,SHORT) - EMA(CLOSE,LONG); DEA :=...
//该模型模型不错,主要是一些高手提供出来给大家学习 // 文华财经免费白糖 BA:= BARPOS; // 当前K线位置(从1开始) VOL1:= IFELSE(LLV(VOL,0)=0, 1, INTPART(VOL*100)); // 从头到尾遍历。只要出现 成交量=0时,返回1。否则,返回VOL*100取整。 HC:=LLV(IFELSE(H-C=0...
TYP:=(CLOSE+HIGH+LOW)/3; CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); CROSS(CCI,100)(BARSBKBARSSK||NOT(BARSBK0)),BK; CROSS(100,CCI)||CBKPRICE-30,SP; CROSS(100,CCI)(BARSBKBARSSK||NOT(BARSSK0)),SK; CROSS(CCI,100)||CSKPRICE+30,BP; AUTOFILTER;...
金鑫实战 MA10:MA(CLOSE,10); STICKLINE((CLOSE MA10),LOW,HIGH,0.8,0),coloryellow; STICKLINE((CLOSE MA10),OPEN,CLOSE,4,0),coloryellow; LC:=REF(CLOSE,1); RSI:=((SMA(MAX((CLOSE - LC),0),9,1) / SMA(ABS((CLOSE - LC)),9,1)) * 100); STICKLINE((RSI 20),LOW,HI...
.{庄家行踪} Var1:=EMA(EMA(CLOSE,13),13); 控盘:= (Var1-REF(Var1,1))/REF(Var1,1)*1000,colorffcccc,pointdot; STICKLINE(控盘0,控盘,0,4,0),colorwhite; 无庄控盘:控盘0,colorwhite; STICKLINE(控盘REF(控盘,1) AND 控盘0,控盘,0,4,1),colorred; 有庄控盘: 控盘REF(...
抓主升浪公式} Var1:=WINNER(CLOSE*0.900)*100; Var2:=VOL/CAPITAL*100; Var3:=Var1-Var2; Var4:=Var31; Var5:=Var3=1 AND Var35; Var6:=Var3=5 AND Var310; Var7:=Var3=10 AND Var325; Var8:=Var3=25; 极弱股:IF(Var4, (-10), 0),COLORff3399, STICK; 弱势股:IF(Var5,...
kdj3j---很好的kdj {kdj3j}{kdj3j} j3:=kdj.j(3,3,3),colorffffff; 短mj3:ema(j3,2),colorffffaa; m短mj3:ema(短mj3,2),coloraaaaaa; j27:=kdj.j(27,3,3),colorffffff; 中mj27:ema(j27,5),color00ffff,linethick2; m中mj27:ema(中mj27,3),color0000ff,linethick2; stic...
美布林线 MID:=MA(CLOSE,21),colorwhite; UPPER:=MID + 1.96*STDDEV(CLOSE,21),coloryellow; LOWER:=MID - 1.96*STDDEV(CLOSE,21),coloryellow; UP:=MID + 2.58*STDDEV(CLOSE,21),colorff00ff; LOOW:=MID - 2.58*STDDEV(CLOSE,21),colorff00ff; 单边上升:=(cmid); 单边...
抛砖引玉 {抛砖引玉}{副图} MA1:MA(CLOSE,19),CoLor00FFFF; MA2:MA(CLOSE,45),CoLorFF00FF; MA3:MA(CLOSE,69),CoLor00FF00; XDKX0:=IF((DATE1080701) AND (DATE900101),1,0); XDKX1:=(((OPENMA1) or (OPENMA2)) or (OPENMA3)); XDKX2:=(CLOSEMAX(MA1,MAX(MA2,MA3))); X...
DMI14---有研判行情的独到的功能。 {DMI14} N:=14; M:=6; TR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N); HD := HIGH-REF(HIGH,1); LD := REF(LOW,1)-LOW; DMP:= SUM(IF(HD0 AND HDLD,HD,0),N); DMM:= SUM(IF(LD0 AND LDHD,LD,0),N);...
{宋氏主升浪} 晴雨线:IF((DATE 1090815),(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1)),0),COloryellow; MA1:=MA(CLOSE,55); DIFF:=EMA(CLOSE,1...
成交分析.FNC...
大智慧《秋高气爽》指标已破解 {秋高气爽} {N:3,30,13;N1:1,100,20;N2:1,100,4;N3:1,100,2;M0:1,100,30;M1:1,100,5;M2:1,100,5;M3:1,100,3;} 紫彩:SMA(SMA(((CLOSE - LLV(LOW,M0))/(HHV(HIGH,M0) - LLV(LOW,M0)))*(100),M1,1),M2,1),ColorA5478A; 黄条:SMA(紫彩,M3,1),...