[JOURNEY] From $0 to $100/day Using Crypto Trading Bot

White Night

Senior Member
Joined
Nov 29, 2013
Messages
827
Reaction score
293
Lately, I’ve developed a keen interest in crypto futures trading — not just manually, but using automated bots. What makes it more exciting is that I’m building these strategies from scratch using ChatGPT as my coding assistant.

I’ve decided to document this journey here, partly to track my own progress, but also to see what ideas might emerge along the way. Who knows? Maybe we’ll crack something that actually works.

Tools I’m Using​

  • TradingView – to design and test strategies via Pine Script v6
  • 3Commas – to execute trades automatically via webhook-based signal bots
  • ChatGPT – my go-to for coding support and brainstorming strategy logic
  • Binance – the exchange where I trade crypto futures

The Flow (So Far)​


Here’s how things are currently set up:
  1. I come up with a strategy idea.
  2. I work with ChatGPT to write the code in Pine Script v6.
  3. I test and fine-tune it inside TradingView.
  4. Once it’s ready, I use webhook alerts to trigger buy/sell signals via 3Commas, which then executes trades on Binance.

It’s a pretty straightforward loop — but of course, nothing is ever perfect in trading.

Where I’m At​

Right now, I’m testing a new strategy. I’ve already written the code (with ChatGPT’s help), but something feels off. Still, instead of getting discouraged, I figured… why not log it here and iterate? Every mistake is a chance to learn — and maybe even uncover a better approach.

Here is the code:
//@version=6
strategy("Range Expansion Strategy - 5min Enhanced", overlay=true, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=1)

//-------------------------------------------------------
// 1. Higher Timeframe Directional Bias (15min)
htfRes = input.timeframe("15", "Higher Timeframe")
[HTF_high, HTF_low, HTF_close, HTF_open] = request.security(syminfo.tickerid, htfRes, [high, low, close, open], lookahead=barmerge.lookahead_on)
bullishBias = HTF_close > HTF_open
bearishBias = HTF_close < HTF_open

//-------------------------------------------------------
// 2. Lower Timeframe Swing Calculations (for 5min)
// Use a short lookback so that swing highs/lows appear more frequently.
lookback = input.int(5, "Swing Lookback", minval=3, maxval=20)
swingHigh = ta.highest(high, lookback)
swingLow = ta.lowest(low, lookback)

//-------------------------------------------------------
// 3. Liquidity Sweep & Rejection Conditions
// We define a "rejection" fraction indicating that the bar recovers
// a certain portion above its swing extreme.
// For a long, if the bar’s low is at or near the swing low and then closes sufficiently higher,
// that signals a bullish liquidity sweep and rejection.
// For a short, the reverse applies.
rejectionFrac = input.float(0.2, "Rejection Fraction", minval=0.1, maxval=0.5, step=0.05)
longCondition = bullishBias and (low <= swingLow) and (close > swingLow + ((high - low) * rejectionFrac))
shortCondition = bearishBias and (high >= swingHigh) and (close < swingHigh - ((high - low) * rejectionFrac))

//-------------------------------------------------------
// 4. Risk–Reward Exit Calculations
// The stop for longs is the swing low and for shorts is the swing high,
// with target computed using a risk–reward multiplier.
rr = input.float(3.0, "Risk Reward Ratio", minval=1.0, step=0.1)
longStop = swingLow
shortStop = swingHigh
longRisk = close - longStop
shortRisk = shortStop - close
longTarget = close + longRisk * rr
shortTarget = close - shortRisk * rr

//-------------------------------------------------------
// 5. Strategy Execution: Enter and exit trades when conditions trigger.
if longCondition
strategy.entry("Long", strategy.long)
strategy.exit("Exit Long", "Long", stop=longStop, limit=longTarget)

if shortCondition
strategy.entry("Short", strategy.short)
strategy.exit("Exit Short", "Short", stop=shortStop, limit=shortTarget)

//-------------------------------------------------------
// 6. Visual Components for clarity:
plot(HTF_high, title="HTF High", color=color.blue)
plot(HTF_low, title="HTF Low", color=color.orange)
plot(swingHigh, title="Swing High", color=color.red)
plot(swingLow, title="Swing Low", color=color.green)
plotshape(longCondition, title="Long Signal", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.normal)
plotshape(shortCondition, title="Short Signal", style=shape.triangledown, location=location.abovebar, color=color.red, size=size.normal)

Summary Strategy:​


Identify and trade reversal points caused by liquidity sweeps near recent swing highs/lows, aligned with higher timeframe bias, on the 5-minute chart.

✅ ENTRY​

Long Entry:
  1. 15-minute candle is bullish (close &gt; open)
  2. Current bar's low touches or breaks swing low
  3. Current bar closes above swingLow + (rejectionFrac × (high - low))
Short Entry:
  1. 15-minute candle is bearish (close &lt; open)
  2. Current bar's high touches or breaks swing high
  3. Current bar closes below swingHigh - (rejectionFrac × (high - low))



❌ EXIT:​

Long Exit:
  • Stop Loss: At swing low
  • Take Profit: At entry price + (entry price - swingLow) × RR
Short Exit:
  • Stop Loss: At swing high
  • Take Profit: At entry price - (swingHigh - entry price) × RR

Currently Earning: $0
I will load it with a small budget like $50 to test the flow after fixing some issue. I still don't know why but the signal is quite messy
 
What type of stocks for crypto you are investing in ? Is it FnO or others. Good luck with the journey.
 
I'm very interested in this, if there is any result, please update the post
 
i was working on a code few months ago and tried to integrate OpenAI to analyze many market section like News and trends .... i tried to use X.com API but it was expensive
i tried also to train an ( AI ) model from previous binance data but due the binance api limitation i failed ( quality data require investment ) however i can share the code if you want, i left this project and moved on.
crypto trading is risky and highly volatile, and you have to know what you are doing, what kind of trading you are stepping in ( scalping or day trading ) set the timeframe and test many indicators
i tested Bollinger band candlestick fibo elliot... and many more strategies and even tried to add AI chart analyses ...

but most failed to reach a good accuracy because human touch is very important in trading, you can't set a 100% automated working bot, especially on crypto
 
Sorry i'm not trying to discourage you. I shared my experience.

but a trading bot with good strategy can help
 
you're wasting your time buddy , literally spent over 6 months digging in this , im a developer myself and we've been over 25 in a private reddit group , the overal result ? nothing 0 profit , infact i wasted 6 months of my life that i couldv'e built multiple projects in other online stuff..

listen , "algo trading" is nearly impossible to make , people with billions of dollars are using latest advanced tech and models you cant just compete with them using your trading view script , in fact from my experiece we've been using some advanced python scripts with paid APIs here and there yet we didnt be able to achieve anything with all that ..

there could be a little small chance , which is , using all this to SPOT trading not future trading .. and even tho .. very risky


im not trying to make you stop or anything , just want to share my honest opinion on this , you can check algo trading reddit public subreddit to have an idea what people really do .
 
you're wasting your time buddy , literally spent over 6 months digging in this , im a developer myself and we've been over 25 in a private reddit group , the overal result ? nothing 0 profit , infact i wasted 6 months of my life that i couldv'e built multiple projects in other online stuff..

listen , "algo trading" is nearly impossible to make , people with billions of dollars are using latest advanced tech and models you cant just compete with them using your trading view script , in fact from my experiece we've been using some advanced python scripts with paid APIs here and there yet we didnt be able to achieve anything with all that ..

there could be a little small chance , which is , using all this to SPOT trading not future trading .. and even tho .. very risky


im not trying to make you stop or anything , just want to share my honest opinion on this , you can check algo trading reddit public subreddit to have an idea what people really do .
exactly, it's almost impossible to make a working bot, this is exactly what i told him in my previous comment, i also wasted a lot of time trying to make a working bot even with integrating AI features. on crypto, 100% you can't
 
UPDATED

Guys, this is harder than I thought, lol.
Most of the strategies break down whenever BTC drops sharply — it drags all the altcoins with it.
Even RSI hasn’t been reliable in this kind of market lately.


I’ve been trying to set SL and TP using ATR, but over the long run, it just leads to losses. I think it’s time to explore a new strategy.
There are also some real limitations when coding with Pine Script v6 on TradingView.


I even tried incorporating price action and candlestick patterns, but that hasn’t been working either
 
Back
Top