OVARIDE

Percentage Change Tool

OVARIDE Aktualisiert   
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.
Versionshinweise:
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).
Versionshinweise:
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.
Versionshinweise:
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.
Versionshinweise:
Updated formula with correct percentage increase formula.
Versionshinweise:
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!
Open-source Skript

Ganz im Spirit von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es besser verstehen und überprüfen können. Herzlichen Glückwunsch an den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Veröffentlichung unterliegt den Hausregeln. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?