Goal - auto place option trades based on custom indicators and whale option volume
Sign into TradingView and solve the captcha
Save the cookies in case restart of program
Start websocket connection to TradingViewReceive and parse stock feed- Receive custom indicator data
- Support concurrent connection feeds to multiple stock symbols
- they dont auto sign into acc
- they dont give custom indicator values that are only available in your acc (private scripts)
- Connect to unusualwhales or cheddarflow
- Allow custom tracking / filters
- Connect the TradingView and unusualwhale microservice
- Alert if both are confluent
- ThinkOrSwim microservice
- Auto purchase the option
- Highly configurable for the trades desired
- set take profit / stop loss and monitor win rate
- View open positions
func main() {
LoadEnvVars()
authToken := GetAuthToken()
symbol := "NVDA"
timeframe := "1D"
candlesRequested := 100
client := CreateTradingViewClient(symbol, timeframe, candlesRequested, authToken)
candleChan := make(chan []model.Candle)
go RunTradingViewClient(client, candleChan)
// Listen for new candles
for candleBatch := range candleChan {
for i, c := range candleBatch {
log.Info().Msgf(
"[MAIN] %s Candle #%d => Date=%s O=%.2f H=%.2f L=%.2f C=%.2f Vol=%.0f",
symbol,
i+1,
c.Date.Format("2006-01-02"),
c.Open, c.High, c.Low, c.Close, c.Volume,
)
}
}
log.Info().Msg("Candle channel closed. Exiting.")
}
2025-01-07T06:35:24-06:00 | INFO | [MAIN] NVDA Candle #96 => Date=2024-12-30 O=134.83 H=140.27 L=134.02 C=137.49 Vol=167734700
2025-01-07T06:35:24-06:00 | INFO | [MAIN] NVDA Candle #97 => Date=2024-12-31 O=138.03 H=138.07 L=133.83 C=134.29 Vol=155659211
2025-01-07T06:35:24-06:00 | INFO | [MAIN] NVDA Candle #98 => Date=2025-01-02 O=136.00 H=138.88 L=134.63 C=138.31 Vol=198247166
2025-01-07T06:35:24-06:00 | INFO | [MAIN] NVDA Candle #99 => Date=2025-01-03 O=140.01 H=144.90 L=139.73 C=144.47 Vol=229322478
2025-01-07T06:35:24-06:00 | INFO | [MAIN] NVDA Candle #100 => Date=2025-01-06 O=148.59 H=152.16 L=147.82 C=149.43 Vol=265377359```