OPEN-SOURCE SCRIPT
Sniper Risk

Sniper Risk V4 is a manual trade planner, not a signal tool: click an entry and a stop on the chart and it detects long or short, projects up to six take-profit levels at your chosen R multiples (1R = the entry-to-stop distance; TP = entry ± R x that distance), and sizes the position as lots = (account x risk %) / (stop distance x contract size x currency conversion rate).
It also shows the cash lost at the stop, the cash banked at each target according to the % you plan to close there, and the blended R if all targets are hit. Drag either level and everything recalculates; use "Reset points" for a new trade, "Only on symbol" to keep a plan on its own chart, and add the indicator again for a second trade. Optional alerts fire once per level at bar close when the bar's high/low touches it. Unlike TradingView's built-in Long/Short Position tools, which plan one target, it combines multi-target scale-out planning, lot sizing with contract-size presets and account-currency conversion, and per-level alerts, all derived from the single stop distance so they stay consistent.
Limitations: it is only a calculator with no broker connection. Lines and zones set to "Full line" or "Start N bars back" are drawn over past bars purely visually and are not historical signals. Auto contract size is wrong on most gold, silver and index CFDs (the lot size can be 100 times too large), so set your broker's value and check the "Risk per 1 lot" row. The conversion rate is TradingView's and falls back to 1.0 if unavailable. Spread, commission, swap and slippage are ignored and lots are not rounded to your broker's step. A touch on the chart is not a broker fill. Alerts do not track the trade (a TP alert can fire after the stop was hit), can already be armed if price touched your entry level within the lookback window before you placed the plan, and keep the old levels until you recreate them. Not financial advice.
It also shows the cash lost at the stop, the cash banked at each target according to the % you plan to close there, and the blended R if all targets are hit. Drag either level and everything recalculates; use "Reset points" for a new trade, "Only on symbol" to keep a plan on its own chart, and add the indicator again for a second trade. Optional alerts fire once per level at bar close when the bar's high/low touches it. Unlike TradingView's built-in Long/Short Position tools, which plan one target, it combines multi-target scale-out planning, lot sizing with contract-size presets and account-currency conversion, and per-level alerts, all derived from the single stop distance so they stay consistent.
Limitations: it is only a calculator with no broker connection. Lines and zones set to "Full line" or "Start N bars back" are drawn over past bars purely visually and are not historical signals. Auto contract size is wrong on most gold, silver and index CFDs (the lot size can be 100 times too large), so set your broker's value and check the "Risk per 1 lot" row. The conversion rate is TradingView's and falls back to 1.0 if unavailable. Spread, commission, swap and slippage are ignored and lots are not rounded to your broker's step. A touch on the chart is not a broker fill. Alerts do not track the trade (a TP alert can fire after the stop was hit), can already be armed if price touched your entry level within the lookback window before you placed the plan, and keep the old levels until you recreate them. Not financial advice.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.