金牛趋势1线:=(CLOSE-ma(CLOSE,12))/ma(CLOSE,1)*100;
金牛趋势2线:=(CLOSE-MA(CLOSE,3))/MA(CLOSE,3)*100;
金牛柱:sma(金牛趋势1线,60,1);
反金牛柱:sma(金牛趋势2线,13,1);
{紅柱}
STICKLINE(金牛柱<ref(金牛柱,1)and 金牛柱>0,0,金牛柱,8,0),COLOR0000AA;
STICKLINE(金牛柱<ref(金牛柱,1)and 金牛柱>0,0,金牛柱,3,0),COLOR0000FF;
STICKLINE(金牛柱<ref(金牛柱,1)and 金牛柱>0,0,金牛柱,2,0),COLORRED;
STICKLINE(金牛柱>ref(金牛柱,1)and 金牛柱>0,0,金牛柱,8,0),COLOR0000AA;
STICKLINE(金牛柱>ref(金牛柱,1)and 金牛柱>0,0,金牛柱,7,0),COLOR0000BB;
STICKLINE(金牛柱>ref(金牛柱,1)and 金牛柱>0,0,金牛柱,3,0),COLOR0000FF;
{绿柱子}
STICKLINE(金牛柱<ref(金牛柱,1) and 金牛柱>0,0,金牛柱,8,0),COLOR008800;
STICKLINE(金牛柱<ref(金牛柱,1) and 金牛柱>0,0,金牛柱,3,0),COLOR00DD00;
STICKLINE(金牛柱<ref(金牛柱,1) and 金牛柱>0,0,金牛柱,2,0),COLOR00EE00;
STICKLINE(金牛柱>ref(金牛柱,1)and 金牛柱>0,0,金牛柱,2,0),COLORRED;
{股旁网-股票公式网站 www.gupang.com}
{藍柱}
STICKLINE(金牛柱>ref(金牛柱,1)and 金牛柱<0,0,金牛柱,8,0),COLOR0000AA;
STICKLINE(金牛柱>ref(金牛柱,1)and 金牛柱<0,0,金牛柱,2,0),COLORRED;
STICKLINE(金牛柱>ref(金牛柱,1)and 金牛柱<0,0,金牛柱,1,0),COLOR0000AA;
STICKLINE(金牛柱<ref(金牛柱,1)and 金牛柱<0,0,金牛柱,8,0),COLOR0000BB;
STICKLINE(金牛柱<ref(金牛柱,1)and 金牛柱<0,0,金牛柱,2,0),COLOR0000BB;
STICKLINE(金牛柱<ref(金牛柱,1)and 金牛柱<0,0,金牛柱,1,0),COLOR0000CC;
STICKLINE(反金牛柱>ref(反金牛柱,1)and 反金牛柱<0,0,反金牛柱,8,0),COLOR000055;
STICKLINE(反金牛柱>ref(反金牛柱,1)and 反金牛柱>0,0,反金牛柱,1,0),COLOR0000FF;
202108211227.jpg
|