Editors' picks
OPEN-SOURCE SCRIPT

[MAD] Position starter & calculator

Updated
The tool you're using is a financial instrument trading planner and analyzer.

Here is how to use it:

Trade Planning: You can plan your trade entries and exits, calculating potential profits, losses, and their ratio (P/L ratio).
You can define up to five target closing prices with varying volumes, which can be individually activated or deactivated (volume set to 0%).

Risk Management: There's a stop-loss function to calculate and limit potential losses.
Additionally, it includes a liquidation pre-calculation for adjustable leverages and position maintenance(subject to exchange variation).

Customization: You can customize the tool's appearance with five adjustable color schemes, light and dark.

-----------------

Initiation: This tool functions as an indicator.
To start, add it as an indicator.
Once added, you can close the indicator window.
Now wait, till you'll see a blue box at the bottom of the input window.

Parameter Input:
Enter your parameters (SL, box left, box right, TP1, TP2, TP3, TP4, TP5) in the direction of the desired trade.
Click from top to bottom for a short trade or bottom to top for a long trade.

snapshot

Adjustment: If you want to move the box in the future, adjust the times in the indicator settings directly as click input is not yet platform-supported.

This tool functions as a ruler and doesn't offer alerts (for now).

Here is another examples of how to set up a Position-calculation but here for a short:

snapshot

Have fun trading
Release Notes
change of the standard colortheme to a new light /dark compatible one 0->5
no other changes
Release Notes
This version includes alerts with freely configurable alert texts.

Position open is only executed inside the entry box, so ensure that the entry box is configured correctly into the future.
Configure the entry box in your analysis timeframe.
If you want to add alerts, make sure to switch to a very low timeframe (at least 1 minute, preferably 15 seconds) before creating them.

options for text replacements are:
{{close}}: Replaced with the current closing price.
{{open}}: Replaced with the current opening price.
{{high}}: Replaced with the current highest price.
{{low}}: Replaced with the current lowest price.
{{timestamp}}: Replaced with the current timestamp in the format "From":"YYYY:MM:DDTHH:MM:SS000000Z".
{{tp_number}}: Replaced with the current take profit number.
{{username}}: Replaced with the current username.
{{direction}}: Replaced with the trade direction: "1" for long, "-1" for short.
{{ticker}}: Replaced with the current ticker symbol.
{{exchange}}: Replaced with the current exchange prefix.
riskmangementstatistics

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


djmad|Bitblockart

Disclaimer