//--- input parameters extern int shortp=5; extern int longp=20; extern double Lots=0.1; int Crossed (double line1 , double line2) { static int last_direction = 0; static int current_dirction = 0; if(line1>line2)current_dirction = 1; //up if(line1 双均线 2016-07-12 上传大小:3KB