oberon2007

Stop loss and position size calculator (ATR)

Calculates and plots Stop Loss and Position Size, based on desired ATR factor.

Displays Stop Loss Price, SL Distance Percent and Position Size overlayed in the chart and plots a stop loss line.
Additionally Stop Loss, ATR, SL Distance and Position Size are also displayed in the Data Window.

Available settings:

Trade - long / short
ATR timeframe - Allows to use ATR based on different timeframe than the current chart.
ATR factor - Stop Loss will be calculated by multiplying ATR with this factor.
Show last - Amount of previous stop loss lines to plot
Line Offset - Positions previous sl calculation under/above current price.
Calculation Offset - Displays calculation based on price action of previous bar(s).
Label Display Distance - Defines position of label relative to current bar.
Risk - Amount you are going to risk if stop loss is hit.

סקריפט מוגן
סקריפט זה פורסם במקור סגור ותוכל להשתמש בו באופן חופשי. אתה יכול להגדירו כמועדף כדי להשתמש בו בגרף. אינך יכול להציג או לשנות את קוד המקור שלו.
כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?