OPEN-SOURCE SCRIPT
Leverage and contracts tool

This script is more like a tool than an indicator.
The script determinates the amount of contracts and the leverage needed to do one trade.
You must specify the following parameters:
No matter what side of operation is, it works in both ways (short and long).
To determine the levels could be useful use the short-long position tool of TradingView.
The script determinates the amount of contracts and the leverage needed to do one trade.
You must specify the following parameters:
- Entry price
- Stop Loss price
- Stop Loss risk. It's the capital that you will loss if the price hit the SL price.
- Operation equity. It's the whole capital involved in the operation.
No matter what side of operation is, it works in both ways (short and long).
To determine the levels could be useful use the short-long position tool of TradingView.
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。