Skip to content

Added HTF validation#1

Open
nickpagz wants to merge 2 commits intomasterfrom
add-htf-validation
Open

Added HTF validation#1
nickpagz wants to merge 2 commits intomasterfrom
add-htf-validation

Conversation

@nickpagz
Copy link
Copy Markdown
Owner

Added an option to validate longs and shorts based on trend direction.

Trend direction is determined by a fast and a slow EMA. Default is 20 and 40 respectively. If fast > slow, then the trend is up, and shorts won't be triggered for that perp, and vice versa for slow > fast.

Additional options in config.py are included to configure the ema lengths, and the higher time frame duration.

Nicholas Pagazani and others added 2 commits January 22, 2022 23:25
This was causing the script to not trigger any deals as it changed the size of the passed array.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant