简单?快乐
2024-11-17 00:57:56
最佳回答
var1:=(c+h+o+l)/4;卖出:ma(var1,n)*(1+p1/1000);买入:ma(var1,m)*(1-p2/1000);幅度:100*(卖出-买入)/买入,linethick0;ma1:=ma(var1,3);stickline(卖出>low and 卖出<high,卖出,max(卖出,max(open,close)),3,0),colorgreen;stickline(卖出>min(c,o) and 卖出<max(c,o),卖出,max(open,close),3,0),colorgreen;stickline(卖出>low and 卖出<high,卖出,high,0,0),colorgreen;stickline(卖出<low,open,close,3,0),colorgreen;stickline(卖出<low,high,low,0,0),colorgreen;stickline(买入>low and 买入<high,买入,min(min(open,close),买入),3,0),colormagenta;stickline(买入>min(c,o) and 买入<max(c,o),买入,min(open,close),3,0),colormagenta;stickline(买入>low and 买入<high,买入,low,0,0),colormagenta;stickline(买入>high,open,close,3,0),colormagenta;stickline(买入>high,high,low,0,0),colormagenta;drawtext(cross(low,买入),low*0.95,'低吸'),colorred,linethick2;by:cross(low,买入),linethick0;drawtext(cross(卖出,high),high*1.02,'卖出'),colorgreen;sl:cross(卖出,high),linethick0; 20210311