 | |  |  |
原码金牛实战BBD:
DRAWGBK(C<>O,COLORRGB(100,0,250),COLORRGB(0,0,255),0);
金牛趋势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),colorstick;
{紅柱}
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱>0,0,金牛柱,8,0),COLOR0000AA;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱>0,0,金牛柱,7,0),COLOR0000BB;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱>0,0,金牛柱,6,0),COLOR0000CC;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱>0,0,金牛柱,5,0),COLOR0000DD;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱>0,0,金牛柱,4,0),COLOR0000EE;
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,金牛柱,6,0),COLOR0000CC;
STICKLINE(金牛柱>ref(金牛柱,1)and金牛柱>0,0,金牛柱,5,0),COLOR0000DD;
STICKLINE(金牛柱>ref(金牛柱,1)and金牛柱>0,0,金牛柱,4,0),COLOR0000EE;
STICKLINE(金牛柱>ref(金牛柱,1)and金牛柱>0,0,金牛柱,3,0),COLOR0000FF;
{绿柱子}
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱>0,0,金牛柱,9,0),COLOR008800;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱>0,0,金牛柱,7,0),COLOR009900;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱>0,0,金牛柱,6,0),COLOR00AA00;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱>0,0,金牛柱,5,0),COLOR00BB00;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱>0,0,金牛柱,4,0),COLOR00CC00;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱>0,0,金牛柱,3,0),COLOR00DD00;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱>0,0,金牛柱,2,0),COLOR00EE00;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱>0,0,金牛柱,1,0),COLOR00FF00;
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,金牛柱,6,0),COLOR0000CC;
STICKLINE(金牛柱>ref(金牛柱,1)and金牛柱<0,0,金牛柱,5,0),COLOR0000DD;
STICKLINE(金牛柱>ref(金牛柱,1)and金牛柱<0,0,金牛柱,4,0),COLOR0000EE;
STICKLINE(金牛柱>ref(金牛柱,1)and金牛柱<0,0,金牛柱,3,0),COLOR0000FF;
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,金牛柱,7,0),COLOR0000CC;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱<0,0,金牛柱,6,0),COLOR0000DD;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱<0,0,金牛柱,5,0),COLOR0000EE;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱<0,0,金牛柱,4,0),COLOR0000FF;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱<0,0,金牛柱,3,0),COLOR0000AA;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱<0,0,金牛柱,2,0),COLOR0000BB;
STICKLINE(金牛柱<ref(金牛柱,1)and金牛柱<0,0,金牛柱,1,0),COLOR0000CC;
STICKLINE(反金牛柱>ref(反金牛柱,1)and反金牛柱<0,0,反金牛柱,9,0),COLOR000055;
STICKLINE(反金牛柱>ref(反金牛柱,1)and反金牛柱<0,0,反金牛柱,6,0),COLOR000066;
STICKLINE(反金牛柱>ref(反金牛柱,1)and反金牛柱<0,0,反金牛柱,3,0),COLOR000077;
STICKLINE(反金牛柱>ref(反金牛柱,1)and反金牛柱<0,0,反金牛柱,1,0),COLOR000099;
STICKLINE(反金牛柱>ref(反金牛柱,1)and反金牛柱<0,0,反金牛柱,6,0),COLOR0000BB;
STICKLINE(反金牛柱>ref(反金牛柱,1)and反金牛柱<0,0,反金牛柱,3,0),COLOR0000DD;
STICKLINE(反金牛柱>ref(反金牛柱,1)and反金牛柱>0,0,反金牛柱,1,0),COLOR0000FF;
| |  | |  |
|