커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

문의 드립니다

차트위에 다섯가지 택스트를 같은 위치에 쓰고자 합니다 봉이 바뀔때마다 다른 다섯가지의 다른 내용을 번갈아가면서 쓰고자 합니다 방법을 알려 주십시요
프로필 이미지
야할라
2023-08-20
1175
글번호 171669
지표
답변완료

5이평선 고점라인

키움수식 M=ma(c,기간,종류); HH=highest(M,봉수); valuewhen(1,HH>HH(1),HH) 예스수식으로 전환 부탁드립니다.
프로필 이미지
밑빠진독
2023-08-20
1025
글번호 171668
지표

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

프로필 이미지
미서니
2023-08-20
28
글번호 171666
종목검색
답변완료

문의드립니다.

분주기의 5분봉의 1봉전 5이평이랑 참조차트 5분봉의 1봉전 5이평이랑 지표로 가로선으로 표시한 선입니다. 보시면은 분주기차트는 만약 5분1초에 봉이 완성되었을때 틱차트상으로 그다음봉에 선이 표시가 되는데 참조차트로 표시한 지표는 5분1초에 틱차트가 완성이 되면은 해당봉에 바로 표시가 되거든요. 둘다 정확하게 5분일때는 같이 표시가 됩니다. 즉 5분으로 정확하게 틱차트의 봉이 마치는 시간에는 둘다 동일하게 표시가 되는데 5분1초이후에 봉이 마치는 시간에는 참조차트를 이용한 지표가 한봉씩 빨리 나오는 문제가 있어서요. 분주기식이랑 동일한 타이밍에 가로선이 표시되게 하고 싶은데요. 방법이 있을까요? 너무너무 감사합니다.~ if NextBarOpen > 0 Then Plot1(Data2(ma(C,5))); 지난 질문에 답변해 주신 위식은 너무 좋습니다. 저기서 5분전에 시작해서 5분이후로 끝난 틱차트의 봉이 완성이 되었을때 해당봉에 선을 바로 표시하는게 아니라 그 다음봉에 표시를 하고 싶습니다.
프로필 이미지
겐지
2023-08-20
792
글번호 171665
시스템

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

프로필 이미지
hakona
2023-08-20
20
글번호 171664
지표
답변완료

3등분선

분석보조도구에 4분등선은 있는데 3등분선이 없어요 3등분선을 할수있는 지표식 부탁드립니다.
프로필 이미지
혼자뜨는별
2023-08-20
957
글번호 171663
지표
답변완료

스토캐스틱에 대한 문의드립니다.

도움 많이 주셔서 벌써 3개째 지표를 등록했습니다. 4번째로 스토캐스틱에 대해 문의드리려고 합니다. input : 모드("현재"); Input : period1(5), period2(3); #모드 현재 또는 미래일때 표시 if 모드 == "현재" or 모드 == "미래" Then { Plot2((c-Lowest(l,period1))/(Highest(h,period1)-Lowest(l,period1))*100,"%k",rgb(244, 67, 54)); Plot3(ma((c-Lowest(l,period1))/(Highest(h,period1)-Lowest(l,period1))*100,period2),"%D",rgb(244, 67, 54)); } 이게 현재값입니다. 그런데 과거값을 만드려고 하다보니 이런 문제가 있습니다. if 모드 == "과거" Then { if LastBarOnChart == 1 Then Plot5((O-Lowest(l,period1))/(Highest(h,period1)-Lowest(l,period1))*100,"%k과거",rgb(244, 67, 54)); Else Plot5((c-Lowest(l,period1))/(Highest(h,period1)-Lowest(l,period1))*100,"%k과거",rgb(244, 67, 54)); } 종가를 시가로 바꾸면 되는데, 문제는 저가와 고가가 변경되지 않아야 하기 때문에 이 경우 추가적인 정의가 필요합니다. 예를 들면 기간 중 전봉까지의 고가와 현재 시가 중 가장 높은 값을 고가로 하고, 기간 중 전봉까지의 가장 낮은 저가와 시가 중 가장 낮은 것을 저가로 합니다. 단 현재봉에서 움직인 것은 인정하지 않아야 하는데, 이 경우 수식으로 어떻게 표현해야 하는지 알려주시면 감사하겠습니다.
프로필 이미지
이웃집고양이
2023-08-19
878
글번호 171662
지표
답변완료

수식변환 부탁드립니다.

안녕하세요 항상 도움을 주셔서 감사드립니다. 파인스크립 수식을 예스 수식으로 부탁 드려봅니다. 종목검색식.지표식,시스템식 부탁합니다. 매번 부탁을 해서 송구 스럽습니다. 항상 가정에 건승과 건강이 함께 하시길 빕니다. 1. // Inputs // sl_type = input.string('%', options=['%', 'ATR', 'Absolute']) sl_perc = input.float(500, title='% SL') atr_length = input(500, title='ATR Length') atr_mult = input.float(500, title='ATR Mult') sl_absol = input.float(500, title='Absolute SL') // BACKTESTING RANGE // From Date Inputs fromDay = input.int(defval=1, title='From Day', minval=1, maxval=31) fromMonth = input.int(defval=1, title='From Month', minval=1, maxval=12) fromYear = input.int(defval=2016, title='From Year', minval=1970) // To Date Inputs toDay = input.int(defval=1, title='To Day', minval=1, maxval=31) toMonth = input.int(defval=1, title='To Month', minval=1, maxval=12) toYear = input.int(defval=2100, title='To Year', minval=1970) // Calculate start/end date and time condition startDate = timestamp(fromYear, fromMonth, fromDay, 00, 00) finishDate = timestamp(toYear, toMonth, toDay, 00, 00) time_cond = time >= startDate and time <= finishDate // CALCULATIONS // // SL values sl_val = sl_type == 'ATR' ? atr_mult * ta.atr(atr_length) : sl_type == 'Absolute' ? sl_absol : close * sl_perc / 100 // Init Variables pos = 0 trailing_sl = 0.0 // Signals long_signal = nz(pos[1]) != 1 and high > nz(trailing_sl[1]) short_signal = nz(pos[1]) != -1 and low < nz(trailing_sl[1]) // Calculate SL trailing_sl := short_signal ? high + sl_val : long_signal ? low - sl_val : nz(pos[1]) == 1 ? math.max(low - sl_val, nz(trailing_sl[1])) : nz(pos[1]) == -1 ? math.min(high + sl_val, nz(trailing_sl[1])) : nz(trailing_sl[1]) // Position var pos := long_signal ? 1 : short_signal ? -1 : nz(pos[1]) // PLOTINGS // plot(trailing_sl, linewidth=2, color=pos == 1 ? color.green : color.red) // STRATEGY // if time_cond and pos != 1 strategy.entry('long', strategy.long, stop=trailing_sl) if time_cond and pos != -1 strategy.entry('short', strategy.short, stop=trailing_sl) ---------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------- 2. atr_length = input(500) start = input(500) increment = input(500) maximum = input(500) entry_bars = input(500, title='Entry on Nth trend bar') atr = ta.atr(atr_length) atr := na(atr) ? ta.tr : atr psar = 0.0 // PSAR af = 0.0 // Acceleration Factor trend_dir = 0 // Current direction of PSAR ep = 0.0 // Extreme point trend_bars = 0 sar_long_to_short = trend_dir[1] == 1 and close <= psar[1] // PSAR switches from long to short sar_short_to_long = trend_dir[1] == -1 and close >= psar[1] // PSAR switches from short to long trend_change = barstate.isfirst[1] or sar_long_to_short or sar_short_to_long // Calculate trend direction trend_dir := barstate.isfirst[1] and close[1] > open[1] ? 1 : barstate.isfirst[1] and close[1] <= open[1] ? -1 : sar_long_to_short ? -1 : sar_short_to_long ? 1 : nz(trend_dir[1]) trend_bars := sar_long_to_short ? -1 : sar_short_to_long ? 1 : trend_dir == 1 ? nz(trend_bars[1]) + 1 : trend_dir == -1 ? nz(trend_bars[1]) - 1 : nz(trend_bars[1]) // Calculate Acceleration Factor af := trend_change ? start : trend_dir == 1 and high > ep[1] or trend_dir == -1 and low < ep[1] ? math.min(maximum, af[1] + increment) : af[1] // Calculate extreme point ep := trend_change and trend_dir == 1 ? high : trend_change and trend_dir == -1 ? low : trend_dir == 1 ? math.max(ep[1], high) : math.min(ep[1], low) // Calculate PSAR psar := barstate.isfirst[1] and close[1] > open[1] ? low[1] : barstate.isfirst[1] and close[1] <= open[1] ? high[1] : trend_change ? ep[1] : trend_dir == 1 ? psar[1] + af * atr : psar[1] - af * atr plot(psar, style=plot.style_cross, color=trend_dir == 1 ? color.green : color.red, linewidth=2) // Strategy strategy.entry('Long', strategy.long, when=trend_bars == entry_bars) strategy.entry('Short', strategy.short, when=trend_bars == -entry_bars)
프로필 이미지
하루삼프로
2023-08-19
940
글번호 171661
지표
답변완료

부탁드립니다

1, 기본 콜, 보조1콜, 보조2콜, 보조3콜, 보조4콜과 보조5풋, 보조6풋, 보조7풋, 보조8풋, 보조9풋 간에 최고가로 서로 만난 봉이 발생하였을 경우, 기본차트 해당봉에 흰색으로 구현해 주세요, 또 최저가로 서로 만난 봉이 발생하였을 경우에는 노란색으로 구현해 주세요 2. 참조데이터의 개인선물순매수금액의 증감을 45분 간격으로 바탕화면에 표시하고 싶습니다. 전시간대보다 증가하였으면 빨강색으로, 전시간대보다 감소하였으면 파란색으로, 아니면 수직선으로 빨강색과 파란색으로 구현해 주세요 고맙습니다.
프로필 이미지
서태공
2023-08-19
665
글번호 171660
강조
답변완료

문의 드립니다

수고 하십니다 첨부된 차트에서 상단에 있는 조건데이타를 하단식에 중복으로 활용하지 않고 상단에서 작성하여 상단식에서 만들어진▲와 같은 택스트 표시가 상단이 아닌 하단에 표시하고 싶습니다 그리고 원하는 택스트를 만드는 방법은 없나요 가령 회사 로고와 같은 것을 만들어 차트 위에 봍이고 싶습니다 알려 주십시요
프로필 이미지
야할라
2023-08-19
1089
글번호 171659
지표