Net DASH Margin PositionTotal DASH Longs minus DASH Shorts in order to give you the total outstanding DASH margin debt.
ie: If 500,000 DASH has been longed, and 400,000 DASH has been shorted, then 500,000 has been bought, and 400,000 sold, leaving us with 100,000 DASH (net) remaining to be sold to give us an overall neutral margin position.
That isn't to say that the net margin position must move towards zero, but it is a sensible reference point, and historical net values may provide useful insights into the current circumstances.
(Anyone know what category this script should be in?)
Margin
Net EOS Margin PositionTotal EOS Longs minus EOS Shorts in order to give you the total outstanding EOS margin debt.
ie: If 5,000,000 EOS has been longed, and 4,000,000 EOS has been shorted, then 5,000,000 has been bought, and 4,000,000 sold, leaving us with 1,000,000 EOS (net) remaining to be sold to give us an overall neutral margin position.
That isn't to say that the net margin position must move towards zero, but it is a sensible reference point, and historical net values may provide useful insights into the current circumstances.
(Anyone know what category this script should be in?)
Net XMR Margin PositionTotal XMR Longs minus XMR Shorts in order to give you the total outstanding XMR margin debt.
ie: If 50,000 XMR has been longed, and 40,000 XMR has been shorted, then 50,000 has been bought, and 40,000 sold, leaving us with 10,000 XMR (net) remaining to be sold to give us an overall neutral margin position.
That isn't to say that the net margin position must move towards zero, but it is a sensible reference point, and historical net values may provide useful insights into the current circumstances.
Net NEO Margin PositionTotal NEO Longs minus NEO Shorts in order to give you the total outstanding NEO margin debt.
ie: If 500,000 NEO has been longed, and 400,000 NEO has been shorted, then 500,000 has been bought, and 400,000 sold, leaving us with 100,000 NEO (net) remaining to be sold to give us an overall neutral margin position.
That isn't to say that the net margin position must move towards zero, but it is a sensible reference point, and historical net values may provide useful insights into the current circumstances.
(Anyone know what category this script should be in?)
Net BTC Margin PositionTotal BTCUSDLONGS minus the BTCUSDSHORTS in order to give you the total outstanding BTC margin debt.
ie: If there are 50,000 BTC longs, and 40,000 BTC shorts, then 50,000 has been bought, and 40,000 sold, leaving us with 10,000 BTC net remaining to be sold to give us an overall neutral margin position.
That isn't to say that the net margin position must move towards zero, but it is a sensible reference point, and historical net values may provide useful insights into the current circumstances.
(Anyone know what category this script should be in?)
Bitfinex BTC longs/total ratioRatio of bitfinex longs versus the total btc in positions. Maybe a good indicator of market sentiment. It allows you to see too where were people taking profit or closing positions. Remember that ratio going up doesn't necesarily mean more longs positions are being added. It could mean shorts are closing position massively. The conversely is also true.
The rate above 0.5 doesn't necesarily bullish, though, and the indicator is "timeframe" agnostic. So take into account that there could be tons of longs positions that were opened since back before summer 2017, It seems to be too of positions opened at prices below 4.000$. That's why the average seems to be around 0.6.
The blue lines indicates current ratio (or on close for past bars). The red line is the max ratio (higher shorts versus lowest longs).
Margin Changes Per Bar [Bitfinex]This indicators shows the changes in margin data for Bitfinex from previous bar. This means if you're looking at the 1 hour chart, it will show changes since the previous hour. 1 day chart = changes since the previous day.
Useful for seeing if a price move was due to stop runs, if a trade has become too crowded, or whatever wacky theories you have for margin data.
Automated to switch to whichever ticker you're currently viewing if it has margin trading enabled on Bitfinex. It adapts to any exchange, including BitMEX.
// Green: opened longs since previous bar
// Teal: close longs since previous bar
// Red: opened shorts since previous bar
// Gray: closed shorts since previous bar
Dynamic LONGS & SHORTS Bitfinex Margin Traders PositionsA script that will show current margin longs and shorts for the current pair, if it is margin enabeld, on Bitfinex
Bitfinex Long vs Short (TickerID)Uses the active ticker to show long/short values on all Bitfinex pairs that have that data available on Tradingview.
Aesthetic Margin Long/Short Changes v2 [MrBit]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 (and I always have it on the chart anyway), but feel free to uncomment if you want it,
it is still a speed up.
Bitfinex BTCUSD margin longs vs shortsNon overlay indicator for BTCUSDLONGS and BTCUSDSHORTS + delta
MP Rollercoaster Strat
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 more!)
As usual, free to use, change it to suit your needs, please don't resell for profit.
For carpel tunnel surgery!
btc addy- 1Dsg49Zt2FQ9BnUHrmXQwvhL5dd3teqa7g
ltc addy- LYUpgsHSHnKeYdNaj9bu9prK4QsnJXEQtP
pinkcoin addy- 2PoeXyAk3rF9FmMC8azme2mGzMYsEiZ5eS
MP Rollercoaster Study
This TMA study 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 Strategy side chart use :)
As usual, free to use, change it to suit your needs, please don't resell for profit.
For carpel tunnel surgery!
btc addy- 1Dsg49Zt2FQ9BnUHrmXQwvhL5dd3teqa7g
ltc addy- LYUpgsHSHnKeYdNaj9bu9prK4QsnJXEQtP
pinkcoin addy- 2PoeXyAk3rF9FmMC8azme2mGzMYsEiZ5eS
BITFINEX Long to Short RatioShows the ratio of longs to shorts. Above 1.0 means more longs. Below 1.0 means more shorts. A value of 1.0 means equilibrium.
[PW] BITFINEX Shorts ChangeA very simple indicator to show the change of longs between the previous period and the current period on bitfinex, this works for any margin pair on Bitfinex but can also be locked to BITFINEX:BTCUSD, works hand in hand with my "Longs Change" indicator
[PW] BITFINEX Longs ChangeA very simple indicator to show the change of longs between the previous period and the current period on bitfinex, this works for any margin pair on Bitfinex but can also be locked to BITFINEX:BTCUSD, works hand in hand with my "Shorts Change" indicator
[PW] BITFINEX Longs & Shorts (all pairs)This is the same as my previous BITFINEX Longs & Shorts script but with an update by @slylandro to work with other pairs on BFX
Green area = Longs
Red area = Shorts
Lighter area = Longs - Shorts (good for spotting sentiment)
[RS]Function Account Margin Call Functions V0some simple functions to handle account margin call / trailling stop for account.