|
| 1 | +NVDA/TSM Ratio Chart Application |
| 2 | +============================== |
| 3 | + |
| 4 | +This application displays a real-time chart of the NVDA/TSM price ratio with 1-minute historical data. |
| 5 | + |
| 6 | +Requirements: |
| 7 | +------------ |
| 8 | +1. Interactive Brokers TWS (Trader Workstation) or IB Gateway must be running |
| 9 | +2. TWS/Gateway must be configured to accept API connections on port 7497 |
| 10 | +3. Market data subscriptions for NVDA and TSM |
| 11 | + |
| 12 | +Setup in TWS/Gateway: |
| 13 | +------------------- |
| 14 | +1. Open TWS/Gateway |
| 15 | +2. Go to File -> Global Configuration (or Configure in Gateway) |
| 16 | +3. Select "API" -> "Settings" in the left panel |
| 17 | +4. Enable "Socket port" and ensure it's set to 7497 |
| 18 | +5. Check "Enable ActiveX and Socket Clients" |
| 19 | +6. Click "Apply" and "OK" |
| 20 | + |
| 21 | +Usage: |
| 22 | +------ |
| 23 | +1. Start TWS/Gateway and log in |
| 24 | +2. Double-click NVDA_TSM_Ratio_Chart.exe |
| 25 | +3. The chart will automatically: |
| 26 | + - Display 100 minutes of historical 1-minute data |
| 27 | + - Update every 10 seconds |
| 28 | + - Show current local time |
| 29 | +4. Close the chart window to exit the application |
| 30 | + |
| 31 | +Features: |
| 32 | +-------- |
| 33 | +- 100-minute historical data with 1-minute bars |
| 34 | +- NVDA/TSM price ratio plot |
| 35 | +- 20-period moving average |
| 36 | +- Real-time statistics (mean, std, min, max) |
| 37 | +- Auto-updates every 10 seconds |
| 38 | +- Current local time display |
| 39 | + |
| 40 | +Troubleshooting: |
| 41 | +-------------- |
| 42 | +1. If the chart doesn't appear: |
| 43 | + - Verify TWS/Gateway is running and logged in |
| 44 | + - Check port 7497 is enabled for API connections |
| 45 | + - Ensure you have market data permissions for NVDA and TSM |
| 46 | + |
| 47 | +2. If data isn't updating: |
| 48 | + - Check your internet connection |
| 49 | + - Verify market is open (US market hours) |
| 50 | + - Confirm data subscriptions are active in TWS |
| 51 | + |
| 52 | +Note: This application requires an active Internet connection and proper market data subscriptions in your Interactive Brokers account. |
0 commit comments