想在K线上加一条16天均线,K线(在其上为红色其下变绿色)_大智慧

显示最后一期的MA5的数值在图形上

显示最后一期的MA5的数值在图形上

【股票资源馆】让数据触手可得!专业和谐破解高端炒股软件!

是国内最好的股票软件、股票公式指标、股票书籍下载网站;提供最全面的股票知识、炒股教程、黑马股票、股票资讯、期货外汇等给大家在线参考学习。

编写条件:

编写方法:

网友求助:

想在K线上加一条16天均线,但我想K线边成以下 ,K线在16天上为红色,下面为绿色
想在K线上加一条16天均线,K线(在其上为红色其下变绿色)

MA20:=MA(CLOSE,16);
STICKLINE(O>C AND C>MA20,O,C,2,0),colorred;
STICKLINE(O>C AND C>MA20,L,H,0.5,0),colorred;
STICKLINE(O<C AND C>MA20,O,C,2,0),colorred;
STICKLINE(O<C AND C>MA20,C,H,0.5,0),colorred;
STICKLINE(O<C AND C>MA20,O,L,0.5,0),colorred;
STICKLINE(O=C AND C>MA20,O,C,2,0),colorred;
STICKLINE(O=C AND C>MA20,L,H,0.5,0),colorred;
STICKLINE(O>C AND C<MA20,O,C,2,0),colorblue;
STICKLINE(O>C AND C<MA20,L,H,0.5,0),colorblue;
STICKLINE(O<C AND C<MA20,O,C,2,0),colorblue;
STICKLINE(O<C AND C<MA20,C,H,0.5,0),colorblue;
STICKLINE(O<C AND C<MA20,O,L,0.5,0),colorblue;
STICKLINE(O=C AND C<MA20,O,C,2,0),colorblue;
STICKLINE(O=C AND C<MA20,L,H,0.5,0),colorblue;

解答如下: 

MA20:MA(CLOSE,16),COLORGREEN,LINETHICK2;
IF(C>=MA20,MA20,DRAWNULL),COLORRED,LINETHICK2;
STICKLINE(O>C AND C>MA20,O,C,2,0),COLORRED;
STICKLINE(O>C AND C>MA20,L,H,0,0),COLORRED;
STICKLINE(O<C AND C>MA20,O,C,2,0),COLORRED;
STICKLINE(O<C AND C>MA20,C,H,0,0),COLORRED;
STICKLINE(O<C AND C>MA20,O,L,0,0),COLORRED;
STICKLINE(O=C AND C>MA20,O,C,2,0),COLORRED;
STICKLINE(O=C AND C>MA20,L,H,0,0),COLORRED;
STICKLINE(O>C AND C<MA20,O,C,2,0),COLORBLUE;
STICKLINE(O>C AND C<MA20,L,H,0,0),COLORBLUE;
STICKLINE(O<C AND C<MA20,O,C,2,0),COLORBLUE;
STICKLINE(O<C AND C<MA20,C,H,0,0),COLORBLUE;
STICKLINE(O<C AND C<MA20,O,L,0,0),COLORBLUE;
STICKLINE(O=C AND C<MA20,O,C,2,0),COLORBLUE;
STICKLINE(O=C AND C<MA20,L,H,0,0),COLORBLUE;

 

 

{股票资源馆:www.lixiangluntan.com专业和谐高端炒股软件--公式编写交流--加QQ751161480--}

【股票资源馆】大智慧专业版破解版,大智慧机构破解版,大智慧ACE破解版,ACE策略,AI活跃度。

“7日内有涨停”的选股公式

“7日内有涨停”的选股公式

大智慧策略终端/职业股民首选分析软件:支持ACE数据,支持L2行情全推数据,支持股票池,超赢数据,价格低廉,支持月季费年费。:

下载地址:https://share.weiyun.com/LPoU0GHu