// This Strategy/Indicator was Created by ©NoobSharks // if you use it and like it, send us some donation: BinancePay ID: 223731148 - Metamask: 0x82782b3ebD1d6bf7faa18a3943fA6f16EBBF3134 // (yes, I might be naive but I trully Believe you will support us) // For more information about this indicator check "https://www.youtube.com/c/NoobSharksLutanoMercadoCripto" and give us a hand following us on YouTube // Check also our website includeing strategies, free indicatores and technical analysis videos: https://www.noobsharks.com // © NoobSharks //@version=5 indicator(title = "[NBpkfF] Indicator - Liquidation Levels", shorttitle = "[NB].IND.LiquidationLevels", overlay = true) lev1 = input.int(defval = 2, step = 1, minval = 1, title = "xLeverage Level 1", group = "Leverage Levels: indicator shows what is your liquidation price if you used the leverage indicated in each level") lev2 = input.int(defval = 5, step = 1, minval = 1, title = "xLeverage Level 2", group = "Leverage Levels: indicator shows what is your liquidation price if you used the leverage indicated in each level") lev3 = input.int(defval = 10, step = 1, minval = 1, title = "xLeverage Level 3", group = "Leverage Levels: indicator shows what is your liquidation price if you used the leverage indicated in each level") lev4 = input.int(defval = 20, step = 1, minval = 1, title = "xLeverage Level 4", group = "Leverage Levels: indicator shows what is your liquidation price if you used the leverage indicated in each level") lev5 = input.int(defval = 25, step = 1, minval = 1, title = "xLeverage Level 5", group = "Leverage Levels: indicator shows what is your liquidation price if you used the leverage indicated in each level") showStr = input.string(defval = "Longs & Shorts", options = ["Longs & Shorts", "Longs Only", "Shorts Only"], title = "Directions to show") showLong = showStr == "Longs & Shorts" or showStr == "Longs Only" showShort = showStr == "Longs & Shorts" or showStr == "Shorts Only" lLiqL1 = close - (close/lev1) lLiqL2 = close - (close/lev2) lLiqL3 = close - (close/lev3) lLiqL4 = close - (close/lev4) lLiqL5 = close - (close/lev5) sLiqL1 = close + (close/lev1) sLiqL2 = close + (close/lev2) sLiqL3 = close + (close/lev3) sLiqL4 = close + (close/lev4) sLiqL5 = close + (close/lev5) plot(showLong?sLiqL1:na, color = #c8e6c9, title = "Short Liquidation Level 1") plot(showLong?sLiqL2:na, color = #a5d6a7, title = "Short Liquidation Level 2") plot(showLong?sLiqL3:na, color = #66bb6a, title = "Short Liquidation Level 3") plot(showLong?sLiqL4:na, color = #388e3c, title = "Short Liquidation Level 4") plot(showLong?sLiqL5:na, color = color.lime, title = "Short Liquidation Level 5") plot(showShort?lLiqL1:na, color = #fccbcd, title = "Long Liquidation Level 1") plot(showShort?lLiqL2:na, color = #f77c80, title = "Long Liquidation Level 2") plot(showShort?lLiqL3:na, color = #f7525f, title = "Long Liquidation Level 3") plot(showShort?lLiqL4:na, color = #b22833, title = "Long Liquidation Level 4") plot(showShort?lLiqL5:na, color = #ff0000, title = "Long Liquidation Level 5")