OPEN-SOURCE SCRIPT

Stop Loss Panel

By DannyBaker
Uppdaterad
Here is a label panel that shows the stop-loss number for Long or Short trades based on volatility using average true range and and a mult of that.
Versionsinformation
I made it easier to see on all timeframes, and made it possible to adjust how many decimal places the numbers shown have.
Versionsinformation
update to chart
Versionsinformation
Added Take profit and Current Price. The price changes color to green if there is a higher low and changes color to orange if the is a lower high, there is a look back adjustment for this, if set to 2 it would need 2 consecutive higher lows or lower highs, it turns silver if neither have happened
Versionsinformation
Added a "In Profit" level based on the trading fees, for those that trade on the lower timeframes
Versionsinformation
The panel position can now be adjusted from the settings
Versionsinformation
Added Risk and Reward percentages
Versionsinformation
Display update
Versionsinformation
The Risk Reward Percentages take the Fee setting into account
Versionsinformation
Added some description to settings panel
Versionsinformation
Added a switch to account for round trip fees for Roundtrip fees on Entries and Exits
Versionsinformation
Changed the colors to be clearer
Versionsinformation
Changed it a bit so you can set your risk amount
Versionsinformation
Changed the view
Versionsinformation
Fixed a bug in the fees on off
Versionsinformation
Finally adjusted it so only the risk and reward account for the fees
Versionsinformation
Cleaned up some errors
Versionsinformation
I have taken the accounting for the fee option out as my math incorrect
Versionsinformation
You can now enter the price manually
Versionsinformation
Deleted enter price manually as it was buggy.
Versionsinformation
I added a contract value so you can see how many contracts you need to trade as well as the dollar amount
Versionsinformation
a little adjustment to adjust the contract value by 0.1 steps
Versionsinformation
i added the option to shrink the panel display
Versionsinformation
The contract display does not round of anymore and its updated to pinescript version 5
Versionsinformation
Added manual entry for Price Entry and Stop Loss. Also, there is a leverage display showing the amount you will need to complete the trade.
Versionsinformation
Added manual take profit entry
Versionsinformation
Updated Chart.
Versionsinformation
Updated the reward display to include leverage
Versionsinformation
Minor Update
Versionsinformation
Added Margin and reward in cash.
Versionsinformation
Fixed some maths
Versionsinformation
I added to the display the measurement of profit margin. So you know know what the amount in percentage is to be in profit. Taking into consideration the amount of leverage you are having to put on.
Versionsinformation
The Profit Margin display basically accounts for the exchange fees on the leveraged cash total you trade.
Versionsinformation
a few small updates
Versionsinformation
Update of chart
Average True Range (ATR)stop-lossstoplossstopsVolatility

Skript med en öppen källkod

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. Du kan ange den som favorit för att använda den i ett diagram.

Vill du använda det här skriptet i ett diagram?

Frånsägelse av ansvar