How to write Pi script for buy and sell of SBIN for intraday?

Hi,

Please help me on how to write a buy/sell script for SBIN for intraday.

  1. How to buy 100 shares when price below 219

  2. How to sell the sell the buyed shares when price >220

  3. How it could be automated for the whole day?

Thanks,

Shiva Oleti

For the above given condition you can use price alert indicator and can define the price
https://zerodha.com/expert-advisors/code/price-alert-indicator

and automation is not possible as of now.

1 Like