Giter VIP home page Giter VIP logo

Comments (8)

Andre0711er avatar Andre0711er commented on June 2, 2024 2

Hi.
I just run in same issue, trying find a way how to detect support and resistance level's programmatically.
Did someone has an idea, how other frameworks (might be in python?) will has that or how they do that?

I just will try creating one and give it back to ta4j repo.

Greets,

André.

from ta4j.

Andre0711er avatar Andre0711er commented on June 2, 2024 1

Hi.

Cool. good idea! I will do my own research next days too.
Otherwise, i just play around with "Kairi Relative Index" (KRI) which give pretty good "hints" on high's and low's. (Spikes greater 1 for high's and spikes lower -1 for low's)
So, if you interested, i can paste my example code here for research.

KRI Indicator can be found here: https://github.com/Cypher01/ta4j-extended/blob/main/src/main/java/org/ta4j/core/indicators/KRIIndicator.java

Greetings,

Andre.

from ta4j.

TheCookieLab avatar TheCookieLab commented on June 2, 2024

from ta4j.

moritz31 avatar moritz31 commented on June 2, 2024

Thanks for the fast reply. So i Look at the Chart and i see a lot of reactions at a specific Level so i draw a box at that Level so that i get the Most reactions but do Not let the Zone get too big.

from ta4j.

TheCookieLab avatar TheCookieLab commented on June 2, 2024

from ta4j.

moritz31 avatar moritz31 commented on June 2, 2024

so maybe i make an example to be more clear.

I draw in the chart some support and resistence levels like described here
https://www.thebalancemoney.com/how-to-trade-based-on-support-and-resistance-levels-4043477

and then trade reactions on them based on trends and candlestick patterns.
There are basically some candlestick pattern indicators in ta4j, but i would need to combine them with the support and resistence levels. For these are currently no indicators implemented when i'm right and i am not sure if it is possible to implement something like this into ta4j. What would basically need to be done:

For every bar look into the past and find price points where the chart reacts and create support and resistance points for that. So every bar would basically have something like a set of support and resistance levels because the can change over time. This needs then be combined with the candlestick rules.

from ta4j.

TheCookieLab avatar TheCookieLab commented on June 2, 2024

from ta4j.

TheCookieLab avatar TheCookieLab commented on June 2, 2024

I'm currently out of the country on vacation until the end of the year but just thinking out loud, perhaps we may be able to implement this as an indicator (i.e. TrendLineResistanceIndicator) that roughly does the following:

  1. Finds the last N swing highs (see #1125) using those values as the y-coordinate and their respective index as the x-coordinate
  2. Take a "high pass filter" to the results of Step 2, keeping only the highest swing highs (perhaps highest swing high value for every x bars)
  3. Uses the values from Step 2 to calculate and cache a modified best fit line (perhaps using SimpleLinearRegressionIndicator or something similar but with a ceiling function)
  4. Thus when calling TrendLineResistanceIndicator.calculate(index i) it returns the best fit line values found in step 3 for the given index

Any thoughts on the why or why nots of this approach?

from ta4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.