Need help for “Standby” command

Hey y'all,

I am trying to make a simple code that will execute a user defined function twice per day, once at 9:30 a.m. when the market opens, and once more at 3:55 just about 5 minutes before close. The goal is that my defined trader() function will pull live data each time it is triggered, and I can use the two different price points to simply determine the daily change of a stock. I want to keep this code running in the background for a long time so I can develop my own back testing dataset. The trader() function that I coded works just fine, and collects all the data I need, but the standby() function seems to not want to work with me. Am I doing this in the right way?

The biggest issue is that it seems to simply roll right over those time stamps without executing the trader() function, but otherwise prints out the notifications. Any ideas?

https://preview.redd.it/29yn0b9w0cr51.png?width=588&format=png&auto=webp&s=8a1cd5a055819c85437f90d4823e3976da590c29

Submitted October 05, 2020 at 02:01PM by Apprehensive-Donkey3
via https://ift.tt/33ymoss

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s