커뮤니티

예스랭귀지 Q&A

글쓰기

와글이 님에 의해서 삭제되었습니다.

프로필 이미지
와글이
2023-09-08
321
글번호 172279
시스템
답변완료

수식요청

안녕하세요 수식요청드림니다 매수 가격이 전일종가 위에 있고 이평 60 선 위에있고 볼밴 중심선 위에있고 Macd 오실레이터 양선일때 매도 매수반대
프로필 이미지
아트정
2023-09-08
908
글번호 172268
시스템

그리워 님에 의해서 삭제되었습니다.

프로필 이미지
그리워
2023-09-08
1
글번호 172260
지표
답변완료

지표구현문의드립니다

죄송합니다 제가 이름을 착각했었네요.. 아래 코드는 트레이딩뷰에 있는 지표중에 Relative Trend Index 라는 지표의 코드입니다. 혹시 예스트레이더로 지표의 구현이 가능할까요? // 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/ // ? Zeiierman //@version=5 indicator('Relative Trend Index (RTI) by Zeiierman', shorttitle= "RTI", overlay=false, precision=0) // Inputs { trend_data_count = input.int(100, step=4, minval=10, title="Trend Length", inline = "RT", group="Relative Trend Index [RTI]", tooltip="This variable determines the number of data points used in the calculation. In short: A high value returns the long-term trend and a low value returns the short-term trend. If a user increases the 'Trend Length', the trend will take into account a larger number of data points. This makes the trends smoother and more resistant to sudden changes in the market, as they're based on a broader set of data. It also makes the trends slower to react to recent changes, as they're diluted by older data. On the other hand, if a user decreases the 'Trend Length', the trend will take into account fewer data points. This could make the trends more responsive to recent market changes, as they're based on a narrower set of data. It also makes the trends more susceptible to noise and rapid fluctuations, as each new piece of data has a greater impact.") trend_sensitivity_percentage = input.int(95, step=1,minval=50, maxval=98,title='Sensitivity????', inline = "RT1", group="Relative Trend Index [RTI]", tooltip="This variable determines the specific indices in the sorted trend arrays that are used for the upper and lower trend. It's used as a percentage of the 'Trend length'. If a user increases the 'Sensitivity', the trend will be based on higher and lower positions in the sorted arrays, respectively. This makes the trend less sensitive. Conversely, if a user decreases the 'Sensitivity', the trend will be based on positions closer to the middle of the sorted arrays. This makes the trend more sensitive.") signal_length = input.int(20, step=1,minval=1, maxval=200,title='Signal Length', inline = "", group="Signal Line", tooltip="Set the Ma period.") ob = input.float(80, step=1, minval=0, maxval=100, title="", inline = "obos", group="Overbought/Oversold", tooltip="") os = input.float(20,step=1, minval=0, maxval=100,title="", inline = "obos", group="Overbought/Oversold", tooltip="Set the OB/OS levels.") //~~~~~~~~~~~~~~~~~~~~~~~} // Relative Trend Index Calculation { upper_trend = close + ta.stdev(close, 2) lower_trend = close - ta.stdev(close, 2) upper_array = array.new(0) lower_array = array.new(0) for i = 0 to trend_data_count - 1 upper_array.push(upper_trend[i]) lower_array.push(lower_trend[i]) upper_array.sort() lower_array.sort() upper_index = math.round(trend_sensitivity_percentage / 100 * trend_data_count) - 1 lower_index = math.round((100 - trend_sensitivity_percentage) / 100 * trend_data_count) - 1 UpperTrend = upper_array.get(upper_index) LowerTrend = lower_array.get(lower_index) RelativeTrendIndex = ((close - LowerTrend) / (UpperTrend - LowerTrend))*100 //~~~~~~~~~~~~~~~~~~~~~~~} // Plots { MA_RelativeTrendIndex = ta.ema(RelativeTrendIndex,signal_length) RT = plot(RelativeTrendIndex, 'Relative Trend Index (RTI)', color=color.new(color.teal, 0)) plot(MA_RelativeTrendIndex, 'Ma Relative Trend Index', color=color.new(#00bcd4, 0)) //~~~~~~~~~~~~~~~~~~~~~~~} // Line plots { mid = hline(50, 'Mid', color=#606060, linestyle=hline.style_dashed) overbought = hline(ob, 'Overbought', color=#606060, linestyle=hline.style_dashed) oversold = hline(os, 'Oversold', color=#606060, linestyle=hline.style_dashed) //~~~~~~~~~~~~~~~~~~~~~~~} // BG Fill { fill(overbought, oversold, color=color.new(color.teal, 90), title='Background') //~~~~~~~~~~~~~~~~~~~~~~~} // Overbought/Oversold Gradient Fill { midLinePlot = plot(50, color = na, editable = false, display = display.none) fill(RT, midLinePlot, 100, ob, top_color = color.new(color.green, 0), bottom_color = color.new(color.green, 100), title = "Overbought Gradient Fill") fill(RT, midLinePlot, os, 0, top_color = color.new(color.red, 100), bottom_color = color.new(color.red, 0), title = "Oversold Gradient Fill") //~~~~~~~~~~~~~~~~~~~~~~~} //Alerts { RT_OB_Over = ta.crossover(RelativeTrendIndex,ob) RT_OB_Under = ta.crossunder(RelativeTrendIndex,ob) RT_OS_Over = ta.crossover(RelativeTrendIndex,os) RT_OS_Under = ta.crossunder(RelativeTrendIndex,os) RT_Mid_Over = ta.crossover(RelativeTrendIndex,50) RT_Mid_Under = ta.crossunder(RelativeTrendIndex,50) RT_MA_Over = ta.crossover(RelativeTrendIndex,MA_RelativeTrendIndex) RT_MA_Under = ta.crossunder(RelativeTrendIndex,MA_RelativeTrendIndex) alertcondition(RT_OB_Over, title = "RTI Crossover OB", message = "RTI Crossover OB") alertcondition(RT_OB_Under, title = "RTI Crossunder OB", message = "RTI Crossunder OB") alertcondition(RT_OS_Over, title = "RTI Crossover OS", message = "RTI Crossover OS") alertcondition(RT_OS_Under, title = "RTI Crossunder OS", message = "RTI Crossunder OS") alertcondition(RT_Mid_Over, title = "RTI Crossover 50", message = "RTI Crossover 50") alertcondition(RT_Mid_Under,title = "RTI Crossunder 50", message = "RTI Crossunder 50") alertcondition(RT_MA_Over, title = "RTI Crossover Ma", message = "RTI Crossover Ma") alertcondition(RT_MA_Under, title = "RTI Crossunder Ma", message = "RTI Crossunder Ma")
프로필 이미지
잘하고프다
2023-09-08
1481
글번호 172259
지표
답변완료

5이평,20이평돌파라인

키움수식 M1=ma(c,5); M2=ma(c,20); MC=crossup(M1,M2); valuewhen(1,crossup(M1,M2),c) 예스랭귀지로 변환 부탁드립니다.
프로필 이미지
밑빠진독
2023-09-08
897
글번호 172258
지표
답변완료

문의

input : tPeriod(10),n(5),flat(0.02); var : a1(0),a2(False),a3(0),a4(False),a5(0); a1 = Ema(Ema(Ema(c,tPeriod),tPeriod),tPeriod); a2 = a1[n]/a1*100<100-flat; a4 = a1[n]/a1*100>100+flat; Plot1(a1,"수식1",GRAY); if a2 == true Then plot2(a1,"수식2",RED); if a4 == true Then plot3(a1,"수식3",BLUE); 강조식으로 부탁드립니다
프로필 이미지
레전드
2023-09-08
974
글번호 172257
지표
답변완료

수식관련문의 드립니다.

안녕하세요? 매번 도움받아 감사드립니다! 정말 복 많이 받으실꺼에요. 며칠전에 글올리고 수정하여 다시 문의 드립니다. > 매수목표가 A= 전일 저가>전전일 저가 B= 전일 거래량<3일 평균거래량 C= 전일종가> 20일 이평선 D= [당일시가+(전일고가-전일시가)*0.5]>당일 장중 가격 E= 전일종가와 20MA간 이격도가 105 초과시 시가매수 또는 지속보유 필터합성조건-> [{(A) OR (B)} AND (C) AND (D)] OR (E) 매도목표가 주식매수상태에서 E 조건 만족시 지속보유 E조건 만족 안할시 익일 시가매도. 수식부탁드립니다. 감사합니다.
프로필 이미지
강건
2023-09-08
1174
글번호 172256
시스템
답변완료

도움부탁 드립니다

안녕하세요 아래수식에서 그린색을 없애고 전환선 상방 방향은 적색,하방방향은 청색으로만 다시한번 수정 부탁드립니다. green 만 지우니까 안되네요... var1 = (highest(H,9)+lowest(L,9))/2; Plot1(var1,"전환선",IFF(var1>var1[1],Red,IFf(var1<var1[1],Blue,Green)));
프로필 이미지
라몬
2023-09-08
1072
글번호 172255
지표
답변완료

문의

특정시간에 라인을 긋는식인데, 여기서 라인이 검정색으로 고정이 되던데, 색상을 바꿀수 있게 할수 있나요? 또, 선긋기의 선굵기도 설정할수 있나요? if stime == 110000 or (stime > 110000 and stime[1] < 110000) Then{ TL_New(sdate,stime,9999999,sdate,stime,0); PlaySound("C:₩예스트레이더₩data₩Sound₩alert.wav"); }
프로필 이미지
만복이
2023-09-08
835
글번호 172254
지표

만복이 님에 의해서 삭제되었습니다.

프로필 이미지
만복이
2023-09-08
1
글번호 172253
지표