通达信均线走平或上翘公式
通达信均线走平或上翘公式,条件①【当天收盘的MA20>过去2~5天的MA20平均值(或大于过去2~10天MA20的最小值)】或者【过去3天MA20的均值>过去3~15的M...
通达信均线走平或上翘公式,条件①【当天收盘的MA20>过去2~5天的MA20平均值(或大于过去2~10天MA20的最小值)】或者【过去3天MA20的均值>过去3~15的MA20均值】或者【最近3天MA20的均值大于过去4~9天的MA20均值且最近3天MA20均值<过去10~30的MA20均值】;条件②最近10天至少有一天的实体贯穿ma5/ma10/ma20(即收盘价大于5、10、20三条均线的最大值且开盘价小于这3条均线的最小值)
展开
1个回答
展开全部
MA05:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
AVERAGE:=SUM(MA20,3)/3;
CONDTION_A1:=SUM(MA20,4)/4;
CONDTION_A2:=LLV(MA20,9);
CONDTION_A:=MA20>REF(CONDTION_A1,1) OR MA20>REF(CONDTION_A2,1);
CONDTION_B1:=SUM(MA20,12)/12;
CONDTION_B:=AVERAGE>REF(CONDTION_B1,3);
CONDTION_C1:=SUM(MA20,5)/5;
CONDTION_C2:=SUM(MA20,20)/20;
CONDTION_C:=AVERAGE>REF(CONDTION_C1,4) AND AVERAGE<REF(CONDTION_C2,10);
CONDTION_D:=CONDTION_A OR CONDTION_B OR CONDTION_C;
CONDTION_1:=MAX(MAX(MA05,MA10),MA20);
CONDTION_2:=MIN(MIN(MA05,MA10),MA20);
CONDTION_3:=O<CONDTION_2 AND C>CONDTION_1;
CONDTION:CONDTION_D AND CONDTION_3 AND DYNAINFO(4)>0;
已测试;
MA10:=MA(C,10);
MA20:=MA(C,20);
AVERAGE:=SUM(MA20,3)/3;
CONDTION_A1:=SUM(MA20,4)/4;
CONDTION_A2:=LLV(MA20,9);
CONDTION_A:=MA20>REF(CONDTION_A1,1) OR MA20>REF(CONDTION_A2,1);
CONDTION_B1:=SUM(MA20,12)/12;
CONDTION_B:=AVERAGE>REF(CONDTION_B1,3);
CONDTION_C1:=SUM(MA20,5)/5;
CONDTION_C2:=SUM(MA20,20)/20;
CONDTION_C:=AVERAGE>REF(CONDTION_C1,4) AND AVERAGE<REF(CONDTION_C2,10);
CONDTION_D:=CONDTION_A OR CONDTION_B OR CONDTION_C;
CONDTION_1:=MAX(MAX(MA05,MA10),MA20);
CONDTION_2:=MIN(MIN(MA05,MA10),MA20);
CONDTION_3:=O<CONDTION_2 AND C>CONDTION_1;
CONDTION:CONDTION_D AND CONDTION_3 AND DYNAINFO(4)>0;
已测试;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询