BIBOT
BIBOT
BIBOT
전체 방문자
오늘
어제
  • 분류 전체보기
    • 경제뉴스 일기
    • 바이낸스
    • 코딩
    • 기술적 트레이딩
    • 기타
    • 경제상식
    • 일상

블로그 메뉴

  • 홈
  • 선물거래 계산기
  • 태그
  • 방명록

공지사항

인기 글

태그

  • 서버
  • 우분투
  • 파이썬
  • 파이썬 바이낸스

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
BIBOT

BIBOT

기술적 트레이딩

Tradingview 전략 : Price and Volume Breakout Buy Strategy

2024. 6. 2. 01:45

"가격 및 거래량 돌파 매수 전략"은 특정 캔들스틱 범위에서 가격과 거래량의 동시 돌파를 감지하여 매수 기회를 식별하는 전략입니다. 이 전략은 비트코인 및 이더리움과 같은 고변동성 자산에 가장 적합합니다.

작동 방식:

  1. 검사 창: 가격과 거래량을 검사할 캔들스틱 범위를 설정합니다.
  2. 돌파 조건: 종가와 거래량이 검사 창의 최대값을 초과하면 거래를 시작합니다.
  3. 추세 확인: 가격이 지정된 이동 평균 위에 있는지 확인하여 시장 추세와 일치하도록 합니다.

적용:

  • 높은 변동성과 모멘텀 급증이 있는 자산에 효과적입니다.
  • S&P 500과 같은 넓은 시장에는 변동 및 가격 변동이 덜 두드러져서 덜 효과적입니다.

기본 설정:

  • 수수료: 0.01%
  • 초기 자본: $10,000
  • 거래당 자본: 70%

 

import pandas as pd

# Load data
data = pd.read_csv('data.csv')
data['SMA'] = data['Close'].rolling(window=20).mean()

# Parameters
window = 14
initial_capital = 10000
equity_per_trade = 0.7

# Function to identify breakout conditions
def breakout_strategy(data, window, equity_per_trade):
    signals = []
    capital = initial_capital

    for i in range(window, len(data)):
        high_window = data['Close'][i-window:i].max()
        volume_window = data['Volume'][i-window:i].max()
        if data['Close'][i] > high_window and data['Volume'][i] > volume_window and data['Close'][i] > data['SMA'][i]:
            signals.append({'Date': data['Date'][i], 'Signal': 'Buy', 'Price': data['Close'][i]})
            capital -= equity_per_trade * capital
        else:
            signals.append({'Date': data['Date'][i], 'Signal': 'Hold', 'Price': data['Close'][i]})
    
    return pd.DataFrame(signals)

signals = breakout_strategy(data, window, equity_per_trade)
print(signals)

 

 

The "Price and Volume Breakout Buy Strategy" identifies buying opportunities by detecting concurrent breakouts in price and volume over a specified range of candlesticks. This strategy works best for highly volatile assets like Bitcoin and Ethereum.

How It Works:

  1. Examination Window: Set a range of candlesticks to examine both price and volume.
  2. Breakout Condition: Initiate trades when closing price and trading volume exceed the maximum values in the window.
  3. Trend Confirmation: Ensure price is above a designated moving average to align with market trends.

Application:

  • Effective for assets with high volatility and momentum spikes.
  • Less effective for broader markets like S&P 500 due to less pronounced shifts.

Default Setup:

  • Commission: 0.01%
  • Initial Capital: $10,000
  • Equity per Trade: 70%
반응형
저작자표시 비영리 변경금지 (새창열림)
    '기술적 트레이딩' 카테고리의 다른 글
    • Tradingview 전략 : Ichimoku Theories [LuxAlgo]
    • Tradingview 전략 : Multi Timeframe RSI Buy Sell Strategy
    • 차트 중심의 기술적 트레이딩이 실패하는 이유
    • 르네상스 테크놀로지(Renaissance Technologies)의 키포인트
    BIBOT
    BIBOT

    티스토리툴바