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提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?