Automated Support and Resistance Detection in PYTHON

Поделиться
HTML-код
  • Опубликовано: 14 дек 2024

Комментарии • 178

  • @ndumisolushaba2403
    @ndumisolushaba2403 3 года назад +73

    I was the one who asked for this, thank you man!

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад +3

      Actually thank you!

    • @devsunny10
      @devsunny10 2 года назад +2

      @@CodeTradingCafe thanks to both of you 🤩🙏

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +1

      @@devsunny10 good luck with more python tricks 🙂

    • @80amnesia
      @80amnesia 2 года назад +1

      I'm coding in C#, still, these videos are of great help

    • @MrRahul15937
      @MrRahul15937 Год назад

      You have shown us the way.. 🙏
      Thank you to both

  • @Zenoandturtle
    @Zenoandturtle Год назад +2

    Your videos are so clear and easy to understand. One of the best out there.

    • @CodeTradingCafe
      @CodeTradingCafe  Год назад +1

      Glad you like them! Thank you for your support!

  • @pethiraj
    @pethiraj 2 года назад +3

    Amazing content, not sure how I did not come across your channel. Its has opened my mind as well on the possibilities. Thank you!

  • @aron68on_etoro95
    @aron68on_etoro95 2 года назад +5

    An other idea could be to search for minimum value / maximum value in a range excluding the extremities (first and last value). Than you could shift the range and clean up the close lines, or better not to plot lines, but rather to fill the space between the close lines. It is not important to make difference between support and resistance by color, because support get resistance and resistance get support, this is why we are looking for them.

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +2

      Hi thank you for your input, yes actually I agree that no need to clean up close lines it's also good to define zones of support and resistance. Many different ways of doing this.

    • @petlivematters8646
      @petlivematters8646 2 года назад +1

      explain more I'm very interested in your idea.

  • @maximkuzmin4103
    @maximkuzmin4103 2 года назад +1

    I thought about how to implement my trading strategy that I use by hands to Algo and this video helped me to start!!!
    Thank you very much! Now I have the base and hope I can find more good stuff from you!

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      Hi thank you for your comment, with time and patience you can get there and have a nice code just stay on the safe side and always test on demo first

  • @talalshamijo
    @talalshamijo 2 месяца назад

    Amazing work, even after 3-4 years it's one of the best illustration vid I found

    • @CodeTradingCafe
      @CodeTradingCafe  Месяц назад

      Thank you so much for your support, glad the video is helpful!

  • @notjustaweekendwarrior
    @notjustaweekendwarrior Год назад +1

    This was so helpful and useful! Thank you!!! need to check out your other videos now

    • @CodeTradingCafe
      @CodeTradingCafe  Год назад

      Thank you for your support! and good luck with your algos.

  • @OleksandrPolyeno
    @OleksandrPolyeno 3 года назад +1

    An idea for you:
    - scan values with 3 points window, if the middle point is between 2 other points - you can remove the middle point, repeat until there are no changes, in the end you'll have tops and bottoms
    - group tops: find the closest two lines and group them, repeat until you'll have an acceptable number of lines
    - do the same for bottoms to find supports

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад

      Thanks, how do you choose the width of your window? Or the distance between the 3 points

    • @OleksandrPolyeno
      @OleksandrPolyeno 3 года назад +2

      @@CodeTradingCafe 3 points next to each other. If the middle low, for example, if between two other lows - this point is useless for us for finding supports, so we can remove it. Just repeat until you have few points.

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад

      @@OleksandrPolyeno ok I see your point I think it would lead to the same result of the video if I am not mistaken

  • @cursorbyte9833
    @cursorbyte9833 Месяц назад +1

    This is really a great content. Much love.

    • @CodeTradingCafe
      @CodeTradingCafe  Месяц назад

      Thank you for your support! glad the videos are helpful.

  • @kadourkadouri3505
    @kadourkadouri3505 2 года назад +2

    Quite functional ! I may missed the part but I guess one definition of S/R levels is that it has to touch at least two (local) lows/highs. If applied, such definition would efficiently reduce the number of (irrelevant) lines. Any way god job! Hope you do a similar video on channels and triangles. Thanks

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +1

      Hey, thank you for sharing, good idea to filter irrelevant lines, I have videos on triangles and head and shoulders patterns in this playlist. Good luck!

    • @ajhhyWsav2
      @ajhhyWsav2 Год назад

      @@CodeTradingCafe i need this where i can find?

  • @RAHULMITTAL87
    @RAHULMITTAL87 Год назад +2

    Very nice video. I did something similar too but got stuck with too many RS lines and potential prices and still tweaking it. I wanted to check whether your code is taking care of diagonal lines covers various RS levels?

    • @CodeTradingCafe
      @CodeTradingCafe  Год назад +1

      Thank you. These are related videos that might be of help:
      ruclips.net/video/xky3ZiCsEDs/видео.html
      ruclips.net/video/MkecdbFPmFY/видео.html
      ruclips.net/video/b5m7BZAHysk/видео.html

  • @alpsgrin4501
    @alpsgrin4501 3 года назад +1

    And for pivot points, there will be a good video))) If you find divergence convergence on the RSI indicator, this is a signal for huge movements

  • @alpsgrin4501
    @alpsgrin4501 3 года назад +3

    you have very strong videos, thank you very much. you have accumulated many formulas and strategies, why is there no pattern finder ?? it is very good to bring your work to a logical and complete end. systematize and recognize all well-known figures and patterns on candlestick charts

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад

      Thank you for the compliment it's encouraging. You are right I think I should start putting a complete system combining different methods together, I was postponing this because it's easier to work on one indicator at a time, mounting a system together requires time and effort that I couldn't gather so far... Still when it's done it will be on this Channel

  • @K-mk6pc
    @K-mk6pc Год назад +1

    Thanks for the content brother.

  • @hit3212
    @hit3212 2 года назад +1

    You earned a subscriber!

  • @marcocetraro9675
    @marcocetraro9675 3 года назад +1

    Very good approach. I am going to use it for my strategy. Thank you.

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад +1

      Thanks, I think it will be good to combine it with engulfing candles... I will try to make a video like this

    • @cainezekiel8794
      @cainezekiel8794 3 года назад +1

      Interesting. How do l get in touch to to discuss more on the topic

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад

      We can communicate by email, I am preparing a video about this the results are good!

  • @MsRajdutta
    @MsRajdutta 6 месяцев назад

    This video is a great help...thank you

    • @CodeTradingCafe
      @CodeTradingCafe  6 месяцев назад +1

      Thank you for your support, good luck!

  • @ABDULLAHAlOFI-u3t
    @ABDULLAHAlOFI-u3t 3 месяца назад +1

    Is it possible to program it on Spx?

    • @CodeTradingCafe
      @CodeTradingCafe  3 месяца назад

      as long as chart data is present yes this is applicable.

  • @user-je3yw5lu4v
    @user-je3yw5lu4v 3 года назад +2

    Can you make it for trend lines ?

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад +1

      You mean trend channels?

    • @user-je3yw5lu4v
      @user-je3yw5lu4v 3 года назад +2

      @@CodeTradingCafe yes trend channels , its bit hard so expecting it from you

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад +1

      Yes it's more challenging I will check it out, might take few weeks though

  • @chukwuemekao9610
    @chukwuemekao9610 2 года назад +1

    Please dear, how do we go about it since S&R is a Zone and not just a Horizontal line and it is dynamic also, how will it be detected especially in higher time frames?

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +1

      Hi, in this algorithm, there is a part where the close SR levels are merged together so you might take this level plus or minus let's say few pips to define your zone, as for this being dynamic it's already taken into account because we only consider the most recent candles.

    • @chukwuemekao9610
      @chukwuemekao9610 2 года назад +1

      @@CodeTradingCafe Thank you so much, pls what about higher TF and LTF how do I manage it, I am just a beginner so I don't know much for now on programming,

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      @@chukwuemekao9610 same algorithm just load the timeframe data and modify how many backcandles you will consider

  • @hackmedia7755
    @hackmedia7755 Год назад +1

    maybe finding correlation and trying different timeframes to see what price levels are more statistically significant. Or which price levels have a high likelyhood of acting as support or resistance.

    • @CodeTradingCafe
      @CodeTradingCafe  Год назад +1

      That would be interesting I agree, checking which levels are statistically relevant, provided these don't change across the years (which I doubt)

  • @thomastthai
    @thomastthai 2 года назад +1

    Thanks for sharing your thought on how to find support and resistance levels. What are your thoughts on giving more weight for higher timeframe support & resistance levels, i.e. monthly s/r would have more weight than weekly vs daily vs 4H? This could help reduce the number of levels and give s/r levels different strengths.

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +3

      Hi, there are 2 ways of doing it, one you mentioned relies on different timeframes, the other one is counting the number of times the prices reverts on the same level and within the same timeframe. But I think using different timeframes is better like you mentioned.

  • @rutujashah5797
    @rutujashah5797 Год назад +2

    Great content. I have watched your other videos as well on channel detection, triangular pattern detection etc they were very useful to me. I have a query: I wanted to use some part of triangular pattern detection code in detecting horizontal support and resistance lines. Kindly let me know, if that's possible!
    In triangular pattern detection, we used xxmax.size and xxmin.size to detect more valid lines such that they pass through atleast 3 maximas and minimas respectively. Also we had rmax, rmin conditions applied to detect more appropriate lines and lastly we had slmax and slmin conditions to detect the right shape of triangular pattern. But with linear regression in triangular pattern detection, I saw that we could only draw two lines at once.
    So my question is:
    Can we use linear regression in detecting horizontal support and resistance lines? But I don't want only two lines, but all the possible horizontal lines should be detected.
    With current code of horizontal support and resistance detection, we sometimes detect those horizonal lines too which are passing only through 2 maximas/minimas. These lines are not the major ones for the timeframe and strategy I use. To detect major ones, I thought I can use linear regression and then put the xxmax.size and xxmin.size conditions to detect major support and resistances only. If linear regression can be used to detect all the horizontal support and resistance lines, then I can add rmax and rmin conditions to detect more relevant lines and keep slmax and slmix close to zero to detect horizontal lines. Is that possible?
    OR
    Is there any other way to find the number of times the prices have reverted/touched on the same level ?

    • @CodeTradingCafe
      @CodeTradingCafe  Год назад

      Hi, thank you for your comment, you got it right the required number of minimas and maximas can be changed to detect lines but for horizontal support and resistance there is no need to do this, we can simply do as we did in this video and to apply a weight/strength to each level we can count the number of times the price bounced on in the last 40-60... Candles I hope this helps

    • @rutujashah5797
      @rutujashah5797 Год назад +1

      @@CodeTradingCafe Okay, I'll do that. Thank you!

  • @flydr2
    @flydr2 2 года назад +1

    Thanks... very well explained

  • @bayupebrianto2196
    @bayupebrianto2196 3 года назад +1

    hallo,
    can you help me?
    how to import minutes, if my candle 1 minutes, not 1 day?

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад

      You can retrieve data from the ducascopy web interface, I included a small tutorial in this video ruclips.net/video/XK2IU5vRJr0/видео.html

  • @amijayeeta
    @amijayeeta Год назад +1

    Very nice video and clear explanation, Been developing a similar approach to find support and resistance lines. Can you please guide me to find the lines which touches atleast two low or high points?Thanks in advance.

    • @CodeTradingCafe
      @CodeTradingCafe  Год назад

      Thank you for your support, you might be interested in tomorrow's video it's about 3 points support/resistance, and breakout pattern.

    • @amijayeeta
      @amijayeeta Год назад

      Thank you, would be waiting

  • @alpsgrin4501
    @alpsgrin4501 3 года назад +1

    I'm sure the channels would be of great help in finding the levels Support and Resistance ! Or Bollinger bands what is your opinion ??

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад

      Definitely yes, we can look at the smoothened slopes of the Bbands lines and try to detect slope changes from negative to positive or the opposite, I think it's an idea, but we'd never know what it's worth until we try it.
      Channels are also good to detect reversal levels but they are numerically more challenging to code (I will add this to my list)

  • @fernando1296
    @fernando1296 Год назад +1

    awesome video, thanks! Is there any way to be able to detect patterns of "M" and "W" at the ends? I'm having a hard time finding defined patterns because it gives me false positive results when detecting the second formation of the "M" and "W" :/, maybe it's not possible

    • @CodeTradingCafe
      @CodeTradingCafe  Год назад

      Thank you check my videos on triangle pattern detection and on head and shoulders pattern, these might be helpful. Good luck!

  • @shahinkiassat
    @shahinkiassat 2 года назад +1

    Would be really nice to see all your samples in a Github repo! Thanks a lot.

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      Thank you many asked for this, I created the account but didn't have time to publish codes there yet, my workload is killing me at the moment

  • @ndumisoradebe5256
    @ndumisoradebe5256 2 года назад +1

    This is awesome man, thank you man. Do you have a tutorial on pullback trading or double tops using python

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +1

      Thank you, not exactly double tops but I did something regarding triangle patterns and head and shoulders, check this one among others ruclips.net/video/WVNB_6JRbl0/видео.html

  • @a_4276
    @a_4276 Год назад +1

    I want help please. Can I copy the code and put it in Pine Script Trading View?🔴🔴

    • @CodeTradingCafe
      @CodeTradingCafe  Год назад

      Hi this is python so just copying the code will not work you will have to translate it into pine.

    • @a_4276
      @a_4276 Год назад

      @@CodeTradingCafe How do I translate the code from Python to Pine?

    • @CodeTradingCafe
      @CodeTradingCafe  Год назад

      Well you need someone who knows both languages, I personally don't code pine, you might be able to do it through ChatGPT walking the bot through step by step.

    • @a_4276
      @a_4276 Год назад +1

      @@CodeTradingCafe I have a question and please reply, why do you make the code in Python and we as traders need the indicator to work inside the platform and for that we need Pine and not Python because Trading View no accepts Python and I will not benefit from the code if it is in Python

    • @CodeTradingCafe
      @CodeTradingCafe  Год назад

      Hi, for automated trading and algorithmic trading I only use python I don't need any other platform (check this video ruclips.net/video/WcfKaZL4vpA/видео.html). But also one main reason I prefer python are the machine learning libraries that you can access and include in your trading, I am not sure other platforms offer neural networks and advanced tools like python. You can also dockerize your strategy deploy it on the cloud... the reasons are mainly technical.

  • @BOSprodz
    @BOSprodz 2 года назад +1

    Great video! I think when merging the lines it could be better to first normalize the price values of the df and only then set the threshold for merging, since some stocks/instruments are traded in 10's of thousands and some in much lower prices, 0.005 won't always do it

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +1

      Thank you, you are right actually most of my videos are currency specific, normalisation is better for a general function... will keep it in mind for the future

    • @BOSprodz
      @BOSprodz 2 года назад +1

      @@CodeTradingCafe Could also be a good idea to just use a multiple of ATR (maybe ATR*0.1 or something like that)

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      @@BOSprodz yes this I am using for SL values and consequently the TP as well. ATR is a good parameter to include dynamic expressions into the strategy.

  • @binarytradingcare9921
    @binarytradingcare9921 2 года назад +1

    Hello sir how can I open it or use it

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      You can download python and jupyter notebook and experiment on it. Good luck

  • @Sachin753
    @Sachin753 2 года назад +1

    Hi, 🙏 very helpful videos... 👍
    I need help to get solution,
    Anyhow I need High & Low values of specific Timeframe candles of particular stock or indeces...? (NSE/BSE)
    & I need that High-Low values data import in Excel sheet or in Google sheet...
    Plz reply, Waiting for your valuable reply

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      Hi your can do this by checking the high low values like in this video then transfer to pandas dataframe and write to csv or Excel file using function to_csv()

    • @Sachin753
      @Sachin753 2 года назад

      @@CodeTradingCafe ok, but i need to retrieve this data daily for Nifty 50 or Nifty 100 or No. Of stocks list...
      Then how to do this automated

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      Hi this can be done using yahoofinance package

    • @Sachin753
      @Sachin753 2 года назад

      @@CodeTradingCafe ok, but how . ?
      I try but not get output, plz guide

  • @ShopperPlug
    @ShopperPlug 2 года назад +1

    3:39 - Interesting algorithm...

  • @Ranmanv
    @Ranmanv 2 года назад +2

    Thank you! Very useful info. Is it possible to do another one on supply and demand zones? Its a bit more complicated than support and resistance but related to it.

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      Hi, well everything is doable, only time is an issue so I might be late, Thanks a lot for sharing, it really broadens the content of this channel.

  • @connectrRomania
    @connectrRomania 2 года назад +1

    Thanks for the video, is there a way to detect this kind of patterns: Ascending triangle, Descending triangle, Symmetrical triangle, Double top, Double bottom, Head and shoulders, Rounding bottom, Cup and handle

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +1

      Hi, thank you for your support. Yes there is a way I am preparing a video for these patterns since it has been requested many times, however it's not one program that does all the patterns detection at once, triangles have their Algorithm, head and shoulders in a separate Algorithm and so on... Kind of challenging

    • @connectrRomania
      @connectrRomania 2 года назад +1

      @@CodeTradingCafe thanks for the tips can’t wait for the video 😃

  • @ojfidelis2854
    @ojfidelis2854 2 года назад +2

    Please I need help try to use this code but this line "If(df1.low[I]>df1.low[i-1]: return 0" is giving this error attribute have no df1.low

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      Hey you need to run the previous cells first.

    • @ojfidelis2854
      @ojfidelis2854 2 года назад

      I don't use Jupiter notebook, but am using pycharm

    • @ojfidelis2854
      @ojfidelis2854 2 года назад

      I will really appreciate if you can help fix this bug thanks

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      @@ojfidelis2854 it's difficult to guess because at mine it's working. The error says that the 'low' column doesn't exist in df, try and print df to see if the column is there and what's its name.

  • @SubhanSadad109
    @SubhanSadad109 3 года назад +1

    Hi I keep getting the error "FileNotFoundError Traceback (most recent call last)" where do you store the csv file ?

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад +1

      It has to be in the same folder as the Jupyter notebook file

    • @SubhanSadad109
      @SubhanSadad109 3 года назад

      @@CodeTradingCafe It is still not wroking tho. Im doing it on mac maybe thats why ?

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад +2

      Not sure, first check if the filename is all good letter by letter, if all is well try including the path of the file within the read_csv function like "c:/folder/folder2/file.csv""

  • @ibebas
    @ibebas Год назад +1

    This is really great and helpful 👏👍 Can you also cover Pivot Points , Monthly, Weekly and daily please ? Then you combine with Swing Trading with Martingale strategy. 😀 Thank you.

    • @CodeTradingCafe
      @CodeTradingCafe  Год назад

      Thank you for your comment, weekly pivot points and resistance/support are important, you can apply the same code from this video to any timeframe.

  • @planb5386
    @planb5386 2 года назад +1

    Thank you for your video.

  • @mehrdadhaghgoo1356
    @mehrdadhaghgoo1356 3 года назад +1

    Great job 👏👏👏

  • @idrispendisbey
    @idrispendisbey 2 года назад +1

    file is not available. maybe you can share a github link?

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      Hi thank you, I don't have GitHub for the moment but I tried both file links and they're working fine maybe try again check from your side

  • @Test-vd6jg
    @Test-vd6jg 2 года назад +1

    Great job! Could you please write code to detect demand and supply zone and then only show fresh zone (which is not tested before?
    Thanks again in advance.

    • @CodeTradingCafe
      @CodeTradingCafe  Год назад

      Hi thank you for your support! I see your proposition is related to the video, do you have any more details? maybe a link where it's described?

  • @connectrRomania
    @connectrRomania 2 года назад +1

    Hi there, is there a way that i can confirm possible resistance and supports, for example if it touch the same level of resistance or support twice we can confirm its a valid point of resistance or support, I would love if u include it in the notebook, much thanks.

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +1

      At the time I recorded the video, I wanted to include how many times the level was touched and assign this number as the strength of the resistance/support, this way we can filter these by strength, say for example I will only take into account support/resistance of level 3... and so on, I will try and think of another video including these details. (But it might be in few weeks, bare with me).

    • @PolowInside
      @PolowInside 2 года назад +1

      Well it's just an idea but if you decide to use the approach where you store your resistance and support levels in two different lists, you could iterate through those lists to find the duplicated values and assign them a note.

  • @ditmecuocdoi
    @ditmecuocdoi 3 года назад

    Thanks alot for great content ! But 14:13 , i am trying to show dateTime instead of index go.Candlestick(x=dfpl.dateTime, my candlestick graph is disappear , and it is show from 1970-2020. Btw, my sr[list] is updated from row,price to dateTime,price, still it does not help! Could you please advice ?

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад +1

      Hi thank you for your comment, you have to make sure that the format of the date is understandable by pandas and also convert the column to datetime type using to_datetime function

    • @ditmecuocdoi
      @ditmecuocdoi 3 года назад +1

      @@CodeTradingCafe it works bro ! Thanks alot !

  • @nikhilrane8586
    @nikhilrane8586 11 месяцев назад

    i was asking can ve not put value in code it will automatically detect and put in chart is it possible i think our view in market are more good please reply?

    • @nikhilrane8586
      @nikhilrane8586 11 месяцев назад +1

      The message is it possible i know 250 is support so can I not directly poot and it will take like support?

    • @CodeTradingCafe
      @CodeTradingCafe  11 месяцев назад

      Yes you can definitely do it, it's actually easier if you insert your own values, ... you still need a strategy though.

  • @Aram-SEMO
    @Aram-SEMO 2 года назад +1

    amazing 😃

  • @lilitaalem336
    @lilitaalem336 3 года назад

    Identifying Pivot, support and resistance lines is very good idea. I tried run code to get the same output you found. But, when I tried I encountered the followings two areas:
    AttributeError: 'DataFrame' object has no attribute 'low',
    AttributeError: module 'plotly.graph_objs' has no attribute 'Candilestick'
    How can you resolve these issues? Do you have specific code to resolve these issues? thanks.

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад

      Try printing the df see if the columns where loaded correctly, sometimes the file column is "Low" instead of "low" in this case modify the data file to "low" small L.
      And there is a typo candilestick should be candlestick
      Let me know if it works

  • @davyponte
    @davyponte Год назад +1

    Guys i don’t understand too good this algorithm. I want tgis algorithm works in pychar… help me plz!

    • @CodeTradingCafe
      @CodeTradingCafe  Год назад +1

      Hi this algorithm can run on any python based environment, just download the jupyter notebook file and try it out.

  • @top10top54
    @top10top54 3 года назад +1

    MY SUGGESTION TRY BACKTESTING WITH HARMONIC PATTERNS....... I'm multiple problems...your attempt will be appreciated

  • @chukwuemekao9610
    @chukwuemekao9610 2 года назад +1

    Thank you very much

  • @SubhanSadad109
    @SubhanSadad109 3 года назад +1

    plotlist1 = [x[1] for x in sr if x[2]==1] # stores values support
    plotlist2 = [x[1] for x in sr if x[2]==2] # stores values resistance
    Hi can you please explain this peice of code more?

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад +1

      Hi, if x[2] is 1 or 2 we know that it's either a support or a Resistance respectively, so if it's a support we store the value of the level that is x[1] either in plotlist1 where I am saving all the support values or plotlist2 where I am saving all the Resistance values.
      I hope this helps a bit

    • @SubhanSadad109
      @SubhanSadad109 3 года назад +1

      @@CodeTradingCafe thank you, but what is x[2) is it the previous 2 in the for loop?

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад +1

      @@SubhanSadad109 no, imagine a table of 2 dimensions columns and lines, in fact each x is a line of 3 elements x[0] x[1] and x[2] representing the different levels but to differentiate between support and resistance we give element x[2] values 1 and 2. Just imagine that each line or level is represented by 3 values of x

    • @SubhanSadad109
      @SubhanSadad109 3 года назад +1

      @@CodeTradingCafe ohh that makes sense thank you so much !

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад

      Glad I could help

  • @sudesh6419
    @sudesh6419 Год назад

    great informative video

  • @stalkingstocks3002
    @stalkingstocks3002 3 года назад +1

    Can you please make resistance and support with line chart. That would refine it much '!!!

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад

      Hi, I am not sure what you mean, what is line chart?

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад

      Is it like a chart with a simple line without the candles?

  • @albertovidalfernandez112
    @albertovidalfernandez112 Год назад +1

    Hi, please can u teach me how put orders in futures with ccxt un kucoin. I have a lote of backtestings, and I want to go test but i dont know how put orders. THX man ❤ 0:25 1:26

    • @CodeTradingCafe
      @CodeTradingCafe  Год назад

      Hi thank you for your support! for putting orders you can try a demo/paper account and follow these instructions for testing: ruclips.net/video/WcfKaZL4vpA/видео.html

  • @alpsgrin4501
    @alpsgrin4501 3 года назад +1

    you immediately found support and resistance on Fibonacci levels ??

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад

      Hi, actually Fibonacci are NOT involved here it's only support and resistance where we got price reversals.

    • @alpsgrin4501
      @alpsgrin4501 3 года назад +1

      @@CodeTradingCafe Yes, hello, thanks for the answers! But did you see the patterns by drawing lines ?? or did you not set yourself the goal of finding patterns for yours a very good new strategy ?

    • @CodeTradingCafe
      @CodeTradingCafe  3 года назад

      No I didn't check the patterns, I honestly don't believe in Fibonacci in finance, so I usually don't even think about it

  • @thinketh2408
    @thinketh2408 2 года назад

    kindly also share how to use this in strategy ....

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +1

      Hi I did videos using this in 2 different strategies... combined with candle patterns, the problem is I can't remember which videos are these 😂

    • @thinketh2408
      @thinketh2408 2 года назад +1

      @@CodeTradingCafe😅 even I sometime get mixed up with you notebooks....
      I think it was scalping one... Ema and engulfing candle...

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +1

      I will rearrange my playlist into more organized schema hopefully soon, it will be easier to find videos.

    • @thinketh2408
      @thinketh2408 2 года назад +1

      @@CodeTradingCafe thanks...

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад +1

      Actually I think it's this video we are looking for ruclips.net/video/y78S-aCwqEM/видео.html

  • @TheAmd109
    @TheAmd109 2 года назад +1

    thank you very much for your explanation, it was smooth and informative
    I would like to ask you if it is possible to automate the resistant and support points in yahoo finance instead of plotly.graph_objects

    • @CodeTradingCafe
      @CodeTradingCafe  2 года назад

      Hi thank you for your comment, I'm not sure I understand correctly because these are 2 different tools, and plotly is just to visualize the results.

  • @munivoltarc
    @munivoltarc Год назад +1

    Hi, can you make a video on Price action trade, without using any indicator, using python coding is it possible, if so please make a video no one in RUclips ever did this kind of algo trade, majority traders youtubers used moving average, so if you do unique video on Price action trading you are the best among them.

    • @CodeTradingCafe
      @CodeTradingCafe  Год назад +1

      Hi, thank you for sharing, I have some videos on price action trading, let me know if the content is what you have in mind: ruclips.net/video/PfmxNxS4EYQ/видео.html
      Good luck!

    • @munivoltarc
      @munivoltarc Год назад +1

      @@CodeTradingCafe Thanks for the reply, could you spare some time and think what I actually trying to convey you is, " Please do some video of live coding or recorded video on price action kind of algo trading using python, in that you should not use any indicator except RSI, MACD and price action Elliot or Wyckoff way in multi time frame method, is it possible for you, if so please make a video it is very demanding in market youtubers are eagerly waiting" thanks for you reading. hope you will deliver soon, bye

  • @rajutandale6663
    @rajutandale6663 6 месяцев назад

    sir pl. code for indian market

    • @CodeTradingCafe
      @CodeTradingCafe  6 месяцев назад

      Hi, really sorry I am not familiar with the indian market, but if you like a strategy here you can adapt easily to any asset you are trading.

  • @Dr.jayfrancis
    @Dr.jayfrancis 3 года назад +2

    thumbs up!

  • @jaikrishnan2988
    @jaikrishnan2988 2 года назад

    Upload cpr automation video