Want to create a new atrategy

Dear sir,

   i am developing my strategy but i have no idea how to coding it so please help me, details are as follows.

EMA 5,EMA 10,EMA 15,EMA 20, EMA 25,EMA 30, EMA 35, EMA 40.
Supertrend
Candestick pattern. 5 min Chart
Commodity channel index.

then my strategy condition for buy is — candlestick above all 8 EMA without touching anyone also supertrend is in uptrend above green line also Commodity chaneel index above +100 then gives buy Signal

For Sell conditio---- candlestick below all 8 EMA without touching anyone also supertrend is in downtrend below red line also commodity channel index is below -100then gives sell signal