#property indicator_chart_window extern int shift = 1; extern int judg = 20; int OnInit() { double a = Open[shift]; double b = Close[shift]; double c = a-b; string d = DoubleToStr(NormalizeDouble((c/(10*Point)),3),3); double e = StrToDouble(d); if(e < 0){ e = -e; } if(a < b && e >= judg){ Comment("↑大陽線です。\n"+"実体の幅:"+e+"Pips"); } if(a > b && e >= judg){ Comment("↓大陰線です。\n"+"実体の幅:"+e+"Pips"); } if(e < judg){ Comment(judg+"Pips以下です。\n"+"実体の幅:"+e+"Pips"); } return(INIT_SUCCEEDED); } int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { return(rates_total); }