BTCETH SMC BOS Auto Trader (PineConnector) β Strategy by jedenewilliams94
By jedenewilliams94
Performance Metrics
- Author: jedenewilliams94
- Symbol: VANTAGE:BTCETH
- Timeframe: 1 hour
- Net P&L: +188.83 ETH (+0.02%)
- Win Rate: 97.5%
- Profit Factor: 12.111
- Max Drawdown: 2.69 ETH (0.00%)
- Total Trades: 1,321
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