- 最后登录
- 2012-2-22
- 注册时间
- 2010-9-8
- 阅读权限
- 100
- 帖子
- 71
- 精华
- 0
- 积分
- 1160
      
|
vars: upval(0),downval(0),Xclose(0),Xopen(0),index(0),return(0);
upval=1;
Downval=2;
If close>open then
return=UpVal
Else
return=DownVal;
For index=1 to 6
Begin
If open<=Maxlist(open[index],close[index]) and
open>=Minlist(open[index],close[index]) and
close<=Maxlist(open[index],close[index]) and
close>=Minlist(open[index],close[index]) then
return=return[index];
End;
If return=1 and return[1]=1 then
Begin
PlotPaintBar(high,low,open,close,"1",red);
End;
If return=2 and return[1]=2 then
Begin
//Color=green;
PlotPaintBar(high,low,open,close,"2",green);
End;
If return<>return[1] then
Begin
PlotPaintBar(high,low,open,close,"2",blue);
End;
试试这个
|
|