시간당 변동에 따른 거래 전략
개요
이 전략은 SPY 시장에 대 한, 시간 수준의 가격 변동을 사용하여 시장 움직임을 판단 하 고, 짧은 라인 반전 거래를 한다.
전략 원칙
-
5일과 13일 이동 평균선 교차를 사용하여 시간 레벨 가격의 역전.
-
RSI 지표가 50보다 높을 때, 이동평균선금포는 구매 신호를 생성한다.
-
13일 평균선 아래 5일 평균선을 통과하면 MACD 이차가 신호선을 통과하면 판매 신호가 발생한다.
-
스톱로스 및 스톱<unk> 라인을 설정하고 목표 수익의 2배에 도달하면 일부 포지션을 평정하십시오.
-
이 라운드의 거래가 끝나면 다음 라운드에 진입할지 판단할 수 있다.
-
입력 매개 변수는 평균선, 스톱 스톱 비율 등을 사용자 정의할 수 있다.
우위 분석
-
시급 가격 변화를 이용해 단선 거래 기회를 잡으세요.
-
다중 지표 조합 검증은 신호의 정확성을 향상시킵니다.
-
스톱 로즈 스<unk> (Stop Loss Stop) 전략을 세우는 것은 위험을 통제하는 데 도움이 됩니다.
-
일부 차단은 수익을 잠금화할 수 있습니다.
-
입력 매개 변수는 커스터마이징이 가능하며, 쇼트라인 거래자에게 적합하다.
위험 분석
-
시급 가격 변동으로 인해 잘못된 신호가 발생하여 손실이 발생할 수 있습니다.
-
스톱 손실 스톱 <unk> 비율이 잘못 설정되어 너무 일찍 중단되거나 너무 오래 유지될 수 있습니다.
-
일부 품종의 매개 변수는 최적화된 조정이 필요하여 좋은 재검토 효과를 얻을 수 있다.
-
최적화 시에는 과장 적합성의 위험이 있습니다.
-
거래의 빈도가 수수료를 증가시키는 거래 비용.
최적화 방향
-
다양한 변수 조합을 테스트하여 최적의 변수를 찾습니다.
-
다른 지표들을 평가하여 거래 신호를 확인합니다.
-
위험과 수익의 균형을 맞추기 위해 손실을 막는 전략을 최적화하십시오.
-
트렌드 필터를 추가하여 역전 거래를 피하십시오.
-
수익을 올리는 시간을 연장하기 위한 부분적 휴식 조건의 적절한 완화.
-
전략에 적합한 다른 품종을 평가하십시오.
요약하다
이 전략은 SPY의 시간 수준의 단선 거래 기회를 잡으려고 한다. 매개 변수 최적화, 신호 필터링 등의 방법으로 신뢰성을 강화할 수 있어 효과적인 단선 거래 전략으로 만들어진다.
//@version=5
strategy(title="SPY 1 Hour Swing Trader", initial_capital=300000, default_qty_type=strategy.percent_of_equity, default_qty_value=15, pyramiding=0, commission_type=strategy.commission.cash_per_order, commission_value=0, overlay=true, calc_on_every_tick=false, process_orders_on_close=true, max_labels_count=500)
//The purpose of this script is to spot 1 hour pivots that indicate ~5 to 6 trading day swings.
//Results indicate that swings are held approximately 5 to 6 trading days on average, over the last 6 years.
//This indicator spots a go long opportunity when the 5 ema crosses the 13 ema on the 1 hour along with the RSI > 50.
//It also spots uses a couple different means to determine when to exit the trade. Sell condition is
//primarily when the 13 ema crosses the 5 ema and the MACD line crosses below the signal line and
//the smoothed Stoichastic appears oversold (greater than 60). Stop Losses and Take Profits are configurable
//in Inputs along with ability to include short trades plus other MACD and Stoichastic settings.
//If a stop loss is encountered the trade will close. Also once twice the expected move is encountered
//partial profits will taken and stop losses and take profits will be re-established based on most recent close- 1
