커뮤니티

예스랭귀지 Q&A

글쓰기

살빼고싶다 님에 의해서 삭제되었습니다.

프로필 이미지
살빼고싶다
2024-05-08
107
글번호 179266
검색
답변완료

수고많으십니다. 수식 맞는지 질문드립니다.

수고많으십니다. if문에서 &&와 ||를 같이 쓰고 싶습니다. if (jin1 < 0 && jin2 > 0) || (jin1 == 0 && jin2 == 0 ) { Main.PlaySound("C:₩₩EugeneYesTrader₩₩Data₩₩Sound₩₩accept.wav"); } 위에 수식이 맞는지 궁금합니다. 만약 else if 문으로 작성한다면 다음이 맞는지 궁금합니다. if ((jin1 < 0 && jin2 > 0) { Main.PlaySound("C:₩₩EugeneYesTrader₩₩Data₩₩Sound₩₩accept.wav"); else if (jin1 == 0 && jin2 == 0 ) Main.PlaySound("C:₩₩EugeneYesTrader₩₩Data₩₩Sound₩₩reject.wav"); } 바쁘신데 감사합니다.
프로필 이미지
멋진감자
2024-05-08
785
글번호 179265
지표
답변완료

종목검색식 부탁드려요

* 3가지 검색식 문의드립니다. 1. 매수가 매도를 돌파할때의 종목을 예스트레이더 종목검색식 부탁드립니다.(일봉기준) (수식1) 매수 AA=date/100%100; 대금=(H+O+L+C)/4*V/100000000; A=IF(C>O,대금,0); B=SUM(A); D=ValueWhen(1,AA(1)!=AA,B(1)); B-D; (수식2) 매도 AA=date/100%100; 대금=(H+O+L+C)/4*V/100000000; A=IF(C<O,대금,0); B=SUM(A); D=ValueWhen(1,AA(1)!=AA,B(1)); B-D; 2. 기준선 0선위에 있는 종목을 예스트레이더 검색식으로 부탁드립니다. C - C (기간) 지표변수 기간: 11 3. 매수가 매도를 돌파할때 예스트레이더 종목 검색식 부탁드립니다.(분, 일,주,월) (수식1) 매수 if( (high==low), 0, volume*(close-low)/(high-low)) (수식2) 매도 if( (high==low), 0, volume*(high-close)/(high-low))
프로필 이미지
일지매7
2024-05-09
880
글번호 179264
종목검색
답변완료

문의드립니다.

파라볼릭 매매에서 매수신호후 진입가에서 10틱 밀리면 즉시 청산한 후 반등이 나와 매수신호가 나온 진입가를 돌파하여 10틱 이상 올라가면 즉시 재매수 신호가 나오게 하고 싶습니다. 이때 매도신호로 바뀌기 전까지 처음 매수신호가 나온 봉의 종가인 진입가를 기준으로 조건만족시 매수신호가 반복해서 나오길 원합니다. (파라볼릭 매수신호가 유지되는 중간에 1) 50틱 상승후 고점대비 30틱 하락시, 2) 첫 매수신호 나온 후 50개봉이 경과하는 2가지 상황이 되면 위의 진입가 기준 재진입이 중단되게도 부탁드립니다) 매도신호는 그 반대입니다. 늘 노고에 감사드립니다~
프로필 이미지
카르마다
2024-05-09
945
글번호 179262
시스템
답변완료

문의

#{ Heikin Ashi PaintBarStudy # Heikin-Ashi technique for visualization # of trend } inputs: UpColor( RGB(0,255,0)),DnColor( RGB(255,0,0) ); vars: haClose(0),haOpen(0),haHigh(0),haLow(0),color(0); if index == 1 then begin haOpen = open; haClose = (O+H+L+C)/4; haHigh = MaxList( high, haOpen, haClose); haLow = MinList( low, haOpen,haClose); end; if index >= 1 then begin haClose = (O+H+L+C)/4; haOpen = (haOpen [1] + haClose [1])/2 ; haHigh = MaxList(High, haOpen, haClose) ; haLow = MinList(Low, haOpen, haClose) ; if haClose > haOpen then color = DnColor; else color = UpColor; PlotPaintBar(haOpen,haClose,"Ignore-ME-",color); #SetPlotWidth(2,3); #SetPlotColor(1,color); end; 데이타2에 적용하도록 부탁드립니다
프로필 이미지
레전드
2024-05-08
797
글번호 179261
강조
답변완료

수식 변환 가능한지 문의 드립니다.

키움증권의 지표 수식을 예스 랭귀지 검색 수식으로 변환 가능한지 문의드립니다. 키움 증권 수식은 다음과 같습니다. 수식1 rsi(period1) 수식2 a=eavg(rsi(period1),period2); avg(ma(a,1,단순),p)+d1*stdev(ma(a,1,단순),p) 수식3 a=eavg(rsi(period1),period2); avg(ma(a,1,단순),p) 수식4 a=eavg(rsi(period1),period2); avg(ma(a,1,단순),p)-d1*stdev(ma(a,1,단순),p)
프로필 이미지
d2332
2024-05-08
814
글번호 179260
종목검색
답변완료

개장시 매수

안녕하세요? 아래 수식으로 9시에 진입했는데 첨부 처럼 9시 6초~30초사이에 주문이 됩니다. 이유가 무엇인가요? input : StartTime(90000),EndTime(90001); If MarketPosition == 0 and ((NextBarSdate != sDate and NextBarStime >= StartTime) or (NextBarSdate == sDate and NextBarStime >= StartTime and sTime < StartTime)) Then Buy("b",AtMarket);
프로필 이미지
코퍼
2024-05-08
824
글번호 179257
시스템
답변완료

ALMA Smoothed Gaussian Moving Average 수식 변경 요청 합니다

항상 감사 드립니다. 아래의 수식은 트레이딩뷰 사이트 에서 사용되는 수식 입니다. 이 수식을 예스트레이더에서 사용 할수 있도록 변경 부탁드립니다.. // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // &#169; profitprotrading //@version=5 indicator("ALMA Smoothed Gaussian Moving Average", shorttitle = "ASGMA", overlay=true) //ALMA Smoothing src = input(close, title='Source', group = "ALMA Smoothing") smooth = input.int(1, title='Smoothing', minval=1, group = "ALMA Smoothing") length1 = input.int(25, title='Lookback', minval=1, group = "ALMA Smoothing") offset = 0.85 sigma1 = 7 pchange = ta.change(src, smooth) / src * 100 avpchange = ta.alma(pchange, length1, offset, sigma1) //RSI rsi = ta.rsi(close, 14) rsiL = rsi > rsi[1] rsiS = rsi < rsi[1] //Chande Momentum length11 = 9 src1 = close momm = ta.change(src1) f1(m) => m >= 0.0 ? m : 0.0 f2(m) => m >= 0.0 ? 0.0 : -m m1 = f1(momm) m2 = f2(momm) sm1 = math.sum(m1, length11) sm2 = math.sum(m2, length11) percent(nom, div) => 100 * nom / div chandeMO = percent(sm1-sm2, sm1+sm2) cL = chandeMO > chandeMO[1] cS = chandeMO < chandeMO[1] //GAMA credit to author: &#169; LeafAlgo https://www.tradingview.com/v/th7NZUPM/ length = input.int(14, minval=1, title="Length", group = "Gaussian Adaptive Moving Average") adaptive = input.bool(true, title="Adaptive Parameters", group = "Gaussian Adaptive Moving Average") volatilityPeriod = input.int(20, minval=1, title="Volatility Period", group = "Gaussian Adaptive Moving Average") // Calculate Gaussian Moving Average gma = 0.0 sumOfWeights = 0.0 sigma = adaptive ? ta.stdev(close, volatilityPeriod) : input.float(1.0, minval=0.1, title="Standard Deviation", group = "Gaussian Adaptive Moving Average") for i = 0 to length - 1 weight = math.exp(-math.pow(((i - (length - 1)) / (2 * sigma)), 2) / 2) value = ta.highest(avpchange, i + 1) + ta.lowest(avpchange, i + 1) gma := gma + (value * weight) sumOfWeights := sumOfWeights + weight gma := (gma / sumOfWeights) / 2 gma:= ta.ema(gma, 7) gmaColor = avpchange >= gma ? color.rgb(0, 161, 5) : color.rgb(215, 0, 0) // Color bars based on signals until the next signal occurs var int currentSignal = 0 currentSignal := avpchange >= gma ? 1 : -1//le_final ? -1 : currentSignal var color barColor = na if currentSignal == 1 barColor := color.rgb(0, 186, 6) else if currentSignal == -1 barColor := color.rgb(176, 0, 0) barcolor(barColor) plotcandle(open, high, low, close, "Bar Color", barColor, barColor, bordercolor = barColor) //Plotting ema = ta.ema(close, 7) plot(ema, color=gmaColor, linewidth=3, title="Gaussian Moving Average") plotshape(ta.crossover(avpchange,gma) and barstate.isconfirmed, "Buy Signal", text = "B", textcolor = color.white, style = shape.labelup, location = location.belowbar, color = color.rgb(0, 161, 5), offset = -1) plotshape(ta.crossunder(avpchange,gma) and barstate.isconfirmed, "Sell Signal", text = "S", textcolor = color.white, style = shape.labeldown, location = location.abovebar, color = color.rgb(215, 0, 0), offset = -1) bgcolor(ta.crossover(avpchange,gma) and barstate.isconfirmed and rsiL and cL ? color.rgb(0, 162, 5, 85): na, offset = -1) bgcolor(ta.crossunder(avpchange,gma) and barstate.isconfirmed and rsiS and cS ? color.rgb(207, 0, 0, 85): na, offset = -1) barcolor(gmaColor) alertcondition(ta.crossover(avpchange,gma) and barstate.isconfirmed, title="Buy Signal", message="Go Long! {{exchange}}:{{ticker}}") alertcondition(ta.crossunder(avpchange,gma) and barstate.isconfirmed, title="Sell Signal", message="Go Short! {{exchange}}:{{ticker}}")
프로필 이미지
유경완
2024-05-08
1306
글번호 179256
강조
답변완료

지표 수식 부탁드립니다.

안녕하세요? 도움주셔셔 항상 감사드립니다. 일봉의 볼린져밴드(10,2) 상단선이 일봉의 볼린져밴드(20/2) 상단선을 골든크로스하는 라인을 일봉과 분봉에 각각 하나의 라인으로 표시하고 싶습니다. 도움 부탁드립니다.
프로필 이미지
onlypsn
2024-05-08
965
글번호 179255
지표
답변완료

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

한결같은 도와주심에 감사드립니다. _(__)_ 아래의 수식을 돌파하는 기준봉이 나오는 중 1분봉상 완전정배열이 10회이상 발생할 때 종목 검색을 부탁드립니다. 두번째는 5일선을 돌파하는 과정에서 분봉상 10회 이상의 완전정배열이 나올 때 종목검색을 부탁드립니다. 완전정배열은 480<240<120<60<20<5 예시차트 첨부합니다. var : 당월시가(0),전월시가(0); var : 당월종가(0),전월종가(0); if sDate > sDate[1]+30 Then { 당월시가 = O; 전월시가 = 당월시가[1]; 전월종가 = 당월종가[1]; } 당월종가 = C; if 전월시가 > 0 Then { var1 = ((전월시가+전월종가)/2 + 당월시가)/2; if CrossUp(C,var1) Then Find(1); }
프로필 이미지
한칼부르스
2024-05-08
1014
글번호 179250
종목검색