Long/Short Margin Ratio for cryptocurrenciesBTCUSDSHORTS and BTCUSDLONGS are like datasets provided by Bitfinex exchange. They record the number of margined for longs and shorts and they are measured in BTC (in case using BTCUSD ).
Margin is Like any loan, the borrower may pay interest while the loan is outstanding, and must eventually pay the loan back.
Red Area: More short margin than long margin.
Green Area: More long margin than short margin.
Note: Can only be used with cryptocurrencies that have such dataset within Bitfinex exchange like BTCUSD , ETHUSD , XRPUSD and a few more.
Crytpotrading
PpSignal Multi-Day VWAPThank to @mortdiggiddy
original script:
Chart the multi-day Volume Weighted Average Price ( VWAP ). Normally, the VWAP is tracked for the current day, from the first bar of the day (regular or extended session). The VWAP shows the current value of:
-> sum(hlc3 * volume , barsForDay) / sum( volume , barsForDay),
-> where 'barsForDay' is the total number bars that have elapsed during the day for the chart interval.
The multi-day version tracks the VWAP for N days back, by averaging the previous N - 1 day bars VWAP and the current VWAP for the current bar (chart interval).
This is very different that simply using a volume weighted moving average , since the closing VWAP values are used for the historical day bars. The results are interesting for intraday trades... especially for values of 1, 2, 3, 4, 5 ....to 21 days.