OPEN-SOURCE SCRIPT

거래량 지표 전략 (최종)

167
"Leverage 100x, 10% of capital committed, 0.3% profit target, 0.2% stop loss."

레버리지 100배 이용, 10프로 자본금 투입, 0.3프로 수익 , 0.2프로 손해

"Volume Indicator Strategy (Final)" Summary
This Pine Script strategy is designed to integrate volume data from multiple cryptocurrency exchanges (Binance, Bitget, OKX, Bybit) across spot and futures markets. It then uses this consolidated volume data to identify volume spikes and apply an RSI filter to generate buy/sell signals.

Key Features and Logic:

Multi-Exchange/Asset Volume Consolidation:

Based on user settings, it fetches and sums up spot and perpetual futures volume data from Binance, Bitget, OKX, and Bybit.

It uses the request.security function to query volume data from each specified exchange.

NA (Not Available) data points are safely handled and treated as 0 to prevent calculation errors.

Volume Spike Detection:

It calculates the Simple Moving Average (avg_volume) of the combined_volume over a lookback period (default 70 bars).

A vol_7x condition is met when the combined_volume is equal to or greater than 7 times (vol_multiplier_7x, user-configurable) the avg_volume.

RSI Filter (Optional):

An RSI (Relative Strength Index) filter (enable_rsi_filter, user-configurable) can be applied in conjunction with the volume spike condition.

Short Entry Condition: vol_7x (volume spike) & price_up (current bar's close is higher than the previous close) & RSI is 73 or greater (if filter is enabled).

Long Entry Condition: vol_7x (volume spike) & price_down (current bar's close is lower than the previous close) & RSI is 28 or less (if filter is enabled).

Strategy Entry/Exit:

When entry conditions are met, the strategy enters a position at market price.

It includes a re-entry cooldown period (default 10 bars) to prevent immediate re-entry in the same direction.

Fixed Take Profit and Stop Loss percentages (0.3% Take Profit, 0.2% Stop Loss) are set to manage open positions.

Visualization:

The combined_volume is plotted as columns (plot.style_columns) in a lower pane, changing color when the 7x volume spike condition is met.

The avg_volume is plotted as a line.

Volume values on the plot (and intended for the Y-axis scale) are formatted using format=format.volume to display in K (thousands), M (millions), B (billions) units.

The chart background color changes to indicate RSI overbought (>= 70, red) and oversold (<= 30, blue) zones.

Labels are displayed on the chart for individual trade P/L (Profit/Loss), and an info panel shows the total P/L over a user-defined period.

This strategy aims to capture significant market movements by aggregating volume data across various sources and combining it with price action and momentum (RSI) analysis to generate automated trading signals.

-------------------------------------------------------------------------------------------------------------
"거래량 지표 전략 (최종)" 요약
이 전략은 여러 암호화폐 거래소(바이낸스, 비트겟, OKX, 바이비트)의 현물(Spot) 및 선물(Futures) 거래량 데이터를 통합하여 사용하는 것을 핵심으로 합니다. 통합된 거래량 데이터를 바탕으로 거래량 급등을 포착하고 RSI 필터를 적용하여 매수/매도 신호를 생성하는 전략입니다.

주요 기능 및 로직:

다중 거래소/자산 거래량 통합:

사용자 설정에 따라 바이낸스, 비트겟, OKX, 바이비트의 현물 및 선물(무기한) 거래량을 개별적으로 가져와 합산합니다.

request.security 함수를 사용하여 각 거래소의 거래량 데이터를 요청합니다.

데이터가 없는 경우(NA)는 0으로 처리하여 계산 오류를 방지합니다.

거래량 급등 감지:

통합된 거래량(combined_volume)의 lookback 기간(기본 70봉) 이동평균(avg_volume)을 계산합니다.

combined_volume이 avg_volume의 7배(vol_multiplier_7x, 사용자 설정 가능) 이상으로 급등하면 vol_7x 조건을 만족합니다.

RSI 필터 (옵션):

거래량 급등 조건과 함께 RSI(상대 강도 지수) 필터(enable_rsi_filter, 사용자 설정 가능)를 적용할 수 있습니다.

매도(Short) 진입 조건: vol_7x (거래량 급등) & price_up (현재 봉 종가가 이전 봉보다 상승) & RSI가 73 이상일 때.

매수(Long) 진입 조건: vol_7x (거래량 급등) & price_down (현재 봉 종가가 이전 봉보다 하락) & RSI가 28 이하일 때.

전략 진입/청산:

위 진입 조건이 충족되면 시장가로 포지션에 진입합니다.

동일 방향으로 10봉 이내 재진입을 제한합니다.

고정 익절(Take Profit) 및 손절(Stop Loss) 비율(각각 0.3%, 0.2%)을 설정하여 포지션을 관리합니다.

시각화:

통합 거래량(combined_volume)은 차트 하단에 막대그래프(plot.style_columns)로 표시되며, 7배 급등 시 색상이 변경됩니다.

평균 거래량(avg_volume)은 선으로 표시됩니다.

거래량 값은 format=format.volume을 사용하여 K(천), M(백만), B(십억) 단위로 간소화되어 표시됩니다.

차트 배경색으로 RSI 과매수(70 이상, 빨간색) 및 과매도(30 이하, 파란색) 구간을 시각적으로 표시합니다.

개별 거래의 P/L(손익) 라벨과 지정된 기간 동안의 총 P/L을 차트 상단에 표시합니다.

이 전략은 여러 거래소의 거래량 데이터를 취합하여 시장의 전반적인 거래 활동을 파악하고, 이를 바탕으로 특정 패턴(거래량 급등 + 가격 방향 + RSI 필터)에 따라 매매 결정을 내리도록 설계되었습니다.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。