CAB_Member

Gain Loss V2

CAB_Member Updated   
This is the Version Two of my Gain/Loss percent indicator, it's really simple but very handy indicator, when you go into a position, most of the time during a day trade, you don't have enough time to sit back and calculate the percentage of your gain or loss specially with maker/taker fee and leverage and sometimes funding fee you should pay the exchanges/brokers.
The default values for maker/taker and funding fees are set as you would encounter in Bitmex exchange. every 8 hours you are in position, you should rise the number of funding you pay by one, The rest will be calculated automatically.
Normally you need to set the fees for maker/taker and fund based on what your broker/exchange tells you once, then each trade, you set your entry point, being it a margin trade or not, and finally if it's margin, the direction and the leverage and that would be it.
Again, most of the time traders don't change their leverages, so you would set it for once and after that, you just set the entry, click the direction boolean and that is it.
The source is hidded but every one can use the script.
Release Notes:
Fixed a small typo in the parameter title
Release Notes:
This is the new version, utilizing the pine version 4's label command, instead of drawing an indicator we simply show a label, loss beyond - 100% will show "LIQUIDATED" word instead of percentage.
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?