Using changes in prices and trade volumes to trigger opening of trades

Is it possible to code EA to use changes in prices and trade volumes to trigger opening of trades. Say if there’s a percentage increase in price and buy volume of a currency pair in last 30 seconds as compared to previous 30 seconds, a buy order is triggered.

Give this a look. Not sure what you’re using, but I’m thinking it’s possible, just more complex than say and EA and an indicator separately.