For generating Buy/Sell Signal, work your way out with Close crossing Up/Down different MA levels and decide for your own good.
Green and Orange lines are just for providing more strength to the analysis, but one can easily rely on Blue and Orange crossings for potent Buy/Sell indications.
Use the same lines for Stop Loss and you'll be good.
As for Take profit, I'll be posting more scripts in future. So stay tuned!!!