{KDJ日金}
日K:="KDJ.K#DAY"(9,3,3);{9/3/3}
日D:="KDJ.D#DAY"(9,3,3);
{DRAWICON(日K>日D,0.1,32);
DRAWICON(日K<日D,0.1,2);
DRAWTEXT(ISLASTBAR=1,0.1,'日K');}
{MACD日金}
日DIF:="macd.DIF#DAY"(12,26,9);{12/26/9}
日DEA:="MACD.DEA#DAY"(12,26,9);
{DRAWICON(日DIF>日DEA,0.2.1,32);
DRAWICON(日DIF<日DEA,0.2,2);
DRAWTEXT(ISLASTBAR=1,0.2,'日M');}
{RSI日}
日RSI:="RSI.RSI1#DAY"(5);{5}
{DRAWICON(日RSI>50,0.3,32);
DRAWICON(日RSI<50,0.3,2);
DRAWTEXT(ISLASTBAR=1,0.3,'日R');}
{KDJ周金}
周K:="KDJ.K#WEEK"(9,3,3);
周D:="KDJ.D#WEEK"(9,3,3);
{DRAWICON(周K>周D,0.4,13);
DRAWICON(周K<周D,0.4,2);
DRAWTEXT(ISLASTBAR=1,0.4,'周K');}
{MACD周金}
周DIF:="MACD.DIF#WEEK"(12,26,9);{12/26/9}
周DEA:="MACD.DEA#WEEK"(12,26,9);
{DRAWICON(周DIF>周DEA,0.5,13);{13}
{DRAWICON(周DIF<周DEA,0.5,2);
DRAWTEXT(ISLASTBAR=1,0.5,'周M');}
{RSI周}
周RSI:="RSI.RSI1#WEEK"(9);{9}
{DRAWICON(周RSI>50,0.6,13);
DRAWICON(周RSI<50,0.6,2);
DRAWTEXT(ISLASTBAR=1,0.6,'周R');}
{KDJ月金}
月K:="KDJ.K#MONTH"(9,3,3);
月D:="KDJ.D#MONTH"(9,3,3);
{DRAWICON(月K>月D,0.7,33);
DRAWICON(月K<月D,0.7,2);
DRAWTEXT(ISLASTBAR=1,0.7,'月K');}
{MACD月金}
月DIF:="MACD.DIF#MONTH"(12,26,9);{12/26/9}
月DEA:="MACD.DEA#MONTH"(12,26,9);
{DRAWICON(月DIF>月DEA,0.8,33);
DRAWICON(月DIF<月DEA,0.8,2);
DRAWTEXT(ISLASTBAR=1,0.8,'月M');}
{RSI月}
月RSI:="RSI.RSI1#MONTH"(9);{9}
{DRAWICON(月RSI>50,0.9,33);
DRAWICON(月RSI<50,0.9,2);
DRAWTEXT(ISLASTBAR=1,0.9,'月R');}
X1:=日K>日D;
X2:=日DIF>日DEA;
X3:=日RSI>50;
X4:=周K>周D;
X5:=周DIF>周DEA;
X6:=周RSI>50;
X7:=月K>月D;
X8:=月DIF>月DEA;
X9:=月RSI>50;
黑马初显:X1 AND X2 AND X3 AND X4 AND X5 AND X6 AND X7 AND X8 AND X9;
九毛八公式解读
日K赋值:"KDJ的K[取日线数据]"(9,3,3) 日D赋值:"KDJ的D[取日线数据]"(9,3,3) 日DIF赋值:"平滑异同平均的DIF[取日线数据]"(12,26,9) 日DEA赋值:"平滑异同平均的DEA[取日线数据]"(12,26,9) 日RSI赋值:"RSI的RSI1[取日线数据]"(5) 周K赋值:"KDJ的K[取周线数据]"(9,3,3) 周D赋值:"KDJ的D[取周线数据]"(9,3,3) 周DIF赋值:"平滑异同平均的DIF[取周线数据]"(12,26,9) 周DEA赋值:"平滑异同平均的DEA[取周线数据]"(12,26,9) 周RSI赋值:"RSI的RSI1[取周线数据]"(9) 月K赋值:"KDJ的K[取月线数据]"(9,3,3) 月D赋值:"KDJ的D[取月线数据]"(9,3,3) 月DIF赋值:"平滑异同平均的DIF[取月线数据]"(12,26,9) 月DEA赋值:"平滑异同平均的DEA[取月线数据]"(12,26,9) 月RSI赋值:"RSI的RSI1[取月线数据]"(9) X1赋值:日K>日D X2赋值:日DIF>日DEA X3赋值:日RSI>50 X4赋值:周K>周D X5赋值:周DIF>周DEA X6赋值:周RSI>50 X7赋值:月K>月D X8赋值:月DIF>月DEA X9赋值:月RSI>50 输出黑马初显:X1 AND X2 AND X3 AND X4 AND X5 AND X6 AND X7 AND X8 AND X9