NexusFi: Find Your Edge


Home Menu

 





ZB23's Algo Trading Journey


Discussion in Trading Journals

Updated
      Top Posters
    1. looks_one ZB23 with 6 posts (11 thanks)
    2. looks_two havo9999 with 1 posts (1 thanks)
    3. looks_3 WayneA with 1 posts (0 thanks)
    4. looks_4 OneEye with 1 posts (0 thanks)
    1. trending_up 1,449 views
    2. thumb_up 12 thanks given
    3. group 7 followers
    1. forum 8 posts
    2. attach_file 0 attachments




 
Search this Thread

ZB23's Algo Trading Journey

  #1 (permalink)
 ZB23 
Atlanta Metro Area
 
Experience: Intermediate
Platform: Rithmic API
Broker: Ironbeam
Trading: Futures: CL spreads, IR outright.
Frequency: Never
Duration: Never
Posts: 145 since Feb 2017
Thanks Given: 60
Thanks Received: 198

I am going to start the transition to algo trading, because systematic, rules-based trading is better for me than discretionary trading.

Since I'm most comfortable with Python (I just finished my second Python course through University of Washington's Professional and Continuing Ed), than C++ (last course was in 2009, when I wanted to learn MQL).

I have been learning Interactive Broker's Python API, and I must say it's a bit convoluted.

Nevertheless, I know more now than I did four weeks ago. The only reason I am sticking with it is because, 1. It's the only broker that supports Python for futures algo trading, and 2. I've already gone that rathole, so I may as well stick with it.

Once I create an application, perhaps I'll stream it in action to journalize its results.

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
NexusFi Journal Challenge - May 2024
Feedback and Announcements
Quant vue
Trading Reviews and Vendors
 
  #2 (permalink)
 havo9999 
Sydney, Australia
 
Experience: Advanced
Platform: Old school
Trading: Futures trends
Posts: 5 since Jul 2021
Thanks Given: 4
Thanks Received: 1


BA 21 View Post
I am going to start the transition to algo trading, because systematic, rules-based trading is better for me than discretionary trading.



Since I'm most comfortable with Python (I just finished my second Python course through University of Washington's Professional and Continuing Ed), than C++ (last course was in 2009, when I wanted to learn MQL).



I have been learning Interactive Broker's Python API. I must say it's a bit convoluted. Nevertheless, I know more now than I did four weeks ago. The only reason I am sticking with it, 1. It's the only broker that supports Python for futures algo trading, and 2. I've already gone that rathole, so I may as well stick with it.



Once I create an application, perhaps I'll stream it in action to journalize its results.

Check out this python library called IbPy https://pypi.org/project/ib/.

Sent using the NexusFi mobile app

Reply With Quote
Thanked by:
  #3 (permalink)
 ZB23 
Atlanta Metro Area
 
Experience: Intermediate
Platform: Rithmic API
Broker: Ironbeam
Trading: Futures: CL spreads, IR outright.
Frequency: Never
Duration: Never
Posts: 145 since Feb 2017
Thanks Given: 60
Thanks Received: 198



havo9999 View Post
Check out this python library called IbPy https://pypi.org/project/ib/.

Sent using the NexusFi mobile app

Thanks for the suggestion.

I came across the library when I started, but decided against using it, because it's not an official library of TWS API.

I have made significant progress since my last post. I better understand the TWS Python API thanks to the following resources:

1. IB's documentation (not as detailed as I like, but it helps in gaining macro view of things).

2. The book Algorithmic Trading with Interactive Brokers, Python and C++ by Matthew Scarpino (a dense read. I use as a reference book).

3. Groups IO (groups.io) TWSAPI group.

4. Udemy courses -
  • Algorithmic Trading using Interactive Broker's Python API
  • Interactive Brokers Python API - Advanced Concepts

The Udemy courses were super helpful in gaining deeper understanding. The best $26 I spent on Udemy courses.

I'm nearly done coding my application. I just need to code the main function that determines whether the conditions exist to place orders.

I plan is to use the application to scalp.

I would have been done by now, but I got side tracked, because I decided to join the "Great Resignation." I plan to submit my resignation this coming Friday, 8/6, take a month off to travel, and return to start a three month data science immersive course in hopes of getting a remote job (I'm sick of going to an office). And if I'm not successful in landing a remote job, then I'll get my CDL and drive trucks (anything to avoid returning to an office).

Started this thread Reply With Quote
  #4 (permalink)
 ZB23 
Atlanta Metro Area
 
Experience: Intermediate
Platform: Rithmic API
Broker: Ironbeam
Trading: Futures: CL spreads, IR outright.
Frequency: Never
Duration: Never
Posts: 145 since Feb 2017
Thanks Given: 60
Thanks Received: 198

Update:

I modified my journey's path.

In Sept 2021, enrolled in a three month data science (DS) boot camp. I am in the last week of that course, wrapping up a capstone project. The boot camp is akin to drinking water from a fire hydrant. I think we had a washout rate of about 40%. At times, I felt like joining the ranks of that 40%. Presently, I probably remember only 20% of the material covered. Nevertheless, I can see the utility of ML tools applied to algorithmic trading.

After completion of the DS boot camp, I will start a six month algo trading course offered by Quantinsti. The course covers several of the topics covered in the DS boot camp. So, that will be a good opportunity for reinforcement learning.

Started this thread Reply With Quote
  #5 (permalink)
 
WayneA's Avatar
 WayneA 
Seattle, WA
 
Experience: Beginner
Platform: NinjaTrader
Trading: Ones that move
Posts: 62 since Aug 2009
Thanks Given: 64
Thanks Received: 58


BA 21 View Post
After completion of the DS boot camp, I will start a six month algo trading course offered by Quantinsti.

Did you end up starting the Quantisti program? If you did, how's it going so far?

Reply With Quote
  #6 (permalink)
 ZB23 
Atlanta Metro Area
 
Experience: Intermediate
Platform: Rithmic API
Broker: Ironbeam
Trading: Futures: CL spreads, IR outright.
Frequency: Never
Duration: Never
Posts: 145 since Feb 2017
Thanks Given: 60
Thanks Received: 198


WayneA View Post
Did you end up starting the Quantisti program? If you did, how's it going so far?

Yeah, I started back on January 8th. It's going okay. The first six weeks it just statistics and modeling using Excel. I had to slog through that because I'm not a fan of Excel, especially since I love Pandas Dataframes. Two weeks ago, we entered the Python phase. This past weekend, Yves Hilpisch gave a lecture on backtesting. Next weekend's module is on IB Python API.

Started this thread Reply With Quote
Thanked by:
  #7 (permalink)
 ZB23 
Atlanta Metro Area
 
Experience: Intermediate
Platform: Rithmic API
Broker: Ironbeam
Trading: Futures: CL spreads, IR outright.
Frequency: Never
Duration: Never
Posts: 145 since Feb 2017
Thanks Given: 60
Thanks Received: 198

After 2.5 years, I am almost ready to start algo trading.

I've finally developed a level of comfort with IB API. However, I still have some gripes about it. I just don't like the idea of having to log off TWS daily at midnight.

I plan to enter the World Cup Trading Championship sometime in 2024, and use my algo in the competition. Before registering, I thought that I would be able to use the algo that I developed based on Interactive Brokers API. Alas, that is not the case. For the competition, the organizer has approved only four brokers (StoneX, Stratis, Dorman, and Ironbeam).

I chose Ironbeam, because I rather have everything in one place-- the FCM provides its own platform, which is free. However, its API isn't free. There is a setup fee and a monthly support fee. That part surprised me, because I've never had to pay for API use and support. I'll probably be able to forgo the support, but not the setup fee. The setup fee is a bit puzzling to me, because I thought API setups required only client-side setup. There must be a server-side setup that needs to be done to warrant the steep setup fee. I'm waiting for the representative to answer questions about that. Nevertheless, if it's better than IB's API, then it may be worth the cost.

I'm giving myself a couple of months to kick the tires and get familiar with Ironbeam's API, before going live. From what I understand, it comes with a steep learning curve, because it doesn't use HTTP REST API calls. It uses Websockets, based on the MQTT protocol. Perhaps, that is why they want a steep monthly support fee.

I still plan to continue using Interactive Brokers API for testing, because I don't want to throw away years of hard work that I*invested in learning its API.

The journey continues...

Started this thread Reply With Quote
  #8 (permalink)
 OneEye 
The Netherlands
 
Experience: Intermediate
Platform: proprietary
Trading: ES
Posts: 41 since Dec 2017
Thanks Given: 150
Thanks Received: 58


ZB23 View Post
I've finally developed a level of comfort with IB API. However, I still have some gripes about it. I just don't like the idea of having to log off TWS daily at midnight.

Hi ZB,

IB can be configured to auto restart once every 24 hours. In that case a manual login is only required once a week.

Just for interest, what is the fee IRONBEAM is asking to use their API?

Reply With Quote
  #9 (permalink)
 ZB23 
Atlanta Metro Area
 
Experience: Intermediate
Platform: Rithmic API
Broker: Ironbeam
Trading: Futures: CL spreads, IR outright.
Frequency: Never
Duration: Never
Posts: 145 since Feb 2017
Thanks Given: 60
Thanks Received: 198


OneEye View Post
Hi ZB,

IB can be configured to auto restart once every 24 hours. In that case a manual login is only required once a week.

Just for interest, what is the fee IRONBEAM is asking to use their API?

I tried that and it didn't work for me. Although the restarted occurred, I was unable to stream data. I had to logout and log back in order for the stream to resume. I don't want to keep wrestling with things I shouldn't have to wrestle with.

Ironbeam API fees: $1000 setup fee, $500 per month for support.

Started this thread Reply With Quote




Last Updated on December 12, 2023


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts