NS91

Custom position sizer

NS91 מעודכן   
This is a simple script to aid with determining position size.

Inputs are the intended entry price, desired risk (expressed as % of account at risk), account value, and leverage factor.

To use the script;

1. Identify and update the entry price (yellow line on the chart)
2. Update with desired risk
3. Update with account size
4. Adjust the leverage value until the stop loss (red line on chart for long positions, green line for short positions) reaches the desired value/location on the chart

The label will then update to show the required position size for the trade.
הערות שחרור:
Updated to generate label on current bar only
הערות שחרור:
Further update to fix the issue of labels forming at every new bar
הערות שחרור:
Reworked calculation of position size, added individual inputs for stop and target prices, added background colours.
סקריפט קוד פתוח

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

כתב ויתור

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

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