Using Daily Pivot Points in an ea

 
Anyone have a quick easy way to include Daily Pivot Points into an ea that will determine my take profit and stop loss levels?
Reason: