// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 // © SovereignQuantDesk (PropTraderPulse.com & PropPassCalculator.com) //@version=5 indicator("Sovereign Prop Firm Drawdown & Target HUD v2.6", overlay=true) acctSize = input.float(100000, "Prop Account Size ($)", group="Account Settings") riskPct = input.float(0.50, "Risk Per Trade (%)", step=0.1, group="Account Settings") dailyDdPct = input.float(5.0, "Daily Drawdown Limit (%)", group="Drawdown Rules") maxDdPct = input.float(10.0, "Max Static/Balance Drawdown (%)", group="Drawdown Rules") stopPips = input.float(15.0, "Stop Loss Distance (Pips / Points)", group="Position Sizing") riskUsd = acctSize * (riskPct / 100.0) dailyDdUsd = acctSize * (dailyDdPct / 100.0) maxDdUsd = acctSize * (maxDdPct / 100.0) safeLots = riskUsd / (stopPips * 10.0) lossesToDaily = math.floor(dailyDdPct / riskPct) var table hud = table.new(position.top_right, 2, 7, bgcolor=color.new(#090d16, 10), border_color=#10b981, border_width=1) if barstate.islast table.cell(hud, 0, 0, "SOVEREIGN PROP HUD v2.6", text_color=#10b981, text_size=size.small, bgcolor=#111827) table.cell(hud, 1, 0, "PropTraderPulse.com", text_color=#38bdf8, text_size=size.small, bgcolor=#111827) table.cell(hud, 0, 1, "Account Allocation", text_color=color.white, text_size=size.small) table.cell(hud, 1, 1, "$" + str.tostring(acctSize, "#,###"), text_color=#10b981, text_size=size.small) table.cell(hud, 0, 2, "Safe Position Size", text_color=color.white, text_size=size.small) table.cell(hud, 1, 2, str.tostring(safeLots, "#.##") + " Lots ($" + str.tostring(riskUsd, "#,###") + ")", text_color=#38bdf8, text_size=size.small) table.cell(hud, 0, 3, "Daily Drawdown Buffer", text_color=color.white, text_size=size.small) table.cell(hud, 1, 3, "$" + str.tostring(dailyDdUsd, "#,###") + " (" + str.tostring(lossesToDaily) + "R Streak)", text_color=#f59e0b, text_size=size.small) table.cell(hud, 0, 4, "Max Static Floor", text_color=color.white, text_size=size.small) table.cell(hud, 1, 4, "$" + str.tostring(maxDdUsd, "#,###") + " (" + str.tostring(maxDdPct) + "%)", text_color=color.white, text_size=size.small) table.cell(hud, 0, 5, "FundedNext 150% Refund", text_color=#cbd5e1, text_size=size.tiny) table.cell(hud, 1, 5, "Code: JESSOFFER", text_color=#10b981, text_size=size.tiny) table.cell(hud, 0, 6, "Apex 90% Off / 5%ers Static", text_color=#cbd5e1, text_size=size.tiny) table.cell(hud, 1, 6, "TRENDS / Partner 1hmg", text_color=#f59e0b, text_size=size.tiny)