[{"data":1,"prerenderedAt":650},["ShallowReactive",2],{"project-31247312":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":29,"sentiment":30,"stance_mix":31,"scored_comments":35,"aspects":36,"strip":47,"post_text":48,"what":49,"said":64,"maker_in_thread":199,"shape":212,"grid":215,"attempts":612,"same_week":613,"maker_shows":38,"maker_hidden":642,"reader_version":643,"card":644},"31247312","betagainst","Find the 10 highest and 10 lowest correlations to any stock","title","Show HN: Find the 10 highest and 10 lowest correlations to any stock","https:\u002F\u002Fbetagainst.fun\u002F","betagainst.fun","macco",1651579800,2022,217,143,252,2570,10,"notable","finance_crypto","stock correlation finder","web_app",[24,25,26,27,28],"stock correlation","negative correlation","hedging stocks","beta","pairs trading","curious",-0.196,{"positive":32,"neutral":33,"mixed":32,"critical":34},5,26,14,50,{"idea":37,"execution":40,"docs":42,"performance":44,"design":46},{"positive":38,"critical":39},3,6,{"positive":41,"critical":39},1,{"positive":43,"critical":43},0,{"positive":43,"critical":45},2,{"positive":43,"critical":43},[38,43,43,43,38,45,38,41,43,45,43,43,43,43,43,43,41,41,43,38,43,43,43,43,43,41,45,38,32,41,41,38,38,38,32,38,38,38,41,32],"During the start of the year I was thinking how could I bet against certain stocks (in my case mainly Tesla) without using derivatives and the risks that come with them.\n\nAfter I had success betting on the oil price with a highly correlated investment fond, I came to the conclusion that negative correlations could be used to bet against the price of other assets. Unfortunately, it is not easy to find correlations between assets if you don't know which assets to compare in the first place.\n\nSo I created a website where you can find the 10 highest and 10 lowest correlations of certain assets.",{"problem":50,"audience":56,"pricing":56,"motivation":57,"time_to_build":56,"stack":61,"openness":62,"stage":63,"team_size":62},{"value":51,"source":52,"evidence":53},"Finding stocks or assets that are highly positively or negatively correlated with a chosen asset, to bet against it without derivatives","maker",[54],{"id":55},"post",null,{"value":58,"source":52,"evidence":59},"Wanted to bet against certain stocks, mainly Tesla, without derivatives",[60],{"id":55},[],"unknown","launched",{"praise":65,"objections":66,"requests":128,"questions":174,"alternatives":183},[],[67,83,98,117],{"value":68,"source":69,"evidence":70},"Correlation is an unreliable basis for hedging and betting; correlations change over time","commenter",[71,75,79],{"id":72,"by":73,"text":74},"31249108","HFguy","Couple of random thoughts: - Building things like this is always great. And its a fun site to poke around on. - I would not count on this approach or expect it to be reliable in…",{"id":76,"by":77,"text":78},"31247864","Bostonian","\"We calculate the correlations between 2 securities on the daily closing values of the last 20 years.\" It's better to correlate daily returns than daily prices, since the latter…",{"id":80,"by":81,"text":82},"31250200","surfsvammel","Correlation between assets change over time. Predicting what the correlation will be in the future is important for asset managers. I am supervising a master thesis project (in…",{"value":84,"source":69,"evidence":85},"Splits and dividends are not handled correctly, producing wrong results",[86,90,94],{"id":87,"by":88,"text":89},"31251418","flying_sheep","Well this tool does not cater for splits and dividends :-\u002F very misleading IMO",{"id":91,"by":92,"text":93},"31250168","dmitrygr","This tool does not correctly handle stock splits and thus all the correlations it produces are wrong for any stock that has ever had a split or a reverse split. It shows a split…",{"id":95,"by":96,"text":97},"31251213","Def_Os","Data source? Did you correct for splits and dividends? Why not use returns? Nice idea, but we’re left with so many questions.",{"value":99,"source":69,"evidence":100},"Server timeouts and rate-limit errors under load",[101,105,109,113],{"id":102,"by":103,"text":104},"31248036","runeks","Super useful! However, I get a “504 Gateway Time-out” error for https:\u002F\u002Fbetagainst.fun\u002Fasset\u002Fbz__f_bno\u002F. HN hug of death?",{"id":106,"by":107,"text":108},"31247626","daxaxelrod","Getting 429 status codes after I hit search",{"id":110,"by":111,"text":112},"31249874","TradingPlaces","HN Hug of Death continues. 503 and 504 all morning. Congrats?",{"id":114,"by":115,"text":116},"31248640","dom96","This is a really great idea, unfortunately also getting 504s.",{"value":118,"source":69,"evidence":119},"Index funds like S&P 500 and DJI give meaningless results",[120,124],{"id":121,"by":122,"text":123},"31247615","vortico","Very cool, although index funds like S&P 500 and DJI don't seem to work. https:\u002F\u002Fbetagainst.fun\u002Fasset\u002F_gspc_spy\u002F https:\u002F\u002Fbetagainst.fun\u002Fasset\u002F_dji_dia\u002F",{"id":125,"by":126,"text":127},"31248784","andrewmcwatters","That doesn't make any sense anyway. You're asking what are the highest and lowest correlations of the market against the market itself. You cannot compare the same or roughly the…",[129,133,144,155],{"value":130,"source":69,"evidence":131},"Use daily returns instead of prices, and a shorter window than 20 years",[132],{"id":76,"by":77,"text":78},{"value":134,"source":69,"evidence":135},"Add lagged correlations",[136,140],{"id":137,"by":138,"text":139},"31248423","karxxm","Are you also considering time lagged correlations? To me I don't care if a certain stock is correlated by something, I would more like to know which stocks do have correlations…",{"id":141,"by":142,"text":143},"31250225","matt321","I want LAGGING correlation please thanks.",{"value":145,"source":69,"evidence":146},"Add cointegration as well as correlation",[147,151],{"id":148,"by":149,"text":150},"31247753","omarhaneef","I wonder if correlation is the best measure. Cointegration might be more important for this sort of trading. And might be a supplementary measure you want to add since you’re…",{"id":152,"by":153,"text":154},"31250521","loxias","Great project! Even more so, congrats on shipping something! A little tip from someone who dabbles in algorithmic trading, look into cointegration as well as correlation. Also,…",{"value":156,"source":69,"evidence":157},"Support more tickers, indices, currencies and commodities",[158,162,166,170],{"id":159,"by":160,"text":161},"31248437","lbhdc","Does this support all publicly listed tickers? It didn't seem to find the few I searched for.",{"id":163,"by":164,"text":165},"31249510","ltbarcly3","\"any stock\"? First two I tried are not available.",{"id":167,"by":168,"text":169},"31252047","throwamon","Cool. Not sure how useful it is considering what other commenters said, but is there anything like this for indices or currencies? Also, typo: Higest -> Highest",{"id":171,"by":172,"text":173},"31255553","c_o_n_v_e_x","Nice. I've been stewing on a similar idea but that finds correlations in equities with commodity futures.",[175],{"value":176,"source":69,"evidence":177},"Where does the data come from and is it split and dividend adjusted",[178,182],{"id":179,"by":180,"text":181},"31250066","throwaway4good","Where do you get your data from?",{"id":95,"by":96,"text":97},[184,192],{"value":185,"source":69,"evidence":186},"Beta calculations and risk models",[187,188],{"id":72,"by":73,"text":74},{"id":189,"by":190,"text":191},"31249564","JackFr","The correlation of an asset to the market is the definition of 'beta' and it is not technical analysis (from investopedia): \"Beta is a measure used in fundamental analysis to…",{"value":193,"source":69,"evidence":194},"Factor.fyi SQL correlation query",[195],{"id":196,"by":197,"text":198},"31253832","sdcoffey","This is pretty easy to do in SQL too! https:\u002F\u002Ffactor.fyi\u002Fquestions\u002Ftop-10-aapl-correlating-stocks-s7v8xk0nsu",{"comments":200,"answered":201,"key":202},8,7,[203,206,209],{"id":204,"text":205},"31253045","The idea is that you search for negative correlations and then you look into the two asset, if there is some relationship. For example if the price of oil goes down the stock…",{"id":207,"text":208},"31253206","It happened more by accident. I only used the field to compose the \"first\" comment, but then I hit submit before cutting the text.",{"id":210,"text":211},"31253307","I highly doubt your assessment. When you have a short position, with underlying values you don't own, you have a leveraged investment. Which is inherently more risky than…",{"commenters":213,"max_depth":18,"maker_replies":200,"first_comment_mins":41,"lifespan_hours":214},98,269,[216,218,222,225,228,231,233,236,239,242,244,246,249,251,254,256,260,262,265,267,270,272,276,279,282,284,286,289,292,294,298,301,303,307,310,313,316,319,322,325,328,330,333,336,339,341,344,347,350,352,354,356,359,362,364,367,369,372,374,376,380,381,383,387,389,390,394,397,401,402,404,406,409,411,413,415,417,419,421,423,425,427,429,432,435,438,441,444,447,449,452,456,458,461,462,464,466,469,471,476,480,483,487,490,493,495,499,503,506,509,511,513,516,520,522,526,529,531,534,536,540,543,546,550,552,557,561,563,565,570,575,577,579,583,585,588,590,592,596,599,602,605,607],[72,43,38,217,73,43],"project\u002Fmixed\u002Fidea",[219,43,43,220,221,43],"31250093","commenter\u002Fneutral\u002Fnone","deltree7",[223,43,43,220,224,43],"31251816","vasco",[226,43,43,220,227,43],"31252522","riku_iki",[229,43,43,220,230,43],"31252574","tdhz77",[232,43,43,220,227,43],"31252688",[234,43,43,220,235,43],"31252960","tasuki",[237,43,43,220,238,43],"31253144","somebodythere",[240,43,43,220,241,43],"31253150","Vindicis",[243,43,43,220,235,43],"31253523",[245,43,43,220,227,43],"31253629",[247,43,43,220,248,43],"31253352","ckw",[250,43,43,220,227,43],"31253440",[252,43,43,220,253,43],"31253575","bidirectional",[255,43,43,220,227,43],"31253641",[257,43,38,258,259,43],"31250509","project\u002Fneutral\u002Fidea","huijzer",[261,43,43,220,73,43],"31250799",[263,43,38,258,264,43],"31251970","all2",[204,43,43,266,11,41],"maker\u002Fneutral\u002Fidea",[268,43,38,258,269,43],"31253642","bumby",[102,41,41,271,103,43],"project\u002Fcritical\u002Fexecution",[273,41,38,274,275,43],"31248891","project\u002Fneutral\u002Fexecution","davidkuennen",[277,41,38,274,278,43],"31256675","elihu",[280,41,38,274,281,43],"31250253","jedberg",[283,41,43,220,103,43],"31250353",[76,45,41,285,77,43],"project\u002Fcritical\u002Fidea",[287,45,43,220,288,43],"31248587","danuker",[290,45,43,220,291,43],"31248909","nurettin",[293,45,43,220,77,43],"31249729",[295,38,43,296,297,43],"31248795","other\u002Fneutral\u002Fnone","natly",[299,38,43,296,300,43],"31249011","niklasbuschmann",[302,38,43,296,297,43],"31249126",[304,305,41,285,306,43],"31247858",4,"tdehnel",[308,305,38,258,309,43],"31248025","onlyrealcuzzo",[311,305,38,258,312,43],"31249121","somedude895",[314,305,43,296,315,43],"31249545","hedora",[317,32,43,220,318,43],"31248416","iso1631",[320,32,43,220,321,43],"31248580","nopassrecover",[323,32,43,220,324,43],"31248710","NoboruWataya",[326,32,43,220,327,43],"31253272","robocat",[329,32,43,220,321,43],"31257711",[331,32,43,220,332,43],"31248882","mox1",[334,32,43,220,335,43],"31249925","snake_doc",[337,32,43,220,338,43],"31249062","0daystock",[340,32,43,220,73,43],"31249191",[342,32,43,296,343,43],"31249433","belter",[345,32,43,220,346,43],"31250520","smabie",[348,32,43,220,349,43],"31251412","TameAntelope",[351,32,43,220,318,43],"31258711",[353,32,43,220,343,43],"31251469",[355,32,43,220,318,43],"31252560",[357,32,43,220,358,43],"31250114","OJFord",[360,39,43,296,361,43],"31249311","Aachen",[363,39,43,296,358,43],"31250144",[365,39,43,296,366,43],"31251301","pushrax",[368,39,43,296,358,43],"31251917",[370,39,43,296,371,43],"31250792","tbihl",[207,39,43,373,11,41],"maker\u002Fneutral\u002Fnone",[375,201,41,285,335,43],"31248244",[377,201,38,378,379,43],"31248278","project\u002Fmixed\u002Fexecution","joelthelion",[210,201,43,266,11,41],[382,201,43,220,335,43],"31254792",[384,200,38,385,386,43],"31247870","maker\u002Fneutral\u002Fdocs","cosmic_quanta",[121,388,41,271,122,43],9,[125,388,43,220,126,43],[391,388,43,392,393,43],"31248954","commenter\u002Fneutral\u002Fidea","scarmig",[395,388,43,396,126,43],"31249252","commenter\u002Fcritical\u002Fidea",[398,388,43,399,400,43],"31249535","commenter\u002Fpositive\u002Fidea","nickles",[189,388,43,220,190,43],[403,388,43,220,126,43],"31249685",[405,388,38,258,269,43],"31253764",[407,388,43,392,408,43],"31249050","greatwave1",[410,388,43,396,126,43],"31249358",[412,388,43,399,400,43],"31249505",[414,388,43,396,126,43],"31249749",[416,388,43,392,400,43],"31249940",[418,388,43,392,315,43],"31249619",[420,388,43,220,349,43],"31251422",[422,388,43,220,126,43],"31251854",[424,388,43,220,349,43],"31251928",[426,388,43,220,126,43],"31252010",[428,388,43,220,349,43],"31252420",[430,18,43,220,431,43],"31248272","marcrosoft",[433,18,43,220,434,43],"31248687","akg_67",[436,18,43,220,437,43],"31248791","sakopov",[439,18,43,220,440,43],"31249048","plouffy",[442,18,43,220,443,43],"31249079","sigstoat",[445,18,43,220,446,43],"31253067","ALittleLight",[448,18,43,220,443,43],"31249056",[450,18,43,220,451,43],"31248793","danielmarkbruce",[453,454,41,285,455,43],"31248464",11,"joshuak",[87,457,41,271,88,43],12,[114,459,38,460,115,43],13,"project\u002Fmixed\u002Fperformance",[91,34,41,271,92,43],[95,463,38,385,96,43],15,[465,463,43,385,11,41],"31253167",[80,467,43,468,81,43],16,"other\u002Fneutral\u002Fidea",[196,470,38,258,197,43],17,[472,473,38,474,475,43],"31379890",18,"project\u002Fneutral\u002Fdocs","mountaineer",[477,478,38,378,479,43],"31249963",19,"mfrye0",[481,478,43,482,11,41],"31258036","maker\u002Fneutral\u002Fperformance",[484,485,38,258,486,43],"31249534",20,"work_ta_220503",[152,488,32,489,153,43],21,"maker\u002Fpositive\u002Fidea",[491,488,43,296,492,43],"31256991","MuffinFlavored",[494,488,43,296,153,43],"31279261",[496,497,38,385,498,43],"31253573",22,"betwixthewires",[500,501,41,285,502,43],"31248107",23,"LudwigNagasena",[504,501,41,285,505,43],"31248531","PaulHoule",[507,501,43,220,508,43],"31248774","thom",[510,501,43,220,505,43],"31249063",[512,501,43,392,508,43],"31251066",[106,514,38,515,107,43],24,"project\u002Fneutral\u002Fperformance",[517,514,38,518,519,43],"31247733","project\u002Fneutral\u002Fnone","LinuxBender",[148,521,38,258,149,43],25,[523,33,38,524,525,43],"31252819","maker\u002Fmixed\u002Fdesign","jnwatson",[527,33,43,528,11,41],"31258045","maker\u002Fneutral\u002Fdesign",[137,530,38,258,138,43],27,[532,530,43,392,533,43],"31249163","dhosek",[535,530,43,392,498,43],"31253645",[537,538,38,258,539,43],"31251739",28,"macilacilove",[541,538,43,468,542,43],"31251783","GraemeMeyer",[544,538,43,296,545,43],"31251811","sicromoft",[547,538,43,548,549,43],"31251824","commenter\u002Fneutral\u002Fexecution","drinkzima",[551,538,43,296,549,43],"31251874",[553,554,32,555,556,43],"31247317",29,"project\u002Fpositive\u002Fidea","noduerme",[558,559,38,258,560,43],"31264191",30,"vohu43",[167,562,38,518,168,43],31,[564,562,43,373,11,41],"31257984",[566,567,41,568,569,43],"31251556",32,"project\u002Fcritical\u002Fperformance","pmarreck",[571,572,32,573,574,43],"31249219",33,"project\u002Fpositive\u002Fnone","chychiu",[171,576,32,555,172,43],34,[159,578,41,271,160,43],35,[580,581,43,468,582,43],"31248069",36,"lupire",[179,584,38,274,180,43],37,[586,587,43,373,11,41],"31252921",38,[110,589,41,568,111,43],39,[163,591,41,271,164,43],40,[593,594,38,274,595,43],"31249782",41,"nairboon",[597,594,38,274,598,43],"31249893","bflesch",[600,594,43,296,601,43],"31254845","benibela",[603,594,32,604,278,43],"31256718","project\u002Fpositive\u002Fexecution",[141,606,38,258,142,43],42,[608,609,43,610,611,43],"31248974",43,"other\u002Fcritical\u002Fidea","sk8terboi",[],[614,619,624,628,632,637],{"id":615,"name":616,"points":617,"category":618},"31238396","PostgresML",444,"ai",{"id":620,"name":621,"points":622,"category":623},"31210680","Radiopaper",346,"consumer_social",{"id":625,"name":626,"points":627,"category":623},"31238958","Hangtime",311,{"id":629,"name":630,"points":631,"category":20},"31192956","Fintopea",245,{"id":633,"name":634,"points":635,"category":636},"31225494","NoiseCraft",214,"creative",{"id":638,"name":639,"points":640,"category":641},"31203024","Joyride",211,"dev_tools",false,"v2",{"id":645,"name":5,"line":6,"ai":642,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":646,"top":18,"kw":647,"maker":11,"domain":10,"tier":19,"attempts":43,"strip":648,"url":9,"mix":649,"praise":-1,"objection":68,"sub":21},31247312,-0.2,[24,25,26,27,28],"3000323102000000110300000123511333533315",[32,33,32,34],1794036619878]