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提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?