Fifth_Horizon

Status Symbol HUD

***THIS IS NOT A TECHNICAL INDICATOR*****
***THIS IS A HUD (HEADS UP DISPLAY)*******
***TV MADE ME CHOOSE AN INDICATOR CATEGORY****

This is a Status HUD designed to be overlaid your live chart to help you keep track of important information regarding your current position as well as provide 'quick-glimpse' tools and information to help you make quicker, more informed decisions in the moment.

The HUD consist of a small label plotted to the right side of price action keeping your viewing area clean and clear.

The following inputs allow you to customize the information to suit your needs;

AE
This is the Average Entry of your trade. It is assumed that you have calculated this out on your own using external methods. If this is for a single buy-in/buy-out trade, this will just be your entry price

R
This is the percentage of your balance that you currently have in the open trade. This number also needs to be computed using external sources. If you are only interested in keeping track of the status of a single position as an isolated trade apart from your entire balance, you would enter 1 here.

AX
If you are scaling or laddering in and out of a position, this is how you would keep track of your average exit price, This also needs to be calculated externally.

BAL
Input your total balance here if this trade is used against your larger portfolio, this allows for live %PNL calculations on your balance as a whole.

SL
This the real price % you are comfortable allowing price to drop before exiting the position. Currently, the HUD does not calculate SL for you so you will need to calculate your own SL based on your portfolio risk and enter that number here. Future versions will have this baked in, however.

Fees
This is assumed to be a 'one-way' fee. For my personal use I am normally the taker, and my fees are relatively constant. Put in the one-way fee here and the HUD will double that number when necessary to account for 'round-trip' break even points and more accurate SL and target plots.

SPEC
The HUD also has a small selection of 'speculative' tools that can assist in quick information gathering and decision making. By selecting the first check box, this will show or hide the spec dialogue. This spec information appears in the same label as the main info.

Adjusted Average Entry Projection
One powerful feature of the HUD is that by inputting the amount of your next buy-in, you can see a live indicator showing the approximate location that your new average entry will be. This can be very helpful when trying to decide if it is worth employing DCA strategies or if you should simply cut and run.

STEP is a variable that plots the small grey lines above your entry. These are 5 targets, evenly spaced according to this variable. The default is 50, which means the grey target lines show you the price points equivalent to $50, $100, $150, $200, and $250 profit. These targets are fairly accurate when accounting for fees as well, meaning that the $50 target painted here is a REAL $50 with all fees covered!

By selecting the Spec SL box you will show/hide the speculative stop loss projection. This is a small black cross that prints under the current price. This represents your described SL as a function of current price. In other words, if you were to take a new trade at the current price, it shows you where your desired stop will be. This projection is an estimate and does NOT account for fees. It also will NOT work with DCA strategies. It is currently ONLY for new trades. Once you have entered a trade, it is better to turn this off. Future updates will include dynamic projections that account for fees. ;)

HUD Offset is the number of candles forward you wish to displace the HUD interface. If set to 0, the info box will be directly over the current candle.

The info that is on the HUD is as follows;
% = total %the trade has moved since your entry
PNL = Your personal PNL on balance
PNL (line 2) = Your personal PNL as real dollars
---------
MU = the makeup required for a negative trade. This calculates how far UP price must travel to make up the current lost percent. Because the makeup % is not always intuitively related to the loss percent, this can sometimes be handy. For instance, if price is down 20% from entry, you will need almost 26% increase from current price to reach your break even point.


Visual Tools that are plotted are as follows;
Green line = Trade Entry
Red line = SL
Purple Line = Break-even point for fees
Grey lines = profit targets based on 'STEP' increment
Release Notes:
Major Changes;
fixed a calculation error that was affecting SL projection and target painting

Minor Changes;
Changed the name of the study to match the published name
Minor formatting changes to the code
Release Notes:
minor formatting changes to code
Release Notes:
corrected some leftover troubleshooting variable declarations, default indicator now loads with 'NO DATA' notification
minor formatting corrections of code
Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?