Created
May 31, 2018 21:34
-
-
Save kevincdurand1/a674922bc9f75606bb97a4f683efa046 to your computer and use it in GitHub Desktop.
Log Change.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT [DateTime], [Close] | |
,(log([Close]) - log(LAG ([Close],1) OVER (ORDER BY [DateTime])))*100 AS LogReturn | |
FROM [EURUSD_Daily_198001020000_201805180000_Quant] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment