PINE LIBRARY

Margin/Leverage Calculation

1381
Margin
This library calculates margin liquidation prices and quantities for long and short positions in your strategies.

Usage example


Get the qty for margin long or short position.


Get the price and qty for margin long or short position.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.