<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Udit Jain</title>
    <description>The latest articles on Forem by Udit Jain (@uditofficial).</description>
    <link>https://forem.com/uditofficial</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3874960%2F335d59e0-3469-403b-af6a-d268ad7969b0.jpg</url>
      <title>Forem: Udit Jain</title>
      <link>https://forem.com/uditofficial</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/uditofficial"/>
    <language>en</language>
    <item>
      <title>📊 What I Learned Analyzing 100K+ Crypto Trades Using Market Sentiment</title>
      <dc:creator>Udit Jain</dc:creator>
      <pubDate>Wed, 15 Apr 2026 12:19:26 +0000</pubDate>
      <link>https://forem.com/uditofficial/what-i-learned-analyzing-100k-crypto-trades-using-market-sentiment-29ia</link>
      <guid>https://forem.com/uditofficial/what-i-learned-analyzing-100k-crypto-trades-using-market-sentiment-29ia</guid>
      <description>&lt;p&gt;Most traders think market sentiment (Fear &amp;amp; Greed) directly drives profits.&lt;/p&gt;

&lt;p&gt;So I decided to test it.&lt;/p&gt;

&lt;p&gt;I analyzed 100K+ trades from Hyperliquid and combined it with the Bitcoin Fear &amp;amp; Greed Index to uncover how sentiment actually impacts trading performance.&lt;/p&gt;

&lt;p&gt;Here’s what I found 👇&lt;/p&gt;

&lt;p&gt;🧠 The Question&lt;/p&gt;

&lt;p&gt;Does market sentiment really affect:&lt;/p&gt;

&lt;p&gt;Profitability?&lt;br&gt;
Win rate?&lt;br&gt;
Trader behavior?&lt;/p&gt;

&lt;p&gt;Or is it just noise?&lt;/p&gt;

&lt;p&gt;⚙️ What I Did&lt;br&gt;
Cleaned and processed trading data&lt;br&gt;
Filtered only closed trades (real profits/losses)&lt;br&gt;
Merged trades with daily sentiment&lt;br&gt;
Engineered features like:&lt;br&gt;
Win rate&lt;br&gt;
ROI&lt;br&gt;
Segmented traders into:&lt;br&gt;
Top performers&lt;br&gt;
Worst performers&lt;br&gt;
📈 Key Findings&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Greed = Profits… but only for some
Extreme Greed had the highest average PnL and win rate
But here’s the twist:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;👉 Top traders made the most money&lt;br&gt;
👉 Worst traders LOST the most money&lt;/p&gt;

&lt;p&gt;Same market. Different outcomes.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The Overconfidence Trap&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Worst traders:&lt;/p&gt;

&lt;p&gt;Had ~55% win rate in Greed (not terrible)&lt;br&gt;
But still lost money&lt;/p&gt;

&lt;p&gt;Why?&lt;/p&gt;

&lt;p&gt;👉 They over-leveraged and mismanaged risk&lt;/p&gt;

&lt;p&gt;This suggests:&lt;/p&gt;

&lt;p&gt;Losses weren’t due to bad predictions, but bad execution.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Fear Isn’t Always Bad
Traders performed surprisingly well in Fear phases
Likely because:
Only high-conviction trades were taken
Risk exposure was lower&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;👉 Discipline &amp;gt; sentiment&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Top Traders Are Consistent&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Top performers:&lt;/p&gt;

&lt;p&gt;Stayed profitable across all sentiment conditions&lt;br&gt;
Didn’t rely on “market mood”&lt;br&gt;
Focused on execution + risk management&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Timing Beats Sentiment (Advanced Insight)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Instead of just sentiment, I analyzed sentiment transitions:&lt;/p&gt;

&lt;p&gt;👉 Example:&lt;/p&gt;

&lt;p&gt;Fear → Greed&lt;br&gt;
Greed → Fear&lt;/p&gt;

&lt;p&gt;Result:&lt;/p&gt;

&lt;p&gt;Transitions often produced better outcomes than static sentiment.&lt;/p&gt;

&lt;p&gt;🧠 What This Means&lt;/p&gt;

&lt;p&gt;Market sentiment doesn’t determine success.&lt;/p&gt;

&lt;p&gt;👉 Trader behavior does.&lt;/p&gt;

&lt;p&gt;Weak traders react emotionally&lt;br&gt;
Strong traders stay consistent&lt;br&gt;
🚀 Practical Takeaways&lt;/p&gt;

&lt;p&gt;If you trade (or build trading systems):&lt;/p&gt;

&lt;p&gt;Don’t blindly follow bullish sentiment&lt;br&gt;
Control position size during Greed&lt;br&gt;
Avoid overtrading in “easy markets”&lt;br&gt;
Focus on consistency, not prediction&lt;br&gt;
🏁 Final Thought&lt;/p&gt;

&lt;p&gt;The market doesn’t reward sentiment.&lt;br&gt;
It rewards discipline.&lt;/p&gt;

&lt;p&gt;🔗 Built Using&lt;br&gt;
Python (Pandas, Matplotlib)&lt;br&gt;
Real trading + sentiment data&lt;/p&gt;

&lt;p&gt;If you're into data science, trading, or building in Web3—would love to hear your thoughts 👇&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>cryptocurrency</category>
      <category>python</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>Building a Voice-Controlled AI Agent with Real-Time Intent Execution</title>
      <dc:creator>Udit Jain</dc:creator>
      <pubDate>Sun, 12 Apr 2026 13:53:04 +0000</pubDate>
      <link>https://forem.com/uditofficial/building-a-voice-controlled-ai-agent-with-real-time-intent-execution-32e8</link>
      <guid>https://forem.com/uditofficial/building-a-voice-controlled-ai-agent-with-real-time-intent-execution-32e8</guid>
      <description>&lt;h1&gt;
  
  
  Building a Voice-Controlled AI Agent for Real-Time Intent Execution
&lt;/h1&gt;

&lt;h2&gt;
  
  
  🚀 Overview
&lt;/h2&gt;

&lt;p&gt;I built a voice-controlled AI agent that can take audio input, understand user intent, execute local actions, and display results through a web interface.&lt;/p&gt;

&lt;p&gt;The goal was to design an end-to-end system that connects speech processing with intelligent execution.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧠 Architecture
&lt;/h2&gt;

&lt;p&gt;This modular pipeline design allows each component (STT, LLM, execution) to be independently optimized and replaced, which is a common approach in production voice AI systems.&lt;/p&gt;

&lt;p&gt;The system follows a simple pipeline:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Audio → Speech-to-Text → Intent Classification → Tool Execution → UI&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Each component is modular and communicates sequentially, making the system easy to debug and extend.&lt;/p&gt;




&lt;h2&gt;
  
  
  🎤 Speech-to-Text
&lt;/h2&gt;

&lt;p&gt;For converting audio to text, I used Groq’s Whisper-based API.&lt;/p&gt;

&lt;p&gt;Although the assignment preferred local models, I initially attempted to run local Whisper models but faced RAM limitations. To ensure stable performance, I switched to an API-based solution, which provided fast and reliable transcription.&lt;/p&gt;




&lt;h2&gt;
  
  
  🤖 Intent Understanding
&lt;/h2&gt;

&lt;p&gt;The transcribed text is processed using a language model to classify intent into:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create file&lt;/li&gt;
&lt;li&gt;Write code&lt;/li&gt;
&lt;li&gt;Summarize text&lt;/li&gt;
&lt;li&gt;General chat&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I also added simple rule-based overrides to improve accuracy for code-related requests.&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚙️ Tool Execution
&lt;/h2&gt;

&lt;p&gt;Based on the detected intent, the system performs actions such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creating files (restricted to a safe output folder)&lt;/li&gt;
&lt;li&gt;Generating executable code using an LLM&lt;/li&gt;
&lt;li&gt;Summarizing text&lt;/li&gt;
&lt;li&gt;Handling conversational queries&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This layer connects AI decisions with real system operations.&lt;/p&gt;




&lt;h2&gt;
  
  
  🖥️ User Interface
&lt;/h2&gt;

&lt;p&gt;The frontend is built using Streamlit and displays:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Transcription&lt;/li&gt;
&lt;li&gt;Detected intent&lt;/li&gt;
&lt;li&gt;Action details&lt;/li&gt;
&lt;li&gt;Final output&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This ensures full transparency of the pipeline.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔥 Key Enhancements
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Human-in-the-Loop:&lt;/strong&gt; Confirmation before file operations&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Session Memory:&lt;/strong&gt; Tracks past interactions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context-Aware Chat:&lt;/strong&gt; Maintains conversational continuity&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Error Handling:&lt;/strong&gt; Graceful failure management&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  ⚡ Challenges
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Running local models under hardware constraints&lt;/li&gt;
&lt;li&gt;Ensuring clean code generation without extra formatting&lt;/li&gt;
&lt;li&gt;Designing reliable intent classification&lt;/li&gt;
&lt;li&gt;Handling audio input and system safety&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🎯 Conclusion
&lt;/h2&gt;

&lt;p&gt;This project demonstrates how to design a practical AI agent by combining speech processing, language understanding, and real-world execution. It highlights the importance of modular architecture, system safety, and user interaction in building reliable AI systems.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔗 Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: github.com/uditjainofficial/assignment-voice-controlled-ai-agent&lt;/li&gt;
&lt;li&gt;Demo Video: youtube.com/watch?v=6frrIILn5BQ&amp;amp;t=5s&lt;/li&gt;
&lt;/ul&gt;




</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>python</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
