Coding Manual Alerts into a custom indicator

 
Hi I am trying to look for a way to add alerts onto a chart by a key event. This will be the same as right clicking on the Alerts Tab at the bottom and creating a new alert. I cannot seem to find a function which can add these in. 
 
2017/12/13 18:06:52 Completed #1951594 markkm
 
whroeder1:

Hi whroeder1 do you know if there is a function or a method which allows me to do this?

Reason: