Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add indicator for Entry and Exit #47

Open
goswamig opened this issue Aug 31, 2024 · 2 comments
Open

Add indicator for Entry and Exit #47

goswamig opened this issue Aug 31, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@goswamig
Copy link
Contributor

  • Add entry condition for e.g. if TQQQ prices went down by > 1% enter a trade. If last (need to keep history past) two action was buy do not enter the trade.
  • If price goes up by >=2 % sell, if last action was buy and if sell price is better than buy price.
  • Capture the momentum indicator such as MACD, RSI, Average Directional Index (ADX) and enter the trade if its early upward trending and exist if its early downward trend.
@b0noI
Copy link
Collaborator

b0noI commented Sep 1, 2024

okay things that we will need:

  • per ticker % of change in the last D/W/M
  • access to indicators like MACD/RSI/ADS

we will need another agent for the strategy itself and DB but please confirm that basics are these function , meanwhile I will start implementing

@b0noI
Copy link
Collaborator

b0noI commented Sep 1, 2024

here is my current thinking about the strategy:

  • we have DB with trades so we always know if trade is open or not
  • if trade not open - get price of the TQQQ and set buy limit with <2%
  • after trade executed set OCO: exit if goes down more than X, and sell if goes up for 2%, if we have only one open trade go to step one

@seralekseenko seralekseenko added the enhancement New feature or request label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants