[求助]语法错误

03-26 21:42发布

老师你好:

请帮忙修正语法错误。谢谢!

MA5:=MA(C,5);

MA10:=MA(C,10);

均线差:=MA5-MA10;

JC:=MA10-MA5;

绿柱面积:=IF (均线差<0,SUM(均线差*0.1,BARSLAST(JC<0)),0);

红柱面积:=IF (均线差>0,SUM(均线差*0.1,BARSLAST(JC>0)),0);

均线面积:=IF(均线差>0,红柱面积,绿柱面积),COLOR0000FF,LINETHICK0;

A881:=IF(均线差>0,1,-1);

A882:=REF(A881,1);

A8813:=A881*A882;

A884:=BARSLAST(A8813<0);

A885:=A884+1;

趋势平均力度:=(SUM(均线差,0)-REF(SUM(均线差,0),A885))/A885,COLORFF00FF;

DRAWNUMBER(REF(均线差,1)>0 AND 均线差<=0 ,HHV(H,8),REF(红柱面积,1)),COLORRED;

DRAWNUMBER(REF(均线差,1)>0 AND 均线差<=0 ,HHV(H,8),REF(趋势平均力度,1)),COLORFF00FF;

DRAWNUMBER(REF(均线差,1)<0 AND 均线差>=0 ,LLV(L,8),REF(ABS(绿柱面积),1)),COLORGREEN;

DRAWNUMBER(REF(均线差,1)<0 AND 均线差>=0 ,LLV(L,8),REF(ABS(趋势平均力度),1)),COLORGREEN;

DRAWNUMBER(ISLASTBAR AND 均线差<0,LLV(L,5),ABS(绿柱面积));

DRAWNUMBER(ISLASTBAR AND 均线差<0,LLV(L,5),ABS(趋势平均力度));

DRAWNUMBER(ISLASTBAR AND 均线差>0,HHV(H,5),ABS(红柱面积));

DRAWNUMBER(ISLASTBAR AND 均线差>0,HHV(H,5),ABS(趋势平均力度));

老师你好:
请帮忙修正语法错误。谢谢!

MA5:=MA(C,5);

MA10:=MA(C,10);

均线差:=MA5-MA10;

JC:=MA10-MA5;

绿柱面积:=IF (均线差<0,SUM(均线差*0.1,BARSLAST(JC<0)),0);

红柱面积:=IF (均线差>0,SUM(均线差*0.1,BARSLAST(JC>0)),0);

均线面积:=IF(均线差>0,红柱面积,绿柱面积),COLOR0000FF,LINETHICK0;

A881:=IF(均线差>0,1,-1);

A882:=REF(A881,1);

A8813:=A881*A882;

A884:=BARSLAST(A8813<0);

A885:=A884+1;

趋势平均力度:=(SUM(均线差,0)-REF(SUM(均线差,0),A885))/A885,COLORFF00FF;

DRAWNUMBER(REF(均线差,1)>0 AND 均线差<=0 ,HHV(H,8),REF(红柱面积,1)),COLORRED;

DRAWNUMBER(REF(均线差,1)>0 AND 均线差<=0 ,HHV(H,8),REF(趋势平均力度,1)),COLORFF00FF;

DRAWNUMBER(REF(均线差,1)<0 AND 均线差>=0 ,LLV(L,8),REF(ABS(绿柱面积),1)),COLORGREEN;

DRAWNUMBER(REF(均线差,1)<0 AND 均线差>=0 ,LLV(L,8),REF(ABS(趋势平均力度),1)),COLORGREEN;

DRAWNUMBER(ISLASTBAR AND 均线差<0,LLV(L,5),ABS(绿柱面积));

DRAWNUMBER(ISLASTBAR AND 均线差<0,LLV(L,5),ABS(趋势平均力度));

DRAWNUMBER(ISLASTBAR AND 均线差>0,HHV(H,5),ABS(红柱面积));

DRAWNUMBER(ISLASTBAR AND 均线差>0,HHV(H,5),ABS(趋势平均力度));

付费偷看设置
发送
1条回答
文华解答
1楼 · 03-26 22:00.采纳回答
参考:

MA5:=MA(C,5);

MA10:=MA(C,10);

均线差:=MA5-MA10;

JC:=MA10-MA5;

绿柱面积:=IF (均线差<0,SUM(均线差*0.1,BARSLAST(JC<0)),0);

红柱面积:=IF (均线差>0,SUM(均线差*0.1,BARSLAST(JC>0)),0);

均线面积:=IF(均线差>0,红柱面积,绿柱面积),COLOR0000FF;

A881:=IF(均线差>0,1,-1);

A882:=REF(A881,1);

A8813:=A881*A882;

A884:=BARSLAST(A8813<0);

A885:=A884+1;

趋势平均力度:=(SUM(均线差,0)-REF(SUM(均线差,0),A885))/A885,COLORFF00FF;

DRAWNUMBER1(REF(均线差,1)>0 AND 均线差<=0 ,HHV(H,8),REF(红柱面积,1),0),COLORRED;

DRAWNUMBER1(REF(均线差,1)>0 AND 均线差<=0 ,HHV(H,8),REF(趋势平均力度,1),0),COLORFF00FF;

DRAWNUMBER1(REF(均线差,1)<0 AND 均线差>=0 ,LLV(L,8),REF(ABS(绿柱面积),1),0),COLORGREEN;

DRAWNUMBER1(REF(均线差,1)<0 AND 均线差>=0 ,LLV(L,8),REF(ABS(趋势平均力度),1),0),COLORGREEN;

DRAWNUMBER1(ISLASTBAR AND 均线差<0,LLV(L,5),ABS(绿柱面积),0);

DRAWNUMBER1(ISLASTBAR AND 均线差<0,LLV(L,5),ABS(趋势平均力度),0);

DRAWNUMBER1(ISLASTBAR AND 均线差>0,HHV(H,5),ABS(红柱面积),0);

DRAWNUMBER1(ISLASTBAR AND 均线差>0,HHV(H,5),ABS(趋势平均力度),0);