High Low Algo Line

Hi, can any one plz code for me this thing.

There should be High and Low Line,
The trigger should be like when the price crosses that Line
If Crosses High BUY
If Crosses Low Sell
And the Trigger should be only after 2PM
Stoploss Should be 50 Points
Target/Profit should be closed at the day close