Skip to content

Instantly share code, notes, and snippets.

@wlinInspire
Created August 4, 2019 05:08
Show Gist options
  • Select an option

  • Save wlinInspire/559edf7cdf2bf2924e68b1916f7138ea to your computer and use it in GitHub Desktop.

Select an option

Save wlinInspire/559edf7cdf2bf2924e68b1916f7138ea to your computer and use it in GitHub Desktop.
How to Build an Automated Trading System using R
while(hour(Sys.time()) < 16) {
# check email
try(get_alert_email(), silent = TRUE)
# Place order if needed
tws_order()
Sys.sleep(5)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment