Can this be automated?

Suppose, I have Rs. 50,000 with me and 500 shares of stock ‘X’.
I want to place the following orders in stock ‘X’:

  1. Buy 100 shares at Rs. 100.00
  2. Buy 100 shares at Rs. 99.50
  3. Buy 100 shares at Rs. 99.00
  4. Buy 100 shares at Rs. 98.50
  5. Buy 100 shares at Rs. 98.00
    And also,
  6. Sell 100 shares at Rs. 101.50
  7. Sell 100 shares at Rs. 102.00
  8. Sell 100 shares at Rs. 102.50
  9. Sell 100 shares at Rs. 103.00
  10. Sell 100 shares at Rs. 103.50

Now, if order #1 gets executed first then I want to place a sell order (#11) for 100 shares at Rs. 101.00. If order #2 also gets executed, then I want to place a sell order (#12) for 100 shares at Rs. 100.50 and so on.
Moreover, if order #12 gets executed, then I want to place a buy order (#13) for 100 shares at Rs. 99.50 and so on …
Can this whole process be automated?
If yes, how?
What are the costs involved?

I hope I am able to explain clearly what I want.

Basket Orders ??

No, the basket requires minimum order value of Rs, 1,00,000/- I suppose.

just recheck. I dont think its mandatory.