Day Trade

Hi,

I would like to implement a day trading strategy in minute bars. Is that possible with IbridgePy?



Thank you.

Yes. You can use data.history method and set frequency as 1m to get the minute bar data.



You can refer to the following video for more details: https://quantra.quantinsti.com/startCourseDetails?cid=63&section_no=4&unit_no=5#course_type=paid&unit_type=Video



Thanks

Yes, I know how to do backtest but not how to run it in realtme due that when I execute the stragegy.py file where I should setup the logic of the trade, it executes one time and then disconnect, therefore it doesn't monitor the evolution of the moving averages or what ever logic I'd like to monitor.



Thanks.

You can remove "end" line of code from your strategy logic then it won't end after time execution.



You can set up the logic of your trade in a function and call that function in handle_data and place order using order or order_target function.



I would highly recommend that you complete this course to learn to automate your trading.



https://quantra.quantinsti.com/course/Automated-Trading-IBridgePY-Interactive-Brokers-Platform



In case if you have further queries then feel free to post on the community.



Thanks