发表于:2008-10-11 01:21只看该作者
2楼
#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color1 LightSeaGreen
#property indicator_color2 DeepPink
#property indicator_color3 Wheat
extern int ADX_Period=14;
double ADX0;
double ADX1;
double ADX2;
datetime preTime=0;
void init() {
SetIndexBuffer(0, ADX0);
SetIndexBuffer(1, ADX1);
SetIndexBuffer(2, ADX2);
SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,0);
SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,0);
SetIndexStyle(2,DRAW_LINE,STYLE_DOT,0);
}
void start() {
int limit;
int counted_bars=IndicatorCounted();
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
for(int t=0; tpreTime ) {
if(ADX1[0]>=ADX0[0] && ADX1[1]=ADX0[0] && ADX2[1]
发表于:2008-10-11 12:44只看该作者
4楼
:lol :lol :lol :lol :lol
韬客社区www.talkfx.co
发表于:2008-10-11 15:22只看该作者
5楼