lysergik

RealTime Max Leverage

lysergik Uppdaterad   
Ever wanted a script that could tell you what is the maximum reasonably safe leverage if you were to open a trade and hold it for a given number of candles? This is it!

Using rate of change based volatility and the maximum expected number of candles/periods you will hold your trade for, based on your risk profile this indicator will tell you what is the maximum reasonable leverage.
Stop losses / take profits or some other prudent exit strategy should not be avoided. The idea is effectively to prevent yourself from using leverage that is too risky for the current market conditions on whatever timeframe you are entering your trade based on.

If you have any suggestions on how to improve the indicator, please leave a comment below!
Versionsinformation:
- Added 'valid for:' in the live-table
- Fixed small text issues
Versionsinformation:
- Improved the default settings
Versionsinformation:
- Lowered the risk in the low-risk profile
- Added 'Sketchy' risk profile
Versionsinformation:
- Added 'recommended' risk profile (lowest risk while still accepting some leverage)
- Added cross-margin and isolated margin settings which affect the minimum and maximum leverage regardless of the volatility
- Changed the default settings to make the indicator a bit faster to react to market changes
Versionsinformation:
- Small adjustments
Versionsinformation:
New Features

- Improved Cross-margin mode
- Added liquidation levels
- Reorganized the settings
- Added fill color
Versionsinformation:
- Fixed a bug causing 'Low-ish Risk' profile to not work
- Updated the preview-chart
Versionsinformation:
- Clarified the settings
- Open-position max leverage text being yellow now indicates increasing risk
Versionsinformation:
- Added mini table option
- Changed several math variables / limits
- Cleaned Code a bit
Versionsinformation:
- Added symbols in the table to represent changing risk
Versionsinformation:
- Better color logic
- Hide new-position leverage plot by default
Versionsinformation:
- Fixed issue with displaying decimals
Skyddat skript
Detta skript publiceras med stängd källkod och du kan använda det fritt. Du kan ange den som favorit för att använda den i ett diagram. Du kan inte visa eller ändra dess källkod.
Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

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