커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

수식문의

안녕하세요 관리자님 우선 늘 감사 드립니다. 제가 궁금한 것은 Buy 주문이 들어가면 Sell이 실행안되고 매수 청산으로만 실행되게 하고 Sell 주문이 들어가면 Buy 주문이 실행안되고 매도 청산으로만 실행되어 청산되게 하고 싶습니다. 이렇게 할려면 어떻게 해야되는지 문의 드립니다. 미리 답변에 감사 드립니다. If T == 1 and (HRwave3 >=-100) and Crossup(HRwave2, 0) Then { Buy(); } If T == -1 and (HRwave3 <=100) and Crossup(HRwave1, 0) Then { Sell(); } if T == 1 and CrossDown(C,(valarr[2]+valArr[3])/2) Then ExitLong(); if T == -1 and CrossUp(C,(valarr[2]+valArr[3])/2) Then ExitShort();
프로필 이미지
blueo
2020-10-07
337
글번호 142906
시스템
답변완료

안녕하세요. 수식좀 부탁드립니다!

15분봉에서 어떤 값에 도달했을때 그 순간에 그 가격대에 가로로 선을 긋는 수식을 찾고있는데요, 매수총잔량과 매도총잔량이 0에 도달하는 순간 그 가격에 가로로 선을 그을수 있을까요? 1. 매수총잔량이 1200 이고 매도총잔량이 900 인 상황에서 3초뒤에 매수총잔량이 1500 이고 매도 총잔량이 1500 인 그 순간에 도달해있는 가격에 가로로 선을 그을수 있을까요? 반대로 시간이 흘러 9초 뒤에 매도총잔량이 2500 이고 매수총잔량이 1500 이었다가 15초뒤에 매도총잔량이 3000 이고 매수 총잔량이 3000 일때 그 순간에 있는 가격에 가로로 선을 긋는다. (그게 아니라면 정확하게 0 이 아니더라도 임의의 값 이하일때 가로로 선을 긋는다. 예) 매수총잔량-매도총잔량= 0 이상 100 이하) 2. 정확히 두 차이가 0이 아니더라도 매수총잔량이 매도총잔량을 넘어서는 순간에 있는 가격에 가로로 선을 그을수 있을까요? 반대에 상황도 마찬가지로요. 3. 15분봉 안에 저런현상들이 일어난 곳마다 가로로 선이 실시간으로 그어졌으면 합니다. 15분봉이 완성되고 그어지는것이 아니라요. 4. 만일 실시간 호가의 변화를 15분봉에 실시간으로 반영 할수 없다면 1초 주기로 분석해서 표시할순 없을까요? 5. 그리고 그 선들이 장이 끝날때 까지 계속 남아있었으면 합니다. 항상 감사드립니다.
프로필 이미지
안녕하세요
2020-10-06
415
글번호 142905
지표

요타 님에 의해서 삭제되었습니다.

프로필 이미지
요타
2020-10-06
7
글번호 142904
강조
답변완료

부탁 드립니다.

도움에 늘 깊이 감사 드립니다. 원본수식을 타주기(분봉용)으로 작성 해본 것입니다. 그러나 미숙한 지식탓에 어딘가에 정상적이지 않아 보여 수정 부탁 드리고자 합니다. 미리 경배로 감사 인사 올립니다. 원본수식). Inputs : Period(60),sig(5); Vars: Noise(0), Signal(0), Diff(0), efRatio(0), Smooth(1), Fastest(0.6667), Slowest(0.0645), AdaptMA(0); Diff = AbsValue(c - c[1]); IF CurrentBar <= Period Then AdaptMA = c; IF CurrentBar > Period Then Begin Signal = AbsValue(c - c[Period]); Noise = accumN(Diff, Period); efRatio = Signal / Noise; Smooth = Power(efRatio * (Fastest - Slowest) + Slowest, 2); AdaptMA = AdaptMA[1] + Smooth * (c - AdaptMA[1]); End; var1=c-adaptma; var2=ma(var1,sig); *타주기(분봉용) 수식 input : ntime(30),Period(60),sig(5); Vars: Noise(0), Signal(0), Diff(0), efRatio(0), Smooth(1), Fastest(0.6667), Slowest(0.0645), AdaptMA(0); var : S1(0),D1(0),TM(0),TF(0),cnt(0),sum(0),mav(0); Array : C1[100](0); if Bdate != Bdate[1] Then { S1 = TimeToMinutes(stime); D1 = sdate; } if D1 > 0 then { if sdate == D1 Then TM = TimeToMinutes(stime)-S1; Else TM = TimeToMinutes(stime)+1440-S1; TF = TM%ntime; if Bdate != Bdate[1] or (Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or (Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or (Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then { for cnt = 1 to 99 { C1[cnt] = C1[cnt-1][1]; } } C1[0] = C; Diff = AbsValue(C1[0] - c1[1]); IF CurrentBar <= Period Then AdaptMA = C1[0]; IF CurrentBar > Period Then Begin Signal = AbsValue(C1[0] - c1[Period]); Noise = accumN(Diff, Period); efRatio = Signal / Noise; Smooth = Power(efRatio * (Fastest - Slowest) + Slowest, 2); AdaptMA = AdaptMA[1] + Smooth * (C1[0] - AdaptMA[1]); End; var1=C1[0]-adaptma; var2=ma(var1,sig);}
프로필 이미지
뮬리
2020-10-06
678
글번호 142903
지표
답변완료

지표식 부탁드립니다.

다음 수식을 지표전환부탁드립니다. 수식1 t2=tema(c,period); if(c>t2,max(c,o),0) 수식2 t2=tema(c,period); if(c<t2,max(c,o),0) 수식3 t1=tema(c,20); t2=tema(c,period); if((low<t2 && high>t2) or (t1>t2 && high<t2),max(c,o),min(c,o)) 수식4 t1=tema(c,20); t2=tema(c,period); z=if((t1<t2 && high>t2 && low<t2) or (t1<t2 && low>t2),max(c,o), if(t1<t2 && high<t2,min(c,o),0)) period 10
프로필 이미지
이대표
2020-10-06
684
글번호 142902
지표
답변완료

함수요청

안녕하세요? 아래의 전략에 대하여 스크립트 작성 요청드립니다. 기본종목: 나스닥 5분봉 참조종목1: 다우 5분봉 참조종목2: 에스앤피 5분봉 나스닥, 다우, 에스앤피가 전일종가대비 모두 상승중이며 나스닥이 전일 종가대비 1% 상승하고 (나스닥 상승률 > 다우와 에스앤피 상승률)을 당일 처음 완성했을 때 익봉 시가에 매수 진입 나스닥, 다우, 에스앤피가 전일종가대비 모두 하락중이며 나스닥이 전일 종가대비 1% 하락하고 (나스닥 하락률 > 다우와 에스앤피 하락률)을 당일 처음 완성했을 때 익봉 시가에 매도 진입 당일 거래중 매수나 매도든 1번씩만 진입을 하고자 합니다. 즉 당일 최대 2번까지(매수진입 한번, 매도진입 한번)만 주문을 생성하고 싶습니다. 일중거래를 하고자합니다.(당일 종가 혹은 익일 시가에 청산)
프로필 이미지
흰둥이아빠
2020-10-06
695
글번호 142901
시스템
답변완료

지표식 부탁 드립니다.

안녕하세요,수고 많으십니다. 특정일(20200925)지정시간(113000)봉의 중심선의 수평선을 표시하고 싶습니다. 예)를 들면 지정한 일자의 지정시간봉 중심선이 장이 지속되는 현재시간까지 수평선으로 나타나게 부탁 합니다. 항상 코로나 조심하시고 건강하시기 바랍니다.감사 합니다.
프로필 이미지
사냥꾼
2020-10-06
659
글번호 142896
지표
답변완료

예스글로벌 차트 중심선 수식

예스글로벌 차트에 당일 중심선을 넣고 싶습니다...수식이나 방법 부탁드립니다...전일고가 전일저가 전일 종가 시가 라인 설정방법도 부탁그립니다...
프로필 이미지
알파메가
2020-10-06
654
글번호 142895
지표
답변완료

수식 문의드립니다.

안녕하세요? 아래의 수식은 키움에서 사용한 수식인데 예스트레이더 분봉차트에 이 수식을 넣어 사용해 매매하고 싶습니다. 부탁드립니다. 감사합니다. valuewhen(1,(highest(h(1),period)<highest(h,period)),((highest(high,Period)+lowest(low,Period))/2)); highest(H, period)-(((highest(H, period)-CL)/5)*2)
프로필 이미지
시돈프리
2020-10-06
622
글번호 142894
지표
답변완료

문의드립니다.

아래수식을 예스로 변환부탁합니다. 어려운부분을 부탁드려 죄송합니다. 시스템신호만 부탁드립니다. periods = input(5, "Relevant Periods to identify OB") threshold = input(0.0, "Min. Percent move to identify OB", step = 0.1) usewicks = input(false, "Use whole range [High/Low] for OB marking?" ) showbull = input(true, "Show latest Bullish Channel?") showbear = input(true, "Show latest Bearish Channel?") showdocu = input(true, "Show Label for documentation tooltip?") ob_period = periods + 1 absmove = ((abs(close[ob_period] - close[1]))/close[ob_period]) * 100 relmove = absmove >= threshold bullishOB = close[ob_period] < open[ob_period] int upcandles = 0 for i = 1 to periods upcandles := upcandles + (close[i] > open[i]? 1 : 0) OB_bull = bullishOB and (upcandles == (periods)) and relmove OB_bull_high = OB_bull? usewicks? high[ob_period] : open[ob_period] : na OB_bull_low = OB_bull? low[ob_period] : na OB_bull_avg = (OB_bull_high + OB_bull_low)/2 bearishOB = close[ob_period] > open[ob_period] int downcandles = 0 for i = 1 to periods downcandles := downcandles + (close[i] < open[i]? 1 : 0) OB_bear = bearishOB and (downcandles == (periods)) and relmove OB_bear_high = OB_bear? high[ob_period] : na OB_bear_low = OB_bear? usewicks? low[ob_period] : open[ob_period] : na OB_bear_avg = (OB_bear_low + OB_bear_high)/2 plotshape(OB_bull, title="Bullish OB", style = shape.triangleup, color = color.white, size = size.tiny, location = location.belowbar, offset = -ob_period, text = "Bullish OB") bull1 = plot(OB_bull_high, title="Bullish OB open", style = plot.style_linebr, color = color.white, offset = -ob_period, linewidth = 3) bull2 = plot(OB_bull_low, title="Bullish OB low", style = plot.style_linebr, color = color.white, offset = -ob_period, linewidth = 3) fill(bull1, bull2, color=color.white, transp = 0, title = "Bullish OB fill") plotshape(OB_bull_avg, title="Bullish OB Average", style = shape.cross, color = color.white, size = size.normal, location = location.absolute, offset = -ob_period) plotshape(OB_bear, title="Bearish OB", style = shape.triangledown, color = color.blue, size = size.tiny, location = location.abovebar, offset = -ob_period, text = "Bearish OB") bear1 = plot(OB_bear_low, title="Bearish OB open", style = plot.style_linebr, color = color.blue, offset = -ob_period, linewidth = 3) bear2 = plot(OB_bear_high, title="Bearish OB high", style = plot.style_linebr, color = color.blue, offset = -ob_period, linewidth = 3) fill(bear1, bear2, color=color.blue, transp = 0, title = "Bearish OB fill") plotshape(OB_bear_avg, title="Bearish OB Average", style = shape.cross, color = color.blue, size = size.normal, location = location.absolute, offset = -ob_period) var line linebull1 = na // Bullish OB average var line linebull2 = na // Bullish OB open var line linebull3 = na // Bullish OB low var line linebear1 = na // Bearish OB average var line linebear2 = na // Bearish OB high var line linebear3 = na // Bearish OB open if OB_bull and showbull line.delete(linebull1) linebull1 := line.new(x1 = bar_index, y1 = OB_bull_avg, x2 = bar_index - 1, y2 = OB_bull_avg, extend = extend.left, color = color.white, style = line.style_solid, width = 1) line.delete(linebull2) linebull2 := line.new(x1 = bar_index, y1 = OB_bull_high, x2 = bar_index - 1, y2 = OB_bull_high, extend = extend.left, color = color.white, style = line.style_dashed, width = 1) line.delete(linebull3) linebull3 := line.new(x1 = bar_index, y1 = OB_bull_low, x2 = bar_index - 1, y2 = OB_bull_low, extend = extend.left, color = color.white, style = line.style_dashed, width = 1) if OB_bear and showbear line.delete(linebear1) linebear1 := line.new(x1 = bar_index, y1 = OB_bear_avg, x2 = bar_index - 1, y2 = OB_bear_avg, extend = extend.left, color = color.blue, style = line.style_solid, width = 1) line.delete(linebear2) linebear2 := line.new(x1 = bar_index, y1 = OB_bear_high, x2 = bar_index - 1, y2 = OB_bear_high, extend = extend.left, color = color.blue, style = line.style_dashed, width = 1) line.delete(linebear3) linebear3 := line.new(x1 = bar_index, y1 = OB_bear_low, x2 = bar_index - 1, y2 = OB_bear_low, extend = extend.left, color = color.blue, style = line.style_dashed, width = 1) chper = time - time[1] chper := change(chper) > 0 ? chper[1] : chper
프로필 이미지
as8282
2020-10-06
725
글번호 142891
시스템