Large CandleStick

#1
Hello,

I am in trouble. I cannot find or make a simple code to search for LARGE candlesticks and feel very stupid now.
My two written codes below also picks up small candlesticks. I'm doing something wrong can someone please help me ?

///Failed Attempt 1 :(
candle = ((C - O)/O)*100;
change = candle > 10;
buy = change

//Failed attempt 2 :(
Big candle = C > (1.05*O);
buy = Big candle