Hi all, 

I was hoping for a little help/clarification as I seem to be having a little trouble here- 

I've been working on implementing a delta-neutral straddle strategy and decided I'd calculate delta and hedge quantities myself. I used a method that backs into BSM for IV, calculates delta, then determines the ideal hedge quantity and places the corresponding order. The method takes the following inputs:
S = # Underlying Price
K = # Strike Price
T = # Time to Expiry (in years)
r = # Interest Rate
q = # Dividend Rate
call_price = # Call Price
put_price = # Put Price
position_type = # Position Type (Long or Short)
spread_quantity = # Quantity of spreads 
existing_pos = # existing position in underlying

The idea was that these values from my open straddle position would be actively updated so that when the DeltaHedge function is executed, the updated inputs are used. My question: I'm not quite sure how to monitor my open straddle position and keep these live updated input values so that I can hedge whenever I want. If anybody knows how this could be done, I'd really appreciate the input. Thank you!