need help with IB API

I never used API for IB. Need help placing this order:

buy at market when 10 and 20 ma cross on 5 min chart
set stop at previous bar low and set target at 10 and 20 ma cross.

How can I write this order in Excel for IB? Does API updates prices in real time?

Thank you in advance
 
Back
Top