OVARIDE

Percentage Change Tool

OVARIDE 已更新   
Here is a script that will allow you to see the percentage change from any entry to the current price. You will manually enter the price you bought at in the indicator price menu. The indicator will calculate and display the percentage difference(change) between the buy price and current price, in REAL TIME.

See Screenshot (TOP_RIGHT) for indicator.

Double Click on the Yellow Block and insert your entry price. Click OK. Indicator will display percentage.
發布通知:
Funtion
This indicator will allow you to see the percentage change between any entry price and current price of an asset. You will need to input the price of your entry from within the indicator menu. The indicator will then calculate and display the percentage difference(change) between the buy/sell price that you input and current price. The displayed percentage value will continue to update in REAL TIME.

How to use[

1. Add the indicator to your chart.
2. It will appear in the top-right of the screen.
3. Double-Click on the indicator to access the menu where you can input your entry price, change the text size or change where the indicator appears on the chart.
4. Once you input your entry price, the indicator should display a percentage value as shown in the sample images.

Added to this version
1. Ability to change indicator size and position.
2. Indicator only displays percentage within the same amount of decimals as the ticker.
3. Indicator changes color when value is positive (green) or negative (red).
發布通知:
Script Rework by /bfr

BUG -

Colors do not change as scripted. This is a bug that is outside of the actual script.

Added menu item to choose color and transparency .See code notes.
發布通知:
Fixed Bug that reversed color when value is positive/negative and changed randomly on any value over 1. The indicator will now appear green for all positive values and red for all negative values by default. Colors and transparency can be changed for short/long positions or to make it easier to see on custom charts.
發布通知:
Updated formula with correct percentage increase formula.
發布通知:
Corrected new code errors and updated the code to include the following -

- Percentage Multiplier built-in.
- Calculation now returns rounded off values to 4 decimal places.
- Arranged the input menu into groups

PLEASE SEND ME A MESSAGE IF THE CODE DOES NOT WORK!
開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?