forked from twopirllc/pandas-ta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Chande-Kroll stop twopirllc#256, and twopirllc#257
Add an optional "tvmode" parameter that controls the behaviour of the Chande-Kroll volatility stop. The default, True, retains the used behaviour, compatibility with Trading View. When False however, the moving average mode used is now a simple moving average instead of the Welles Wilder moving average and the periods used are different as well, (10/1/9 vs 10/3/20). Update the unit tests to account for the optional parameter, though sadly we have no TA-lib implementation to compare with, and the Japanese Yen Futures 09/93 contract used in figure 7.4 page 95 of the book, has no freely available OHLC data i could find.
- Loading branch information
1 parent
360a26d
commit 4865399
Showing
2 changed files
with
27 additions
and
14 deletions.
There are no files selected for viewing
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
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