YG光谷莹莹
2024-11-30 08:01:25
最佳回答
颜色可以在分号前加个逗号点击插入选择颜色ma2:ma(c,2);ma3:ma(c,3);ma4:ma(c,4); duoshou:ifelse((ma2>ref(ma2,1))&&(ma3>ref(ma3,1))&&(ma4>ref(ma4,1))&&(ma2>ma3)&&(ma3>ma4)&&(not(hour=15)),c,refx(c,1));kongshou:ifelse((ma2<ref(ma2,1))&&(ma3<ref(ma3,1))&&(ma4<ref(ma4,1))&&(ma2<ma3)&&(ma3<ma4)&&(not(hour=15)),c,refx(c,1));ci:count((ma2>ref(ma2,1))&&(ma3>ref(ma3,1))&&(ma4>ref(ma4,1))&&(ma2>ma3)&&(ma3>ma4)&&(not(hour=15)),n)+count((ma2<ref(ma2,1))&&(ma3<ref(ma3,1))&&(ma4<ref(ma4,1))&&(ma2<ma3)&&(ma3<ma4)&&(not(hour=15)),n);//k线根数改成n值,是多少,就直接代人可以了cc:c;//收盘价线shousun:(intpart(c*p/10)*10+10);//p为止损比例 需要填入shouying:(intpart(c*s/10)*10+10);//s为止盈比例 需要填入cdmjj:ifelse(((duosho**efx(l,1))<shousun),(refx(c,1)-duoshou),(-shousun));zdmjj:ifelse(((refx(h,1)-duoshou)<shouying),cdmjj,shouying);ckmjj:ifelse(((refx(h,1)-kongshou)<shousun),(kongsho**efx(c,1)),(-shousun)); zkjjm:ifelse(((kongsho**efx(l,1))<shouying),ckjjm,(shouying));dmjj:ifelse((ma2>ref(ma2,1))and(ma3>ref(ma3,1))and(ma4>ref(ma4,1))and(ma2>ma3)and(ma3>ma4)and(not(hour=15)),(zdmjj-20),0);kjjm:ifelse((ma2<ref(ma2,1))and(ma3<ref(ma3,1))and(ma4<ref(ma4,1))and(ma2<ma3)and(ma3<ma4)and(not(hour=15)),(zkjjm-20),0); 20210311