Hi,

Id like to write a python algorithm that uses a outside data source (csv from dropbox) to tell the algorithm that an event has occurred. When the event has occurred I want to buy some securities and then sell 7 days later.

What's the best way to get my algorithm to sell? One way seems to be the scheduled event stuff. I can read the csv, and if now is greater than the event date, then buy and and set an event to sell 7 days later.

Is there a better way? Without events I would just set some property of the self object but I'm not sure if that will survive different calls to onData.

Thanks!

Author