Files
quantify-cflynn 1ca4389ed2 Adds SharpeRatio indicator (#5348)
* RollingSharpeRatio Submission

Creation of RollingSharpeRatio indicator, utilizing LEAN engine. Tests were created and successfully passed by the indicator, using spy_rsr.txt as outside data file which was created during a prior running of the program.

* Fixed Test Case Loading and Added Indicator Function

Added the RSR() function to auto load the indicator in Algorithm\QCAlgorithm.Indicators.cs. Also added a reference for the test file ("spy_rsr.txt") in Tests\QuantConnect.Tests.csproj.

* Fixed SharpeRatio Indicator

Updated the base formula, indicator structure/call, and the testing data for the SharpeRatio indicator.

* Minor Fixes

- Removed dividend yield from calculation
- Fixed typos in code/documentation

* Minor Style Fix and Error Confirmation

- Changed style to match style guide better.
- Checking for confirmation that QuantConnect.Tests.Engine.DataFeeds.LinveTradingDataFeedTests.DelistedEventEmmited_Equity() is server side, as it runs locally and should not have been affected by prior changes

* Simplification and fixing of SR calculation

- Updates calculation to proper SR formula
- Utilizes IndicatorExtensions for SR calculation rather than manual calculation
- Defines counter for 1 extra period offset on warmup (otherwise first datapoint is inaccurate if warmup period is SharpePeriod length)

* Minor Fixes

- Removal of SharpePeriod and RiskFreeRate variables
- Substitution of (SharpePeriod + 1) for WarmUpPeriod
- Outdated comment fixes

* Resubmission for Mono Confirmation Error

Error detected on Git for this version of the program. An error should not occur as only comments and minor variables were edited. Resubmitting to see if it is a false positive mono error.

* Notation Fixes

Fixed notation regarding spacing and outdated comments.

* Removal of Counter Logic

- Replaces counter for warmup with improved IsReady logic

* Fixed Syntax

- Removed unused imports
- Fixed variable readability
- Fixed comments
- Replaced Tabs with spacing

Co-authored-by: quantify-cflynn <quantify-cflynn>
2021-03-11 13:35:08 -08:00
..
2020-07-31 17:53:56 +03:00
2020-12-15 08:29:55 -03:00
2016-05-26 11:27:28 +01:00
2019-10-19 09:15:59 -03:00
2020-09-09 16:18:10 -03:00
2020-09-09 16:18:10 -03:00
2017-07-06 21:11:46 +01:00
2017-07-02 20:03:02 +01:00
2017-09-08 12:18:12 +01:00
2017-08-29 15:27:15 -03:00
2017-05-02 10:42:01 -03:00
2020-12-11 20:46:07 -03:00
2015-01-12 12:03:33 -03:00
2016-02-04 12:57:18 -05:00
2016-02-19 03:01:39 +01:00
2017-09-01 14:40:26 -03:00
2016-02-12 10:56:54 -05:00
2021-01-08 11:11:00 -03:00
2021-03-11 13:35:08 -08:00
2016-02-08 11:10:38 -05:00
2016-03-20 11:31:38 +01:00
2016-02-04 17:18:13 -05:00