Excel as a bridge

Hext123

New Member
Joined
Aug 17, 2018
Messages
1
Hi guys,

I have an excel question. So I’m using excel as a bridge between python and my trading platform ninjatrader. I’m getting values from another data source and processing those values in python and then sending those values to a file in excel (file 1). Then, I have another file (file 2) that is pulling the data from from file 1 (vlookups) and then sending it to ninjatrader.

Python cannot write to an excel file that is open. So file 1 has to be closed when python is saving the data to it.

I cannot send data from python directly to ninjatrader.

Problem: python is constantly updating file 1 every 20 minutes without opening the file. File 2 is open and doing vlookups in file1. But because file1 is closed the values don’t update automatically. I can’t have file 1 open bc python can’t write to excel if it’s open.

Is there a way to update my vlookups in file2 without having file1 open... and do this real time? In my data connection I have checked automatically update ... but it doesn’t.

Any ideas? Thanks.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Welcome to the forum.

Please take a minute to read the forum rules, especially as they relate to cross-posting, and then comply with them. Thanks. :)
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,485
Members
448,967
Latest member
visheshkotha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top