Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Last active June 20, 2025 13:12
Show Gist options
  • Save quantra-go-algo/ad8474f56ae8db225686d0da6dbafd2e to your computer and use it in GitHub Desktop.
Save quantra-go-algo/ad8474f56ae8db225686d0da6dbafd2e to your computer and use it in GitHub Desktop.
# Logging function to print trading information with date
def log(self, txt):
dt = self.datas[0].datetime.date(0)
print('%s, %s' % (dt.isoformat(), txt))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment