Props to @Veryfid for his original script 'ATR Stop Loss Finder'. The concept is simple. We use the average true range to determine an appropriate stop loss distance based on recent volatility. The original script calculated the stop loss offset from the current candle's high or low. Here, I've added the option to offset stop loss from the recent local low or...
En route to being absolutely the best and most complete trading platform out there, TradingView has just closed 2 gaps in their PineScript language. It is now possible to create and backtest a strategy for trading with leverage. Backtester now produces Margin Calls - so recognizes mid-trade drawdown and if it is too big for the broker to maintain your trade,...
Description and documentation can be found within the script.
Shows the Margin Pressure Zones for longs and shorts Longs & Shorts based on 2 Base prices to be configured by you. For definition of "Margin Pressure Zones" see: www.investopedia.com
Non overlay indicator for BTCUSDLONGS and BTCUSDSHORTS + delta
This is the popular Bitfinex margin Longs/Shorts overlay script made compatible with other exchanges. So you can for example use it with BitMEXT XBTUSD and it will still plot Bitfinex BTCUSD. It always plots data for the same currency pair, so for ETHUSD of any exchange, it will always plot Bitfinex ETHUSD margin data.
ELEVATED LEVERAGE index SYSTEM (ELiS) tries to solve the problem of adjusting meaningful leverage in futures and margin trading. The biggest problem for traders is adjusting the leverage level manually. Concerning about the volatilities it's very hard to set a meaningful leverage level. ELiS includes 4 different volatility component which are: 1- nATR:...
When trading on KuCoin, it can be difficult to determine what you're exit price should be. This script solves this issue by giving you an exit price based on a given entry price, a base margin, and a target profit %. USE CASES: No Entry Price: If you have no position in KuCoin, then this use case could be more helpful. With no entry price inputted, two lines will...
Hello traders, I started this script as a joke for someone... finally appears it could be used for educational content Let's talk about leverage and margin call Margin Call A margin call is the broker's demand that an investor deposit additional money or securities so that the account is brought up to the minimum value, known as the maintenance margin. A...
Uses the active ticker to show long/short values on all Bitfinex pairs that have that data available on Tradingview.
A indicator that neatly shows you BitFinex margin longs and shorts that can be put on any chart!
-predicts volume on current bar based on how long is left in the bar -shows how much volume is spent on margin positions -shows how much buy & sell volume on margin positions -shows volume in fiat value -normalized view shows percent of volume spent on margin -sma -enter the security name for shorts & longs data, by default it is set to BITFINEX:BTCUSDLONGS and...
Strategy side of my new cloud script. Idea from Guppy and Viirkooni.
This is a rewrite of the original: I really like the above script (Thank you Pastafarian!) but it was annoying that it always took so long to load, so I made some edits so it would run faster. Basically I replaced all the custom code (the sum loop and the calculations) with pinescript builtins since they are faster and I commented out price since it runs slowly...
Almost identical to the one I published before, but this one includes short orders as well. I didn't spend much time backtesting, so there may be a different set of parameters that gives better results. Please let me know if you find something!
This TMA strategy is called rollercoaster for the rounded ways it follows the moving average. Tried pinpointing entry/exit points as well as I could. Included alertconditions as well as syntax at the bottom for use with Autoview in a margin or spot trading environment. There is also the Study side for syntax and alertconditions use :) (autoview users and...
some simple functions to handle account margin call / trailling stop for account.