BTCETH SMC BOS Auto Trader (PineConnector) β€” Strategy by jedenewilliams94

By jedenewilliams94

Performance Metrics

Description

🧠 1. Strategy TypeThe script is a TradingView strategy that:Detects Break of Structure (BOS) in priceOpens buy or sell tradesSends alerts to PineConnectorPineConnector then sends the trade to MT4/MT5So the flow is:TradingView β†’ Alert β†’ PineConnector β†’ MT4/MT5 β†’ Trade executesβš™οΈ 2. PineConnector SettingsLicenseID = "8839876542677"symbol = "BTCETH"riskvalue = "1"This section tells PineConnector:LicenseID β†’ identifies your PineConnector accountsymbol β†’ the market to trade (BTCETH)riskvalue β†’ lot size or risk parameter used by the EAExample signal sent:8839876542677,buy,BTCETH,risk=1πŸ“‰ 3. Trade Settingssl_pips = 200tp_pips = 400trail_pips = 150These control risk management.Setting MeaningStop Loss 200 pips awayTake Profit 400 pips awayTrailing Stop locks profit by trailing priceSo the bot always has risk control built in.πŸ“Š 4. Market Structure DetectionhighestHigh = ta.highest(high, lookback)lowestLow = ta.lowest(low, lookback)The script checks the highest high and lowest low over the last candles.Example with lookback = 10:Finds the highest price of the last 10 candlesFinds the lowest price of the last 10 candlesThis defines market structure.πŸš€ 5. Break of Structure (BOS)bullishBOS = close > highestHigh[1]bearishBOS = close < lowestLow[1]Buy SignalA buy trade triggers when:Current candle closes ABOVE the previous structure highMeaning bullish breakout.Sell SignalA sell trade triggers when:Current candle closes BELOW the previous structure lowMeaning bearish breakout.πŸ“ˆ 6. Structure Lines on Chartplot(highestHigh)plot(lowestLow)These lines help you visually see structure levels.Green line = resistanceRed line = supportπŸ”” 7. Alert Message Sent to PineConnectorExample buy alert:8839876542677,buy,BTCETH,risk=1,sl=200,tp=400Example sell alert:8839876542677,sell,BTCETH,risk=1,sl=200,tp=400PineConnector reads this message and executes the trade in MT5 automatically.πŸ”„ 8. Trailing Stopstrategy.exit(... trail_points ...)This means:When the trade moves into profit:Stop loss moves with priceLocks profit automaticallyExample:Entry Price moves Stop moves1.1000 1.1020 SL moves higher1.1040 1.1025 profit protectedπŸ“Š 9. How the Bot Trades BTCETHThe bot is essentially a breakout trader.It waits for:1️⃣ Price consolidates2️⃣ Structure forms3️⃣ Price breaks structure4️⃣ Bot enters tradeThis works well on:CryptoGoldIndices

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView