#include<stdio.h>
main()
{
float open,high,low,close;
scanf("%f%f%f%f",&open,&high,&low,&close);
if(close<open)
printf("BW-Solid");
if(close>open)
printf("R-Hollow");
if(close==open)
printf("R-Cross");
if(low<open&&low<close&&high>open&&high>close)
printf(" with Lower Shadow and Upper Shadow");
else if(low<open&&low<close)
printf(" with Lower Shadow");
else if(high>open&&high>close)
printf(" with Upper Shadow");
}
PTA - 日K蜡烛图
最新推荐文章于 2024-07-25 15:54:02 发布