답변완료
조건검색 문의
//@version=5indicator("RSI Shift Zone - Lower Breakout Only", overlay = true, max_labels_count = 500)// --------------------------------------------------------------------------------------------------------------------// [Inputs]rsi_len = input.int(14, "RSI length")upper_level = input.int(70, "Upper RSI Level", minval = 50)lower_level = input.int(30, "Lower RSI Level", maxval = 50)min_channel_len = input.int(15, "Minimal bars length of the channel")rsi_filter_val = input.int(40, "Min RSI for Signal")upper_line_width = input.int(2, "Upper Line Width")lower_line_width = input.int(3, "Lower Line Width")center_line_width = input.int(2, "Center Line Width")upper_col = input.color(color.new(#21c997, 50), "Upper Color")lower_col = input.color(color.new(#cc24e2, 50), "Lower Color")lower_line_col = input.color(#FF5252, "Lower Line Signal Color")// --------------------------------------------------------------------------------------------------------------------// [Calculations]var int start = navar bool trigger = falsevar float upper = na var float lower = navar color channel_color = color(na)var bool is_upper_zone = false rsi = ta.rsi(close, rsi_len)channel_upper = ta.crossover(rsi, upper_level) and not trigger channel_lower = ta.crossunder(rsi, lower_level) and not trigger rsi_color = color.from_gradient(rsi, lower_level, upper_level, lower_col, upper_col)if channel_upper start := bar_index trigger := true upper := high lower := low channel_color := rsi_color is_upper_zone := true if channel_lower start := bar_index trigger := true upper := high lower := low channel_color := rsi_color is_upper_zone := false if bar_index - start >= min_channel_len trigger := falsetrigger_change = (channel_upper != channel_upper[1]) or (channel_lower != channel_lower[1])active_upper_line = trigger_change ? na : upperactive_lower_line = trigger_change ? na : lowermiddle_line = trigger_change ? na : math.avg(upper, lower)// --------------------------------------------------------------------------------------------------------------------// [Signal Logic]// Only signals when price crosses Lower Line formed by Upper RSI levellow_breakout = ta.crossover(close, active_lower_line) and is_upper_zone and rsi > rsi_filter_val// --------------------------------------------------------------------------------------------------------------------// [Plotting]plot(active_upper_line, "Upper Line", color = channel_color, style = plot.style_linebr, linewidth = upper_line_width)plot(active_lower_line, "Lower Line", color = channel_color, style = plot.style_linebr, linewidth = lower_line_width)p1 = plot(active_upper_line, display = display.none)p2 = plot(active_lower_line, display = display.none)fill(p1, p2, color.new(channel_color, 90))plot(middle_line, "Center Line", color = color.gray, style = plot.style_linebr, linewidth = center_line_width)plotshape(low_breakout, title="Lower Breakout", style=shape.triangleup, location=location.belowbar, color=lower_line_col, size=size.small, text="LOW")// --------------------------------------------------------------------------------------------------------------------// [Alerts]alertcondition(low_breakout, title="Lower Breakout Alert", message="Price crossed Lower Shift Zone")일봉상 위 신호가 나온 종목을 검출 할 수 있도록 해주시면 감사 드리겠습니다 (__)
답변완료
조건검색 문의
//@version=5indicator("RSI Shift Zone - Middle Breakout Only", overlay = true, max_labels_count = 500)// --------------------------------------------------------------------------------------------------------------------// [Inputs]rsi_len = input.int(14, "RSI length")upper_level = input.int(70, "Upper RSI Level", minval = 50)lower_level = input.int(30, "Lower RSI Level", maxval = 50)min_channel_len = input.int(15, "Minimal bars length of the channel")rsi_filter_val = input.int(40, "Min RSI for Signal")upper_line_width = input.int(2, "Upper Line Width")lower_line_width = input.int(2, "Lower Line Width")center_line_width = input.int(3, "Center Line Width")upper_col = input.color(color.new(#21c997, 50), "Upper Color")lower_col = input.color(color.new(#cc24e2, 50), "Lower Color")center_line_col = input.color(#2196F3, "Center Color")// --------------------------------------------------------------------------------------------------------------------// [Calculations]var int start = navar bool trigger = falsevar float upper = na var float lower = navar color channel_color = color(na)var bool is_upper_zone = false rsi = ta.rsi(close, rsi_len)channel_upper = ta.crossover(rsi, upper_level) and not trigger channel_lower = ta.crossunder(rsi, lower_level) and not trigger rsi_color = color.from_gradient(rsi, lower_level, upper_level, lower_col, upper_col)if channel_upper start := bar_index trigger := true upper := high lower := low channel_color := rsi_color is_upper_zone := true if channel_lower start := bar_index trigger := true upper := high lower := low channel_color := rsi_color is_upper_zone := false if bar_index - start >= min_channel_len trigger := falsetrigger_change = (channel_upper != channel_upper[1]) or (channel_lower != channel_lower[1])active_upper_line = trigger_change ? na : upperactive_lower_line = trigger_change ? na : lowermiddle_line = trigger_change ? na : math.avg(upper, lower)// --------------------------------------------------------------------------------------------------------------------// [Signal Logic]// Only signals when price crosses Middle Line formed by Upper RSI levelmid_breakout = ta.crossover(close, middle_line) and is_upper_zone and rsi > rsi_filter_val// --------------------------------------------------------------------------------------------------------------------// [Plotting]plot(active_upper_line, "Upper Line", color = channel_color, style = plot.style_linebr, linewidth = upper_line_width)plot(active_lower_line, "Lower Line", color = channel_color, style = plot.style_linebr, linewidth = lower_line_width)p1 = plot(active_upper_line, display = display.none)p2 = plot(active_lower_line, display = display.none)fill(p1, p2, color.new(channel_color, 90))plot(middle_line, "Center Line", color = center_line_col, style = plot.style_linebr, linewidth = center_line_width)plotshape(mid_breakout, title="Middle Breakout", style=shape.triangleup, location=location.belowbar, color=center_line_col, size=size.small, text="MID")// --------------------------------------------------------------------------------------------------------------------// [Alerts]alertcondition(mid_breakout, title="Middle Breakout Alert", message="Price crossed Middle Shift Zone")일봉상 위 신호가 나오게 해주시면 감사드리겠습니다 (__)
답변완료
조건검색 문의
//@version=5indicator("RSI Shift Zone - Upper Breakout Only", overlay = true, max_labels_count = 500)// --------------------------------------------------------------------------------------------------------------------// [Inputs]rsi_len = input.int(14, "RSI length")upper_level = input.int(70, "Upper RSI Level", minval = 50)lower_level = input.int(30, "Lower RSI Level", maxval = 50)min_channel_len = input.int(15, "Minimal bars length of the channel")rsi_filter_val = input.int(40, "Min RSI for Signal")upper_line_width = input.int(3, "Upper Line Width")lower_line_width = input.int(3, "Lower Line Width")center_line_width = input.int(2, "Center Line Width")upper_col = input.color(#21c997, "Upper Color")lower_col = input.color(#cc24e2, "Lower Color")center_line_col = input.color(color.gray, "Center Color")// --------------------------------------------------------------------------------------------------------------------// [Calculations]var int start = navar bool trigger = falsevar float upper = na var float lower = navar color channel_color = color(na)var bool is_upper_zone = false rsi = ta.rsi(close, rsi_len)channel_upper = ta.crossover(rsi, upper_level) and not trigger channel_lower = ta.crossunder(rsi, lower_level) and not trigger rsi_color = color.from_gradient(rsi, lower_level, upper_level, lower_col, upper_col)if channel_upper start := bar_index trigger := true upper := high lower := low channel_color := rsi_color is_upper_zone := true if channel_lower start := bar_index trigger := true upper := high lower := low channel_color := rsi_color is_upper_zone := false if bar_index - start >= min_channel_len trigger := falsetrigger_change = (channel_upper != channel_upper[1]) or (channel_lower != channel_lower[1])active_upper_line = trigger_change ? na : upperactive_lower_line = trigger_change ? na : lowermiddle_line = trigger_change ? na : math.avg(upper, lower)// --------------------------------------------------------------------------------------------------------------------// [Signal Logic]upper_breakout = ta.crossover(close, active_upper_line) and is_upper_zone and rsi > rsi_filter_val// --------------------------------------------------------------------------------------------------------------------// [Plotting]plot(active_upper_line, "Upper Line", color = channel_color, style = plot.style_linebr, linewidth = upper_line_width)plot(active_lower_line, "Lower Line", color = channel_color, style = plot.style_linebr, linewidth = lower_line_width)p1 = plot(active_upper_line, display = display.none)p2 = plot(active_lower_line, display = display.none)fill(p1, p2, color.new(channel_color, 90))plot(middle_line, "Center Line", color = center_line_col, style = plot.style_linebr, linewidth = center_line_width)plotshape(upper_breakout, title="Upper Breakout", style=shape.triangleup, location=location.belowbar, color=upper_col, size=size.small, text="UP")// --------------------------------------------------------------------------------------------------------------------// [Alerts]alertcondition(upper_breakout, title="Upper Breakout Alert", message="Price crossed Upper Shift Zone")일봉상 위 신호가 나온 종목을 검출할 수 있도록 해주시면 감사드리겠습니다 (__)
답변완료
문의드립니다.
아래 input 과 var을 어떻게 수정해서 입력해야 전략이 운용될 수 있을가요?저의 계좌는 예를 들어 (실제번호를 수정) 83789199-08 이고 종목은 골드 GCG26 이라고 하면 어떻게 입력을 해야 할가요?[필수]- 1분봉 차트에 적용- 종목추가(data2)로 동일종목 35분봉 추가*/Input : # 35분봉 전략 파라미터 Length(11), StdDev(1.5), Bars(1), BuyGap(80), SellGap(160), ProfitVar(2100), LossVar(20), # 계좌/동기화 파라미터 AccountIndex(0), // GetAccount(AccountIndex) TargetSymbol(""), // 공란이면 PositionIndex(0) 사용 권장 PositionIndex(0), // TargetSymbol 공란일 때, 계좌 보유종목 중 몇번째를 쓸지 LongSideCode(1), // 해외종목용 매수구분(필요 시) ShortSideCode(2), // 해외종목용 매도구분(필요 시) SyncOn(1), // 1: 보정주문 실행, 0: 모니터링만 LogOn(1); // 1: MessageLog 출력Var : # 35분봉 계산값 BbTop2(0), BbBot2(0), # 계좌 조회/실제 포지션 AccNo(""), AccReady(0), Sym(""), PosCnt(0), Idx(0), Found(False), QtyLong(0), QtyShort(0), ActNet(0), // 실제 순보유(롱+, 숏-) # 시스템(전략) 포지션 SysNet(0), // MarketPosition * CurrentContracts DifNet(0); // SysNet - ActNet
답변완료
종목검색식 부탁드립니다.
1. 아래 수식을 참고하여, 수식1) 이 수식2) 를 돌파할때 종목 검색식 부탁드려요2. 아래 수식을 참고하여, 수식1) 이 수식2) 를 "기준선 0 아래"에서 돌파할때 종목 검색식 부탁드려요3. 아래 수식을 참고하여, 수식1) 이 기준선 0 을 돌파할때 종목 검색식 부탁드립니다.--------아래--------수식1) biwave(20,12,5,3)수식2) B=biwave(20,12,5,3); eavg(B,Signal)지표조건 Signal 20기준선 0
바이너리웨이브
답변완료
수수식문의드립니댜
기간1 24지표조건 UP ; 2 DN ; -2A=Highest(V,기간1); //주봉B=Valuewhen(1, V>A(1), (O+C+L+H+C)/5); //주봉주봉V=B*(1+DN/100); //주봉라인주봉H= HighestSince(1,crossup(M5,M12),M5); 주봉N = if(M5!=주봉H && M5>M12,주봉H,0); //라인1번crossup(C,주봉N) && 주봉H!=0 2번C가 주봉V 위에 존재하고 C가 주봉N을 돌파3번 C가 주봉V 위에 존재하고 전 주봉5선의 고점 돌파