Pull Back Alert

Want to try an pull back on one minute time frame , can some one help to an code

Time Frame 1 minute

lower low formation then with one pull back , need an alert on that , same for higher high and then pull back

Thanks.