The purpose is to be able to quickly create one line at a time with a mouse click and to reference it in AFL for Analysis to check if the price crosses it.
You can't create 'manual' studies (the ones that are created from UI manually) with AFL, but you can use Plot as you did and store the coordinate in Static variable and it will stay.