TradingView
DannyBaker
29 Th08 2020 16:49

Stop Loss Panel 

Mô tả

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.

Phát hành các Ghi chú

I made it easier to see on all timeframes, and made it possible to adjust how many decimal places the numbers shown have.

Phát hành các Ghi chú

update to chart

Phát hành các Ghi chú

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

Phát hành các Ghi chú

Added a "In Profit" level based on the trading fees, for those that trade on the lower timeframes

Phát hành các Ghi chú

The panel position can now be adjusted from the settings

Phát hành các Ghi chú

Added Risk and Reward percentages

Phát hành các Ghi chú

Display update

Phát hành các Ghi chú

The Risk Reward Percentages take the Fee setting into account

Phát hành các Ghi chú

Added some description to settings panel

Phát hành các Ghi chú

Added a switch to account for round trip fees for Roundtrip fees on Entries and Exits

Phát hành các Ghi chú

Changed the colors to be clearer

Phát hành các Ghi chú

Changed it a bit so you can set your risk amount

Phát hành các Ghi chú

Changed the view

Phát hành các Ghi chú

Fixed a bug in the fees on off

Phát hành các Ghi chú

Finally adjusted it so only the risk and reward account for the fees

Phát hành các Ghi chú

Cleaned up some errors

Phát hành các Ghi chú

I have taken the accounting for the fee option out as my math incorrect

Phát hành các Ghi chú

You can now enter the price manually

Phát hành các Ghi chú

Deleted enter price manually as it was buggy.

Phát hành các Ghi chú

I added a contract value so you can see how many contracts you need to trade as well as the dollar amount

Phát hành các Ghi chú

a little adjustment to adjust the contract value by 0.1 steps

Phát hành các Ghi chú

i added the option to shrink the panel display

Phát hành các Ghi chú

The contract display does not round of anymore and its updated to pinescript version 5

Phát hành các Ghi chú

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.

Phát hành các Ghi chú

Added manual take profit entry

Phát hành các Ghi chú

Updated Chart.

Phát hành các Ghi chú

Updated the reward display to include leverage

Phát hành các Ghi chú

Minor Update

Phát hành các Ghi chú

Added Margin and reward in cash.

Phát hành các Ghi chú

Fixed some maths

Phát hành các Ghi chú

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.

Phát hành các Ghi chú

The Profit Margin display basically accounts for the exchange fees on the leveraged cash total you trade.

Phát hành các Ghi chú

a few small updates

Phát hành các Ghi chú

Update of chart
Bình luận
Sahni
hi .its not loading on the cart. why?
MargD
Thank you very much, fab x
DannyBaker
I feel that my math is off on this indicator, if any of you math wiz's wanna take a look feel free...
DannyBaker
@DannyBaker, All the math has been corrected
uorgun
Thanks for this wonderful script. Is it possible to show the same information for a specific candle rather than the last candle?
DannyBaker
@uorgun, can you explain why that would be useful?
uorgun
@DannyBaker, I thought that could be useful for manual backtesting purposes. There is a tool on MT4 platform. When you click on a candle in the past, it automatically draws (with a horizontal line) stoploss and take profit levels based on ATR. When you are backtesting your indicators, you can visually see if it was a win or loss. I am not a programmer and don't know much about pine coding. I just wanted to know if a similar tool could be written for Tradingview platform.
DannyBaker
@uorgun, I could make it so you could set a number back from the current price, but that would move in real time. and drawing lines would be a differant indicator
uorgun
@DannyBaker, thank you so much. I will be using your indicator as is and for forward testing. For backtesting, setting a number back will make things complicated and will be time consuming. Thanks again for this useful indicator.
Thêm nữa