Gary (@garyma3268) header
Gary (@garyma3268) profile picture

👨‍💻 Full-Stack Dev specializing in AI+Web3 fusion🌟 From neural networks to smart contracts - redefining what's possible 🔥Always shipping something cool 🛠️

Joined October 2022
Photo by Gary (@garyma3268)Photo by Gary (@garyma3268)Photo by Gary (@garyma3268)Photo by Gary (@garyma3268)Photo by Gary (@garyma3268)Photo by Gary (@garyma3268)Photo by Gary (@garyma3268)Photo by Gary (@garyma3268)Photo by Gary (@garyma3268)Photo by Gary (@garyma3268)
翻了一下最近两个月,我用Agent干活最爱说的几句Prompt: 1. 从第一性原理出发,找到最本质原因,修复一下。 2. 先问一些不清晰的问题,对齐我的喜好,然后再出3版方案。 3.不要默认我提出的问题定义就是正确的。你先分析我真正想解决的底层需求,判断我有没有把症状误认为原因、把手段误认为目标。如果存在更值得解决的问题,直接指出来 4. 不要只考虑这个改动产生的直接效果。继续推演它的二阶、三阶影响,尤其关注对其他模块、用户行为、系统复杂度和长期维护成本的潜在影响。 5. 其他领域里有没有类似的方案,用跨领域的方式全面思考,找到最优解。 6. 先假设你当前认为最合理的方案是错误的。站在最强反对者的角度,寻找能够推翻它的证据、反例和边界情况。然后重新评估方案,看看有没有更好的解法。 7. 深入分析整个代码库的 Git 历史、关键 PR 和架构演变过程。找出哪些设计是有意为之,哪些是历史遗留,哪些是为了解决已经不存在的问题而引入的。识别可以安全移除的历史包袱。 8. 假设明天有一个完全不了解项目、但是能力很强的工程师来接手。请评估他理解整个项目需要付出的认知成本,找出那些命名混乱、抽象过度、职责不清晰、需要大量上下文才能理解的代码,并提出简化方案。 9. 全面分析最近XX天里的所有的PR,找出最慢的那几个,看看有没有导致卡顿、可以优化的地方。 10. 全面复盘最近XX时间的 Bug、返工、回滚和重复修改。不要只统计发生了什么,要分析这些问题背后有没有共同的根因。把能够预防的共性问题沉淀成项目规则、自动化或者Skill,避免我们反复支付同样的成本。
266
834
123
6,308
501,180
A box inside a box inside a box… 🐋 Every eligible Comfy trade on @whaledotdance unlocks one. Nov 14–30.
3
4
11
1,186
原生 agent 研发的量化之路,中道崩阻…… my native agent quant journey kinda hit a wall…… 这个系列停更了一段时间,最近复盘了一下,感觉有必要真实记录一下这一段的经历 haven’t updated this series in a while, and after looking back on everything, i figured i should probably share what actually happened ai 趋势跟随跑下来,整体还是扛不过磨损,难止盈,易打损,小亏一笔接一笔,大的趋势又没吃到🤔 ran the ai trend-following strategy for a while, and yeah…… the trading costs and losses kept adding up, taking profits was hard, stop-losses got hit way too often, and somehow the big trends still got away🤔 人为交易则完全反过来了,赚是能赚一点,但是一亏,是真的亏一波大的啊…… my manual trades were pretty much the opposite, i could make a little here and there, but when i lost, oh boy, i lost BIG…… rave 从 6.6 开始做空,一路扛到 21,最终“逃顶”了😂 started shorting rave at 6.6, held all the way to 21, and finally managed to “escape at the top”😂 zec 从 630 开始小额做空,一直空到 1600,最后全部平掉,也是血亏 started shorting zec with a small position at 630, kept going all the way to 1600, and ended up closing everything for another brutal loss 后来又认准了原油肯定会跌,从 8 月底开始扛单,连着扛了两个月,迟迟不见跌下来,一度甚至涨到了 115,期间也没扛住,割肉跑路 then i got it into my head that oil had to go down, held the position from late august for two months, waited and waited…… and it just wouldn’t drop, at one point it even hit 115, eventually i couldn’t take it anymore and cut my losses 同时也尝试了原油延伸出来的一些玩法,包括套利,以及用同类、异类币种做对冲,结果也遇到了一些特殊情况 i also tried a few things around oil, including arbitrage and hedging with similar and different assets, but ran into some unexpected situations there too 原本想着根据历史位置,估算对冲币种未来的涨跌,但当仓位开得足够大,这件事其实也不亚于直接赌某个币的方向,一点异动,同样会带来很大的亏损 i thought i could use historical levels to figure out how the hedging assets might move, but once the position gets big enough, it’s basically another bet on direction, one small unexpected move and the losses can hit just as hard 以前总觉得,方向判断对了,剩下的交给时间就好 i used to think that if i got the direction right, i could just leave the rest to time 真跑下来才发现,方向、仓位、时间和风险,少考虑一个都可能扛不到判断兑现的那天 turns out direction, position size, timing, and risk all matter, get any one of them wrong and you might not even make it to the day your thesis plays out 最后复盘下来,又回到了入门时就学过的仓位管理……哪怕是套利,也得严格控制仓位,该止损还是要止损,不然可能连活下来都做不到 after all that, i somehow ended up right back at the position sizing lesson i learned on day one…… even with arbitrage, you still need to keep positions under control and cut losses when you need to, otherwise you might not even make it out alive 还有就是,能自动化交给代码或者 agentic 的,尽量不要靠人临场操作,人一旦情绪化,就很容易赚小亏大 another takeaway is to let code or agentic systems handle whatever can be automated, instead of making every decision on the fly, once emotions get involved, it’s way too easy to make a little and lose a lot 当然,自动化本身也不能保证赚钱,ai 策略同样会磨损,参数、执行和风控都还需要继续研究 of course, automation doesn’t magically make money either, ai strategies can still get worn down by costs and losses, and there’s plenty more to figure out around parameters, execution, and risk control 最后还是得持续学习,持续复盘🧐 只有继续留在场上,才有下一次机会 so yeah, keep learning, keep reviewing🧐 gotta stay in the game to have another shot
1
6
1,130
🐳 BLACK FRIDAY IS LIVE The wait is over. The mystery boxes are ready 🎁 Every eligible trade unlocks a blind box 🏆 Up to $50,000 in total prizes Nov 14–30 Ready to see what’s inside? ➡️ whale.dance
1
2
6
891
What does it take to trade perpetuals on Hyperliquid, stock tokens on Robinhood Chain, and tokens on networks like 0G ? Install a browser extension wallet. Find the right network. Buy the right token for gas. Bridge your stablecoins. Wait. Then finally make the trade.
1
167
1
213
1,109
Black Friday is usually about spending This year, make it about winning From 14th Nov to 30th Nov 🎁 Every eligible trade unlocks a blind box 🏆 Up to $50,000 in total prizes up for grabs 🐳 XP accumulating... Registration is NOW OPEN Join➡️ whale.dance
1
4
9
1,524
gComfy 🐳 Let's keep it simple: If you do not want to miss 0G's next alpha 👀 Download➡️ whale.dance 1. No gas fees to purchase any token 2. Deposit from 4 chains(0G, Ethereum, Base, Arbitrum)
Whale alert 🐋 Comfy tokens just landed on @whaledotdance. No gas. You know the code: GCOMFY 😌
18
10
37
1,824
Our co-founder at 0G's House of AI, sharing how agents will manage your money and earn for you Thanks to @0G_labs for having us 🐳 KBW 🔚 Token2049 🔜
2
5
475
Whale Boost is LIVE new & existing users welcome. 💸 Earn USD rewards 🏅 Unlock an OG Badge + 2,000 XP 📱 whale.dance mobile app → Profile → Limited-Time Event Sep 28–Oct 12. Let’s make waves🌊 For more details? Find us in the venue with @0G_labs
3
1
3
3
1,434
Trade SHEIN before IPO on Whale Dance🐳 Now LIVE on app store: whale.dance
1
1
1
3
475
成为 @whaledotdance 带单员后一下子就感觉多了一些无形的压力和责任 我的1KU走向1BTC的计划在今日来到了2500多。人有的时候真的有执念,早上其实到了2496,为了这4U,中间折腾了N只资产,不断的看K线,以及拿不住时间。 不然今天应该就3字开头了。 主打一个赢率为主吧,我真的很需要个 agent助理,看住我的fomo, 严格执行我自己的策略(没错,最不执行自己的策略的人就是我自己) @whaledotdance 什么时候上我的agent 助理? 以及跟单人数突破23人后,我会给跟单盈利最多的人直接打钱激励
2
7
101
原生 agent 研发的量化之路 ----- 第四章 native agent R&D’s quant journey ----- chapter four 前面一直在学习交易、拆参数、写规则,最近 OpenWhale 里的“潮汐趋势”已经开始真正跑起来了,刚好赶上这一段大趋势,实际效果还挺不错 after learning trading, breaking down parameters, and turning ideas into rules, “Tidal Trend” is finally running on OpenWhale. it happened to catch this major trend, and the initial results have been pretty good 潮汐趋势本身不是一个多复杂的策略,定位就是一个基础入门的趋势跟随策略,先把大周期、回踩、确认、仓位和止损这些基本功串起来 Tidal Trend isn’t meant to be an overly complicated strategy. it’s positioned as an introductory trend-following strategy that connects the basics: higher-timeframe direction, pullbacks, confirmation, position sizing, and stop-losses 整体的策略架构大概是这样,从 Hyperliquid 的公开市场数据开始,经过候选池、多周期确认、LLM 决策,再进入代码风控和最终执行 the overall architecture looks like this: it starts with Hyperliquid’s public market data, then moves through candidate selection, multi-timeframe confirmation, LLM decision-making, code-level risk control, and final execution 候选池不会直接开仓,LLM 也不会决定仓位和杠杆,AI 负责理解市场、给出方向和失效位置,代码负责仓位、风控和执行 the candidate pool never opens a position directly, and the LLM doesn’t decide position size or leverage. AI is responsible for understanding the market and proposing a direction and invalidation point, while code handles sizing, risk control, and execution 目前策略已经开始运行,刚好赶上大趋势,整体表现还可以。对于长时间横盘之后的涨幅部分,目前还需要再适当提高置信度,后面继续调参数和决策逻辑 the strategy is now running, and the overall performance has been encouraging after catching this major trend. for the price moves that happen after a long sideways period, the confidence level still needs to be tuned upward a bit, so there’s more work to do on the parameters and decision logic 后面会再出一期解说,具体讲一下潮汐策略是怎么实现的,以及怎么使用 OpenWhale,让 agent 参与到交易里 i’ll make a separate walkthrough later to explain how Tidal Trend is implemented and how to use OpenWhale to let an agent participate in trading 先从一个简单的趋势跟随策略开始,把从市场扫描、AI 决策、代码风控到交易执行的流程跑通,也算是给大家入门 OpenWhale 和 agent trading 的一个小例子 starting with a simple trend-following strategy, the goal is to run the full loop from market scanning and AI decision-making to code-level risk control and trade execution. hopefully this can also serve as a small introduction to OpenWhale and agent trading 当然,@JXiaoLoong 大佬也会以 Boros 挂单激励为例,带大家更直观地入门 OpenWhale,也欢迎大家一起来共建,一起探索 agent trading 的更多可能 of course, @JXiaoLoong will also use Boros maker incentives as an example to give everyone a more hands-on introduction to OpenWhale, and everyone is welcome to join us in building it together and exploring more possibilities for agent trading 潮汐策略源码 tidal trend source code github.com/Gary-666/tidal-tr… OpenWhale 仓库 OpenWhale repository github.com/OpenWhale-Org/Ope…
1
6
329
aha, its really fantastic game
Found something interesting 🐋 A Whale Dance community member built a game: WhaleCome — a tribute to the movie NIULAI. Play as a baby whale swimming through bull and bear markets, surviving the cycles. Sound familiar? That's just trading. ➡️ whalecome.fun
3
79
我在《鲸来》游了 5120 米,拿了 6750 分 · 排第 1。 躲开 K 线,穿越牛熊 —— 你行吗? whale-come.vercel.app
3
84
0gm Meet Whale News 🐋 An AI agent that reads the market so you don't have to.
1
1
3
3
1,103
原生 agent 研发的量化之路 ----- 第三章 native agent R&D’s quant journey ----- chapter three 最近把自己对交易的理解,慢慢写成了 OpenWhale 里的一个策略,叫“潮汐趋势”,本质上也是一种趋势跟随的策略 recently, i’ve been turning my understanding of trading into a strategy inside OpenWhale called “Tidal Trend,” which is essentially a trend-following strategy 市场每天都有很多浪花,短线信号、突发消息、情绪波动......实际上我们不太可能把每一朵浪花都预测对,所以更想做的是,先判断潮水往哪边走,再等一个相对舒服的位置上船 the market creates countless waves every day — short-term signals, breaking news, emotional swings...... realistically, we’re never going to predict every single wave correctly, so what i’d rather do is first figure out which way the tide is moving, then wait for a relatively comfortable point to get on the boat 学了 K 线、均线、MACD 之后,开始有点理解为什么要这样设计 after learning candlesticks, moving averages, and MACD, i started to understand why the strategy is designed this way 大周期定方向,小周期找位置 higher timeframes define the direction, while lower timeframes look for the entry 1D、4H 看主趋势,1H 等价格回踩 EMA20,15M 再做确认。1H 触及 EMA20 附近 0.5 个 ATR 的范围,才算进入观察区;4H 如果已经离 EMA20 超过 1.5 个 ATR,就不追了,毕竟车已经开出去一大截了,这时候再上车多少有点勇😂 the 1D and 4H charts define the main trend, the 1H chart waits for a pullback toward EMA20, and the 15M chart provides the final confirmation. only when the 1H price comes within 0.5 ATR of EMA20 does it enter the observation zone. if the 4H price is already more than 1.5 ATR away from EMA20, i won’t chase it. the train has already left the station by then, and jumping on at that point feels a little too brave😂 成交量、持仓量、冲击价差先过一遍,解决的是“想做”和“能不能好好成交”的问题 i first check volume, open interest, and impact spread. that answers the difference between “wanting to trade” and “being able to execute the trade properly” 再看不同周期的动量有没有共振,资金费率和溢价是不是已经拥挤,尽量避免大家都挤在同一条船上 then i look at whether momentum is aligned across different timeframes, and whether funding rates and premiums have become too crowded. the goal is to avoid having everyone pile onto the same boat 风险这块也不能交给感觉:单笔最多承担 1%,组合最多承担 5%,至少要有 2:1 的盈亏比,最长拿 72 小时,仓位根据止损距离反推,滑点和手续费也预留进去 risk can’t be left to gut feeling either. each trade can risk at most 1%, the portfolio can carry at most 5% in total open risk, the minimum risk-reward ratio is 2:1, and the maximum holding period is 72 hours. position size is calculated backward from the stop-loss distance, with room also reserved for slippage and fees AI 可以帮我理解市场,给出方向、信心和失效位置,但不能决定我梭多少、开多少倍杠杆,哈哈 ai can help me understand the market and provide a direction, confidence level, and invalidation point, but it can’t decide how much i should go all-in or how much leverage i should use, haha 代码负责把边界看住,成交后立刻挂保护性止损,挂不上就赶紧把敞口收回来 the code is responsible for enforcing the boundaries. once an order is filled, it immediately places a protective stop-loss. if the stop can’t be placed, the exposure is closed as quickly as possible 感觉这个策略最后做的不是“预测”,而是把我学到的东西一点点沉淀下来 i’m starting to feel that the real purpose of this strategy isn’t “prediction,” but gradually turning what i’ve learned into something concrete 趋势、位置、动能、流动性、风险......最后变成一套能执行、能复盘,也允许自己犯错的东西 trend, position, momentum, liquidity, risk...... all of it eventually becomes a system that can be executed, reviewed, and still leave room for being wrong 潮汐来了就顺势,潮汐不明就先在岸上待会儿🤔 when the tide comes in, go with it. when the tide is unclear, stay on shore for a while🤔 目前还是采用模拟盘进行测试,也人为预制了一些参数,如图所示,后续打算会将这策略开源共建,还会补充更长期的长线策略🤔 for now, i’m still testing it in paper trading, with some parameters manually preconfigured, as shown in the image. later on, i’m planning to open-source the strategy and build it together with the community. i’ll also add some longer-term strategies🤔
2
4
602
Trade UNITREE before IPO on Whale Dance🐳 Now LIVE on app store: whale.dance
4
1
14
1,606