Please try to take time to make a more understandable title next time you open a new topic, because “help!!!!!!!” as a title doesn’t help people to query much about your request..
You can retrieve the length of candlestick with the range keyword. To convert the 8 points value for the security you want to make the comparison on, you need to multiply it with pointsize (or pipsize), you code should be: