Code my strategy

code required for below set alerts for pi charts

BUY: yesterday close and previous day close(yesterday+1 day close) and previous day high /1min,5min,10 min15 mins,1hour high close

Sell: yesterday close and previous day close(yesterday+1 day close) and previous day high /1min,5min,10 min15 mins,1hour low close

your query is not clear please specify your condition in brief.