커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

부탁드려용 ㅎㅎ

강세패턴(매수) A = Crossdown(RSI(21),38); cnt = Countsince(date!=date(1),A); cnt = 1&& cnt(1) == 0 약세패턴(매도) B = Crossup(RSI(24),70); cnt = Countsince(date!(1), B); cnt == 1&& cnt(1) == 0 /////////////////////////////////////// 매수,매도일때 텍스트 및 화살표 부탁드려요.
프로필 이미지
아이덜
2024-08-08
1039
글번호 182342
지표
답변완료

문의드립니다.

키움 신호 검색식 입니다. a2=ma(c,3,단순); a3=ma(c,5,단순); a4=ma(c,120,단순); M=Macd(7,16); a=ValueWhen(1,CrossUp(M,0) ,l); b=ValueWhen(1,CrossUp(M,0),highest(h,3,1)); k=crossup(c,b); 맥점=ValueWhen(1,k,(o+c)/2); 맥점<맥점(1) and crossup(c,맥점) and c>m and a<a(1) and crossup(a2,a3) and c<a4 예스랭귀지로 변환 부탁드립니다. var : a2(0), a3(0), a4(0), k(0),a(0), b(0), aa(0),d(0); a2=ma(c,3); a3=ma(c,5); a4=ma(c,120); k=Macd(7,16); d=highest(h,3); if crossup(k,0) then a=l; if crossup(k,0) and d then b=c; if crossup(c,b) then aa=(o+c)/2; if aa<aa[1] and crossup(c,aa) and c>k and c>d and a<a[1] and crossup(a2,a3)then find(1); 이렇게 만드니 검색이 안됩니다. 변환부탁드립니다.
프로필 이미지
정도령7
2024-08-07
821
글번호 182341
종목검색
답변완료

검색식 부탁 드립니다._(__)_

항상 도와주심에 감사드립니다. _(__)_ 스토케스틱 슬로우(25,6,6)이 20 이하일 때 주가가 일목균형표의 선행스팬1.2 위에 있는 종목 검색식을 부탁드립니다. 선행스팬1,2위치가 바뀌어도 상관은 없습니다. 그리고 1봉전 30봉이내에 주가가 선행스팬1,2를 돌파하고 0봉전에서 돌파한 선행스팬에 +1퍼센트에서 -1퍼센트까지 근접한 종목 검색식도 부탁드립니다.근접하는 선행스팬은 돌파한 위 선행스팬입니다. 아래쪽의 선행스팬은 아닙니다.
프로필 이미지
한칼부르스
2024-08-07
805
글번호 182340
종목검색
답변완료

부탁드립니다.

1. 종가가 양봉,음봉이든 관계없이 위꼬리가 몸통보다 길면 파란색으로, 종가가 양봉,음봉이든 관계없이 아래꼬리가 길면 빨강색으로 구현해 주세요 2. 종가가 양봉, 음봉이든 관계없이 위꼬리가 아래꼬리보다 길면 파란색으로, 종가가 양봉, 음봉이든 관계없이 아래꼬리가 위꼬리보다 길면 빨강색으로 구현해 주세요 고맙습니다.
프로필 이미지
서태공
2024-08-07
979
글번호 182339
강조
답변완료

수식 문의 드립니다

안녕하세요 특정시간 60분봉의 시가 중앙선을 나타내는 지표를 문의드립니다 예) 1. 오전 10시와 15시 시가의 중앙선 - 오전 10시 15,000 - 오후 15시 18,000 - 중앙선 16,500 2. 30분봉도 표현가능한 지표도 알려주요
프로필 이미지
부활
2024-08-07
732
글번호 182338
지표
답변완료

검색식 부탁 드려요

1. C - C (기간) 기간 21 , 기준선 0 현재봉 종가에서 21일전 종가를 빼서 "현재종가가 기준선 0 보다 클때"의 종목 검색식 부탁드립니다. 2. 주가가 볼린저밴드(20,2) 상단선을 돌파하는 검색식 3. 주가가 기준선을(일목) 돌파하는 검색식 4. 주가가 전환선을(일목) 돌파하는 검색식 부탁드립니다.
프로필 이미지
일지매7
2024-08-07
798
글번호 182337
종목검색
답변완료

문의 드립니다

안녕하세요 볼밴(20,0.4)의 상단을 돌파라면 매수 빨간 삼각형 하단을 돌파하면 매도 파란 삼각형으로 차트에 나타내고 10틱단위로 차트에 표시하고 싶습니다 감사합니다
프로필 이미지
만강
2024-08-07
876
글번호 182336
지표
답변완료

지표 질문입니다

틱 차트에서 전일 오후 3시 이후~종가 구간내 최저가를 표시한다 금일 오전 시가부터~9시5분 까지 최고가를 표시한다 감사합니다
프로필 이미지
para
2024-08-07
918
글번호 182335
지표
답변완료

시스템트레이딩 수식 부탁드립니다.

안녕하세요? 시스템 트레이딩에 사용할 것이구요. 분봉에 사용 예정, period는 30입니다. 1. cci가 0선 상향돌파하면 매수 cci가 0선 하향돌파하면 매도청산하려고 합니다. 또 하나의 식을 부탁드려봅니다. 2. 주가가 30선 이상일 때만 cci가 0선 상향돌파하면 매수 cci가 0선 하향돌파하면 매도청산하려고 합니다.
프로필 이미지
세븐천사
2024-08-07
892
글번호 182328
시스템
답변완료

변환 부탁드립니다.

// This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) https://creativecommons.org/licenses/by-nc-sa/4.0/ // &#169; LuxAlgo //@version=5 indicator("DTFX Algo Zones [LuxAlgo]", shorttitle = "LuxAlgo - DTFX Algo Zones", overlay = true, max_boxes_count = 500, max_lines_count = 500) ///---------------------------------------------------------------------------------------------------------------------} //Inputs //---------------------------------------------------------------------------------------------------------------------{ structureTog = input.bool(true, title = "Show Swing Points", group = "Structure") structureLen = input.int(10, title = "Structure Length", group = "Structure") zoneDispNum = input.int(1, title = "Show Last", group = "Zones", minval = 0) dispAll = input.bool(true, title = "Display All Zones", tooltip = "Ignores Zone Display # and Displays all Possible Zones.", group = "Zones") zoneFilter = input.string("Both", title = "Zone Display", options = ["Bullish Only", "Bearish Only", "Both"], group = "Zones") noOverlap = input.bool(true, title = "Clean-Up Level Overlap", group = "Zones") fib_group = "&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Fib Levels&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Line&#160;Style&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Bull&#160;|&#160;Bear" f1Tog = input.bool(false, title = "", group = fib_group, inline = "1") f2Tog = input.bool(true, title = "", group = fib_group, inline = "2") f3Tog = input.bool(true, title = "", group = fib_group, inline = "3") f4Tog = input.bool(true, title = "", group = fib_group, inline = "4") f5Tog = input.bool(false, title = "", group = fib_group, inline = "5") f1Lvl = f1Tog?input.float(0, title = "", group = fib_group, inline = "1"):na f2Lvl = f2Tog?input.float(0.3, title = "", group = fib_group, inline = "2"):na f3Lvl = f3Tog?input.float(0.5, title = "", group = fib_group, inline = "3"):na f4Lvl = f4Tog?input.float(0.7, title = "", group = fib_group, inline = "4"):na f5Lvl = f5Tog?input.float(1, title = "", group = fib_group, inline = "5"):na f1Style = input.string(". . .", title = "", options = ["___","- - -",". . ."], group = fib_group, inline = "1") f2Style = input.string("- - -", title = "", options = ["___","- - -",". . ."], group = fib_group, inline = "2") f3Style = input.string("___", title = "", options = ["___","- - -",". . ."], group = fib_group, inline = "3") f4Style = input.string("- - -", title = "", options = ["___","- - -",". . ."], group = fib_group, inline = "4") f5Style = input.string(". . .", title = "", options = ["___","- - -",". . ."], group = fib_group, inline = "5") f1BullColor = input.color(#089981, title = "", group = fib_group, inline = "1") f2BullColor = input.color(#089981, title = "", group = fib_group, inline = "2") f3BullColor = input.color(#089981, title = "", group = fib_group, inline = "3") f4BullColor = input.color(#089981, title = "", group = fib_group, inline = "4") f5BullColor = input.color(#089981, title = "", group = fib_group, inline = "5") f1BearColor = input.color(#f23645, title = "", group = fib_group, inline = "1") f2BearColor = input.color(#f23645, title = "", group = fib_group, inline = "2") f3BearColor = input.color(#f23645, title = "", group = fib_group, inline = "3") f4BearColor = input.color(#f23645, title = "", group = fib_group, inline = "4") f5BearColor = input.color(#f23645, title = "", group = fib_group, inline = "5") structureColor = input.color(color.gray, title = "Structure Color", group = "Style") bullZoneColor = input.color(color.new(#089981,80), title = "Bullish Zone Color", group = "Style") bearZoneColor = input.color(color.new(#f23645,80), title = "Bearish Zone Color", group = "Style") //---------------------------------------------------------------------------------------------------------------------} //UDTs //---------------------------------------------------------------------------------------------------------------------{ type pb float price int bar type fs line f1 line f2 line f3 line f4 line f5 //---------------------------------------------------------------------------------------------------------------------} //Functions //---------------------------------------------------------------------------------------------------------------------{ linestyle(_input) => _input == "___"?line.style_solid: _input == "- - -"?line.style_dashed: _input == ". . ."?line.style_dotted: na get_fibs(_top,_bot,_dir,_fl1,_fl2,_fl3,_fl4,_fl5) => rng = _dir == 1 ? _top - _bot : _bot - _top anchor = _dir == 1 ? _bot : _top fib1 = anchor + (rng*_fl1) fib2 = anchor + (rng*_fl2) fib3 = anchor + (rng*_fl3) fib4 = anchor + (rng*_fl4) fib5 = anchor + (rng*_fl5) [fib1,fib2,fib3,fib4,fib5] //---------------------------------------------------------------------------------------------------------------------} //Calcs //---------------------------------------------------------------------------------------------------------------------{ var int dir = 0 float top = na float btm = na var pb t = pb.new(na,na) var pb b = pb.new(na,na) var bool bos_up_check = false var bool bos_down_check = false var string last_bot = "NA" var string last_top = "NA" var zones = array.new_box() var lvls = array.new<fs>() var box live_zone = na var fs live_lvls = fs.new(na,na,na,na,na) upper = ta.highest(structureLen) lower = ta.lowest(structureLen) if dir >= 0 and high[structureLen] > upper dir := -1 top := high[structureLen] if dir <= 0 and low[structureLen] < lower dir := 1 btm := low[structureLen] top_conf = not na(top) bot_conf = not na(btm) int structure_confirmed = 0 if top_conf t := pb.new(top,bar_index-structureLen) bos_up_check := true if structureTog structure_confirmed := 1 if bot_conf b := pb.new(btm,bar_index-structureLen) bos_down_check := true if structureTog structure_confirmed := -1 plotshape(structure_confirmed>0?true:false, style = shape.circle, title = "Swing High", location = location.abovebar, offset = -structureLen, color = structureColor) plotshape(structure_confirmed<0?true:false, style = shape.circle, title = "Swing Low", location = location.belowbar, offset = -structureLen, color = structureColor) HH = top_conf and t.price > t.price[1] HL = bot_conf and b.price > b.price[1] LH = top_conf and t.price < t.price[1] LL = bot_conf and b.price < b.price[1] last_top := HH?"HH":LH?"LH":last_top last_bot := LL?"LL":HL?"HL":last_bot var int t_dir = 0 choch_up = ta.crossover(close,t.price) and (high == upper) and t_dir <= 0 choch_down = ta.crossunder(close,b.price) and (low == lower) and t_dir >= 0 if choch_up t_dir := 1 if choch_down t_dir := -1 bos_up = ta.crossover(close,t.price) and bos_up_check and t_dir >= 0 bos_down = ta.crossunder(close,b.price) and bos_down_check and t_dir <= 0 mss_up = bos_up or choch_up mss_down = bos_down or choch_down if mss_up bos_up_check := false if zoneFilter != "Bearish Only" _top = t.price _bot = dir == -1 ? lower : dir == 1 ? b.price : 0 [fib1,fib2,fib3,fib4,fib5] = get_fibs(_top,_bot,1,f1Lvl,f2Lvl,f3Lvl,f4Lvl,f5Lvl) live_zone := box.new(t.bar,_top,bar_index,_bot,bgcolor = bullZoneColor,border_color = na) live_lvls := fs.new( line.new(t.bar,(f1Tog?fib1:na),bar_index,fib1, color = f1BullColor, style = linestyle(f1Style)), line.new(t.bar,(f2Tog?fib2:na),bar_index,fib2, color = f2BullColor, style = linestyle(f2Style)), line.new(t.bar,(f3Tog?fib3:na),bar_index,fib3, color = f3BullColor, style = linestyle(f3Style)), line.new(t.bar,(f4Tog?fib4:na),bar_index,fib4, color = f4BullColor, style = linestyle(f4Style)), line.new(t.bar,(f5Tog?fib5:na),bar_index,fib5, color = f5BullColor, style = linestyle(f5Style)) ) zones.push(live_zone) lvls.push(live_lvls) if mss_down bos_down_check := false if zoneFilter != "Bullish Only" _top = dir == 1 ? upper : dir == -1 ? t.price : 0 _bot = b.price [fib1,fib2,fib3,fib4,fib5] = get_fibs(_top,_bot,-1,f1Lvl,f2Lvl,f3Lvl,f4Lvl,f5Lvl) live_zone := box.new(b.bar,_top,bar_index,_bot,bgcolor = bearZoneColor,border_color = na) live_lvls := fs.new( line.new(b.bar,(f1Tog?fib1:na),bar_index,fib1, color = f1BearColor, style = linestyle(f1Style)), line.new(b.bar,(f2Tog?fib2:na),bar_index,fib2, color = f2BearColor, style = linestyle(f2Style)), line.new(b.bar,(f3Tog?fib3:na),bar_index,fib3, color = f3BearColor, style = linestyle(f3Style)), line.new(b.bar,(f4Tog?fib4:na),bar_index,fib4, color = f4BearColor, style = linestyle(f4Style)), line.new(b.bar,(f5Tog?fib5:na),bar_index,fib5, color = f5BearColor, style = linestyle(f5Style)) ) zones.push(live_zone) lvls.push(live_lvls) if zones.size() > zoneDispNum and not dispAll zones.shift().delete() ln = lvls.shift() ln.f1.delete() ln.f2.delete() ln.f3.delete() ln.f4.delete() ln.f5.delete() if lvls.size() > 1 and noOverlap last_zone = zones.get(zones.size()-2) last_lvl = lvls.get(lvls.size()-2) if last_lvl.f1.get_x2() > live_lvls.f1.get_x1() last_lvl.f1.set_x2(math.max(live_zone.get_left(),last_zone.get_right())) last_lvl.f2.set_x2(math.max(live_zone.get_left(),last_zone.get_right())) last_lvl.f3.set_x2(math.max(live_zone.get_left(),last_zone.get_right())) last_lvl.f4.set_x2(math.max(live_zone.get_left(),last_zone.get_right())) last_lvl.f5.set_x2(math.max(live_zone.get_left(),last_zone.get_right())) live_lvls.f1.set_x1(math.max(live_zone.get_left(),last_zone.get_right())) live_lvls.f2.set_x1(math.max(live_zone.get_left(),last_zone.get_right())) live_lvls.f3.set_x1(math.max(live_zone.get_left(),last_zone.get_right())) live_lvls.f4.set_x1(math.max(live_zone.get_left(),last_zone.get_right())) live_lvls.f5.set_x1(math.max(live_zone.get_left(),last_zone.get_right())) live_lvls.f1.set_x2(bar_index) live_lvls.f2.set_x2(bar_index) live_lvls.f3.set_x2(bar_index) live_lvls.f4.set_x2(bar_index) live_lvls.f5.set_x2(bar_index) //---------------------------------------------------------------------------------------------------------------------}
프로필 이미지
삼손감자
2024-08-07
1092
글번호 182318
지표