You can use avg, buy and sell variables to specify conditions using standard JavaScript syntax. For example: avg > 120