Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

market makers aren't quoting price they're running an inventory optimization formula, and every bid/ask you've ever traded against was its output formula is free, been public since 2008, and retail trading has never once mentioned it NYU professor Marco Avellaneda published the model - 14 pages, zero paywall, on...

11,887 Aufrufe • vor 14 Tagen •via X (Twitter)

0 Kommentare

Keine Kommentare verfügbar

Kommentare vom Original-Post werden hier angezeigt

Ähnliche Videos

most Polymarket bots die the same way they quote symmetrically around mid-price price moves they absorb the loss repeat until account is empty the fix has been in academic papers since 2008 Stoikov figured it out studying stock market microstructure the math translates directly to prediction markets here's what actually matters: mid-price is a bad signal it's the average of best bid and ask on thin Polymarket orderbooks that number is almost meaningless what you want is VAMP Volume Adjusted Mid Price you walk into the orderbook depth and calculate the weighted average price for a given volume filters out the gaps, gives you a real reference point then you stop quoting symmetrically the reservation price formula: r = Mid - β × Q Q is your current inventory if you're long YES contracts, r shifts down automatically your bot starts selling YES cheaper and stops buying aggressively target is always flat inventory the spread isn't static either it has two components: volatility premium (widens when market moves fast) microstructure premium (depends on how often orders actually fill) if Polymarket odds start swinging fast, spread widens in real time static spread = guaranteed adverse selection - one more thing Stoikov points out: small tick size markets are where this model actually works large-tick markets (CME futures, liquid ETFs) have massive queues you can't nudge your price by a fraction of a tick without losing your place Polymarket is small-tick by nature binary markets, USDC pricing, sparse orderbooks that's exactly the environment this model was built for the P&L comparison between naive bots and inventory-controlled bots is not close naive strategy: wide distribution, occasional huge wins, regular wipeouts inventory control: tight distribution, consistent positive drift, rare catastrophic losses the "pennies in front of a steamroller" problem doesn't go away but you can see the steamroller coming if you're watching orderbook imbalance when bid volume heavily outweighs ask volume price is about to move up your bot should already be adjusting before the move happens that's the wealth still building the inventory control layer myself using for live execution in the meantime it handles the market scanning and order management while i finish the rest

cryptovcdegen

19,483 Aufrufe • vor 5 Monaten

Lecture 2 of our Physics-Informed Neural Networks mini-series. In Lecture 1 we made the idea visible...a neural network isn’t predicting a PDE solution, it is the candidate function uᵩ(x,t), and the PDE residual rᵩ(x,t) is the leash that keeps it honest. Now the natural question follows: How can a neural network be punished for breaking a PDE when nobody ever handed it the true solution, and the equation itself contains derivatives like uᵩₜₜ and uᵩₓₓ? Here’s the satisfying answer: A PINN doesn’t need the true answer to be corrected. It only needs a way to measure how wrong it is according to the PDE! The network outputs uᵩ(x,t). A software called "autodiff" is used to compute the derivatives (uᵩₓ, uᵩₜ, uᵩₓₓ, …) exactly by applying the chain rule through the network. Those derivatives get dropped into the PDE to produce rᵩ(x,t). If rᵩ is big at some point, the loss spikes there, and gradient descent pushes the parameters so that rᵩ shrinks. The math breakdown We want a function u(x,t) that satisfies a PDE on a domain Ω. In this lecture we keep a concrete nonlinear example in mind, the damped sine-Gordon equation uₜₜ(x,t) + γ uₜ(x,t) − c² uₓₓ(x,t) + sin(u(x,t)) = 0. A PINN replaces the unknown function u with a neural network uᵩ(x,t), where ᵩ means all the network parameters (weights and biases). Now we build the physics residual by plugging uᵩ into the PDE rᵩ(x,t) = uᵩₜₜ(x,t) + γ uᵩₜ(x,t) − c² uᵩₓₓ(x,t) + sin(uᵩ(x,t)). If uᵩ were a true solution, rᵩ would be 0 everywhere. So we sample points (xⱼ,tⱼ) inside the domain. These are collocation points. At each one we evaluate rᵩ, and we define a physics loss L_phys(ᵩ) = meanⱼ |rᵩ(xⱼ,tⱼ)|². This is the punishment mechanism. (Punish just means: if |rᵩ| is big, L_phys is big; training updates ᵩ to make L_phys smaller. Reward means the loss drops, so those parameter changes are kept.) The key question was where the derivatives come from. Since uᵩ is built out of differentiable operations, we can compute uᵩₜ(x,t), uᵩₜₜ(x,t), uᵩₓ(x,t), uᵩₓₓ(x,t), at any input (x,t) we choose. Imagine a simple differentiable model written as a sum of nonlinear features uᵩ(x,t) = Σₖ vₖ σ( wₖx x + wₖt t + bₖ ) + b₀. Then the derivatives are just chain rule uᵩₓ(x,t) = Σₖ vₖ σ′(·) wₖx uᵩₓₓ(x,t) = Σₖ vₖ σ″(·) (wₖx)² uᵩₜ(x,t) = Σₖ vₖ σ′(·) wₖt uᵩₜₜ(x,t) = Σₖ vₖ σ″(·) (wₖt)². So rᵩ(x,t) is an explicit computable number at every (x,t). For the damped sine-Gordon example, it’s the same story, just with one extra nonlinear term: rᵩ(x,t) = [uᵩₜₜ(x,t) + γ uᵩₜ(x,t) − c² uᵩₓₓ(x,t)] + sin(uᵩ(x,t)). A real PINN is a deeper composition of these same building blocks, but it’s still just a chain rule, and autodiff is the machinery that does that bookkeeping reliably for big graphs. Then we train by gradient descent on the total loss. Even if we use only physics for the moment, the update is conceptually just ᵩ ← ᵩ − η ∇ᵩ L_phys(ᵩ), with learning rate η. In practice we also include initial/boundary conditions or data, because PDEs aren’t uniquely determined without them L(ᵩ) = L_data(ᵩ) + λ L_phys(ᵩ) + L_bc/ic(ᵩ), where L_bc/ic(ᵩ) enforces things like uᵩ(x,0) ≈ u₀(x) and uᵩₜ(x,0) ≈ v₀(x), or boundary conditions at x = ±L. So Lecture 2’s punchline is simple: the PDE becomes a training signal. We keep differentiating uᵩ, measuring rᵩ, and updating ᵩ until the residual goes quiet across Ω. #PINNs #PhysicsInformedNeuralNetworks #ScientificMachineLearning #AutoDiff #Backpropagation #PDE #DifferentialEquations #Optimization #MachineLearning #AppliedMath #ComputationalPhysics

Mathelirium

19,977 Aufrufe • vor 7 Monaten

a $40/month server beat a room full of analysts to the same trade by five and a half hours market opens at 9:30. his position was already in at 4am the system is a neural net trained on 11 years of tick data. it flagged the setup before the candle that "confirmed" it had even started forming this is the part retail misunderstands about ML in markets it isn't prediction in the mystical sense. it's pattern classification at a speed and scale human eyes physically cannot match the mechanics: 847,000 labeled historical setups as training data 4,200 data points per second ingested live each new state scored against every pattern the net has ever seen, in milliseconds the model isn't asking "where is price going" it's asking "how closely does the current microstructure match the conditions that preceded a move in my training set" that's a classification problem, and classification is what neural nets do better than anything else output: 3-4 candidate trades a day. he takes the top 2 by confidence score last 90 days: 71% win rate at 2.3 average risk-reward the edge isn't the architecture. the architecture is public pytorch is free, the papers are on arxiv, the network is a few hundred lines the edge is the labeling. what you feed it and how you tag the setups is the entire game retail feeds a model price and time and gets noise a desk feeds it order flow, volatility state, cross-asset context, each example hand-labeled by outcome same network. different training data. that's the whole difference retail watches the news at the open and reacts this system scored every pattern before sunrise and already decided you're not losing because your analysis is wrong you're losing to something that doesn't sleep, doesn't panic, and doesn't second-guess a probability it already computed the dataset was free. the framework was free. the compute was $40 a month the edge was never behind a paywall. it was sitting in a format almost nobody bothered to train on full breakdown in the article below

delost

20,942 Aufrufe • vor 1 Monat

A senior quant at an $18.4 billion fund showed his team a study of 50 US stocks and asked: “why are we trading volume when the order book explains price better?” the answer led them into level 3 data during the same 30 seconds that an opening candle printed five values the exchange produced more than 215,000 messages hidden inside them were market makers adding liquidity, canceling bids, and stepping away before a move worth $120,000 appeared on the chart level 3 records every order added, modified, filled, or canceled, along with its price, size, side, and location in the book the team turned that stream into rates of additions, cancellations, and trades per second then they built two signals the continuation model looked for bids entering much faster than asks while the spread stayed tight and activity remained high the reversal model waited until price became stretched then watched bid cancellations jump above the 95th percentile of the previous 60 seconds while new buyers stopped replacing them the candle could still look bullish but the market makers underneath it had already started backing away they do not want thousands of bids filled as price falls and leaves the desk holding millions in unwanted long exposure so they cancel first the visible reversal comes later with $30 million positioned around the open, a 0.4% move equals roughly $120,000 the edge was not predicting every tick it was noticing the exact moment liquidity stopped supporting the price this is the skill firms pay six figures for: turning hundreds of thousands of invisible market events into one signal worth risking capital on I broke down how to build that skill from zero in 16 weeks bookmark this lesson then read the full quant roadmap below ↓

Sammy

75,079 Aufrufe • vor 28 Tagen

yesterday someone leaked a full quant trading system on GitHub before they deleted it i forked everything 5,000 lines of code. 7 modules. 25 mathematical factors funds use this system to manage millions i studied it for a week. then pointed it at crypto markets on polymarket here's the full breakdown you can feed this to your claude and build the same thing for just $200 ARCHITECTURE: Python thinks, analyzes, calculates C++ executes orders in 5-10ms data → factors → AI → strategy → risk → execution DATA. 4 streams simultaneously: - Binance WebSocket: prices every second, orderbook at 20 levels - AlphaVantage: news with sentiment score from -1 to +1 -X: mention volume, engagement, influencer activity - On-chain: BTC flows to/from exchanges cache in Redis ( target price) = N(d1) d1 = [ln(current/target) + (σ²/2)T] / (σ√T) then 4 adjustments on top: - momentum: +/-5% - AI sentiment: +/-7% - order flow: +/-2% - historical patterns: +/-8% compare final probability against polymarket price if edge > 10%: enter RISK - Quarter Kelly for position sizing - max 5% bankroll per trade - drawdown 15% = bot stops - VaR < 3% per day - correlation between positions < 0.7 - never take more than 1% of market liquidity key insight is don't hold to expiry. trade the movement, not the outcome cost: → Binance API: free → OpenAI: $50-100/month → AWS EC2: $120/month → monitoring: free - total: $200-300/month - code is open source. formulas above. you already have claude the only thing between you and a working system is one free evening

Archive

249,749 Aufrufe • vor 5 Monaten

a quant at a prop firm showed me a 5x5 grid on a napkin said: > this is our entire edge. we don't predict price. we predict which box the market is in and where that box historically leads i didn't understand it for weeks. then it clicked never looked at a chart the same way since grid is called a Markov Chain transition matrix. the math is from 1906, it's in every probability textbook on earth and hedge funds use it because it asks a completely different question than retail traders ever ask retail: will this go up or down quant: what state is this market in, and where does this state typically go every market lives in one of maybe 5-6 states at any given moment tight range, volatility compression, trending with momentum, post-spike reversal, pre-breakout coil not random labels - clusters you identify from actual data using volatility, volume, and momentum readings stacked together once you have the states, you build the matrix: P(state 2 -> state 4) = 73% P(state 4 -> state 1) = 61% P(state 1 -> state 3) = 68% each cell is a historical probability. now when the market is in state 2, you're not guessing you're betting on 73% historical completion. you size it with Kelly. you take the trade when the math says to, not when it feels right i built this on BTC using 2 years of 4-hour data. identified 5 states one i labeled "volatility compression below 20-day mean for 6+ consecutive candles" transitioned to a directional move above 1.8 ATR in 71% of cases average reward/risk on those trades: 5.4 that's not prediction. that's reading a probability table the market keeps filling in for you every single day the part that should bother you: the data to build this is free. the framework is in any quant textbook python to implement it is maybe 200 lines what Renaissance Technologies has that you don't isn't secret data or proprietary signals it's this framework applied to higher-resolution data with more sophisticated state definitions you're not missing information you're asking the wrong question every single time you open a chart

Livsun

188,928 Aufrufe • vor 2 Monaten

String Theory Lecture 1 A String Does Not Move Like a Point A point particle traces a line through spacetime. A string traces a surface. This is the first geometric shift in String Theory. Particle mechanics asks where one object is at time t, so its history is a curve. String Theory asks where every point of an extended object is at worldsheet time τ, so we need another coordinate telling us where we are along the string. For a point particle x(t) So, for one input of time we get a position in Spacetime. For a string Xᵘ(τ,σ) Here τ plays the role of time on the worldsheet, while σ labels position along the string. Freeze τ and vary σ, and you see the string at one instant. Let τ move, and that curve sweeps out a two-dimensional surface... the worldsheet. The same comparison appears in the action. For a relativistic point particle, the geometric action measures worldline length S = −m ∫ ds If we parameterize the path by t, the action has one integral, one parameter, and one tangent vector dxᵘ/dt For a string, the same idea grows by one dimension. The action measures area, not length. In Nambu-Goto form, S = −T ∫ dτ dσ √[−det hₐᵦ] Here T is the string tension. It plays a role similar to mass, but for an extended object. It weights the area of a surface rather than the length of a line. The particle action has ∫ dt because the history is one-dimensional. The string action has ∫ dτ dσ because the history is two-dimensional. We are no longer summing along a path, we are summing over a surface. The geometry changes for the same reason. For the particle, one derivative is enough dxᵘ/dt For the string, the geometry is built from two derivatives: ∂τXᵘ and ∂σXᵘ The first tells you how the string changes as worldsheet time flows. The second tells you how the embedding changes as you move along the string. Together they define the induced worldsheet metric hₐᵦ = ∂ₐXᵘ ∂ᵦXᵤ In plain terms, hₐᵦ measures tangent lengths and tangent angles on the worldsheet. From it, the area element is dA = dτ dσ √[−det hₐᵦ] This, the Nambu-Goto action is the direct analogue of the point-particle length action. The point particle extremizes length and the string extremizes area. For calculations, people usually switch to the Polyakov action: S = −(T/2) ∫ dτ dσ √[−γ] γᵃᵇ ∂ₐXᵘ ∂ᵦXᵤ This describes the same classical string dynamics, but the algebra is cleaner. After choosing conformal gauge, varying with respect to Xᵘ gives (∂²/∂τ² − ∂²/∂σ²) Xᵘ = 0 This is the first real dynamical payoff... a two-dimensional wave equation on the worldsheet. For a point particle, the equation of motion tells you how one position evolves along one path. For a string, it tells you how an entire curve evolves, with waves traveling along it. The term ∂²Xᵘ/∂τ² measures acceleration in worldsheet time, while ∂²Xᵘ/∂σ² measures curvature along the string. The time evolution is balanced by how the string bends along its own length. This is why strings have oscillation modes. A point particle has one trajectory. A string has many possible vibration patterns, each one a normal mode of the worldsheet wave equation. For a closed string, σ wraps around the loop Xᵘ(τ, σ + 2π) = Xᵘ(τ, σ) For an open string, one standard free-end condition is ∂σXᵘ = 0 at the endpoints. Solving the wave equation gives waves moving in opposite directions along the string Xᵘ(τ,σ) = Fᵘ(τ + σ) + Gᵘ(τ − σ) A function of τ + σ moves one way. A function of τ − σ moves the other. Therefore, a particle has a worldline, its action measures length, and its geometry uses one tangent. The string has a worldsheet, its action measures area, and its geometry uses two tangent directions. #StringTheory #TheoreticalPhysics #MathematicalPhysics #Physics #Spacetime

Mathelirium

31,560 Aufrufe • vor 3 Monaten

This trader built a bot with Claude Fable 5 that makes 876 trades per hour. Result: $226,000 profit on Polymarket. Starting capital: $2,366. Time frame: 1 month. The bot does high-frequency scalping and arbitrages 5-min and 15-min Bitcoin markets. Execution speed: 14.6 trades per minute. The strategy is simple: 1. Buys only with limit orders to control entry price Average market cost: $10 per position. No market orders. No slippage. Just precise entries. 2. Uses 5-min markets for arbitrage Average edge per trade: 7.27% The bot identifies mispriced outcomes and captures the spread before it closes. 3. Builds directional positions on 15-min markets Trigger: order book imbalance appears. The edge is reading order flow faster than everyone else and leaning into the side with momentum. The entire edge is execution speed + order book reading. While manual traders place 1-2 trades per hour, this bot completes 876. No hesitation. No emotion. Just high-frequency scalping repeating itself at scale. Some context: Most people try to predict where Bitcoin goes next. This system just identifies arbitrage windows on 5-min markets, builds directional positions when order book imbalance appears on 15-min markets, and captures micro-edges before they disappear. Limit order arbitrage + scalping turned $2,366 into $226,000 in 30 days. The system runs autonomous: → Claude Fable 5 handles decision logic → Monitors 5-min and 15-min BTC markets continuously → Executes limit orders when arbitrage edge appears → Builds directional positions on order book imbalance → Scalps micro-edges at 14.6 trades per minute No manual trading. No chart analysis. Just finding mispriced markets and exploiting the edge before anyone else. 💡 I'm sharing the complete Claude Fable 5 prompt and high-frequency scalping workflow. Free for 24 hours. To get it: 1️⃣ Comment the "Fable" 2️⃣ Like and Repost 3️⃣ Follow Himanshu Kumar I'll DM you the setup.

Himanshu Kumar

53,868 Aufrufe • vor 7 Tagen

Gilbert Strang, the legendary mathematician who proved risk can be cancelled to zero, on purpose, every single time: "Take any bet you're unsure about and ask what happens if you're wrong. I proved there's an exact operation that undoes a bad outcome completely, not roughly, exactly, and almost nobody ever learns to calculate it." Nobody outside that lecture hall has seen the operation itself. here's the actual mechanic. write down the equation for your first move. now tack a second column onto it, the one representing the exact opposite outcome you're worried about. don't solve them separately. run the same elimination steps through both columns at once, together, side by side. by the time the first column simplifies down to a clean answer, the second column has already turned into the exact move that cancels it. you never solved a second problem. you read the answer off the same steps you were already running. most people treat the hedge as a separate calculation, done after the fact, once they know the trade went wrong. by then it's too late to get it for free. the exact cancelling move only comes cheap if you attach it to the original problem before you start. zoom out to any model that prices a position and its exact opposite in the same breath. it isn't running the numbers twice. it tacked the second outcome on from the start, ran one elimination, and pulled both answers out together. the takeaway isn't "hedge more." it's this: whatever you're solving for right now, the exact opposite answer is one extra column away, if you set the problem up before you need it, not after. People pay six figures to sit in a room and hear this. It's in this video. For free.

MindArch

73,359 Aufrufe • vor 5 Tagen