刘川瑜XiaobaoNana
2024-11-13 14:10:28
最佳回答
你好!不知你的“上穿长期均线”是什么均线,暂且用m10和m20吧,公式如下:{主图}ma10:ma(c,10);ma20:ma(c,20);tj1:=cross(ma10,ma20);tj2:=cross(ma20,ma10);drawicon(ref(tj1,1),ma10,7);drawicon(ref(tj2,1),h,8);tj3:=barslast(ma10<ma20);tj4:=barslast(ma10>ma20);{画柱}stickline(tj3 ,h,l,0,0),colorred;stickline(tj3 and c>o,c,o,3,0),colorred;stickline(tj3 and c<o,c,o,3,1),colorred;stickline(tj4 and c>o,h,l,0,0),colorgreen;stickline(tj4 ,c,o,0,0),colorgreen;stickline(tj4 and c>o,c,o,3,0),colorgreen;stickline(tj4 and c<o,c,o,3,1),colorgreen;希望能够帮助您,顺祝马年投资顺利! 20210311