Comment on Managing your Script
Srinivas,
You cannot really write a strategy this way. A strategy is typically a technical analysis strategy where if a condition is met you take a buy and sell..
In your case, you have just mentioned a price and for what you are planning to do , algoZ will be of no help.
How to take a strategy live, backtest and take live is shown in the blogs above. The most important thing is for you to have a strategy.
Check this blog where we have explained how to write codes for various strategies, you will get an idea of what I am talking about.