added trailingimmediatebuy option to buy as soon as trailingbuypcnt is reached, instead of waiting until candle close
added preventloss option to enable selling prior to margin reaching 0% profit to prevent loss
added preventlosstrigger - margin set point to start watching for preventloss (see readme)
added preventlossmargin - margin set point to sell at for preventloss (see readme)
reordered some test in isSellTrigger to minimize processing on every pass under some conditions
added detailed information for trailingbuypcnt and preventloss to README file
Fixes # (issue)
Type of change
Please make your selection.
[ ] Bug fix (non-breaking change which fixes an issue)
[ x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ x] This change requires a documentation update
[ ] This change requires a new dependency
[ x] Code Maintainability / comments
[ x] Code Refactoring / future-proofing
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
Checklist:
[ x] My code follows the style guidelines of this project
[ x] I have performed a self-review of my own code
[ x] I have commented my code, particularly in hard-to-understand areas
[ x] I have made corresponding changes to the documentation
[ x] My changes generate no new warnings
[ ] I have added pytest unit tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[ x] I have checked my code and corrected any misspellings
Description
Fixes # (issue)
Type of change
Please make your selection.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
Checklist: