커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

문의드립니다.

사용자 함수명을 부여하고 사용자 함수 수식을 부탁 드립니다. var : PL(0),PH(0),PR(0),PM(0); C > C[1] and CountIf(C>O,2) == 2 and C[2] < O[2] PL = O[1]; PH = C; PR = PH-PL; PM = PL+(PR/2); // 대양봉 중간 값 여기서 대양봉 중간값 PM을 리턴하는 함수식을 부탁 드립니다. 함수가 PM 값을 리턴할 때 바로 이전 함수 값 , 2번째 이전 값을 리턴할 수 있도록 부탁 드립니다. 그래서 이전 값 비교가 가능하도록 부탁드립니다.
프로필 이미지
종호
2023-07-18
1396
글번호 170734
사용자 함수
답변완료

문의

아래의 지표식을 가지고 시스템을 만들고 싶습니다. 우선 지표식의 내용을 이해할수 있도록 각주좀 달아주시고요 FILTER 이 상승할때 매수 FILTER 이 FILTER 이 하락할때 매도인 식을 만들고 싶습니다. input : f_type("Type1"),rng_qty(5),rng_scale("Average Change"),rng_per(20),smooth_range(true),smooth_per(30),mov_src("Close"); var : rng_size(0),hh(0),ll(0),bb(0),rr(0),rng_filt(0),h_band(0),l_band(0),filt(0); var : upward(0),downward(0),filt_color(0),bar_color(0); rng_size = iff(rng_scale=="Pips" , rng_qty*0.0001 , IFf(rng_scale=="Points" , rng_qty*pointvalue , iff(rng_scale=="% of Price", close*rng_qty/100 , iff(rng_scale=="ATR" , rng_qty*Ema(TrueRange, rng_per) , IFf(rng_scale=="Average Change" , IFf(IsNan(close[1]) == true, rng_qty*EMA(TrueRange, rng_per) , rng_qty*EMA(abs(close - close[1]), rng_per)) , IFf(rng_scale=="Standard Deviation" , STD(close, rng_per) , iff(rng_scale=="Ticks", rng_qty*PriceScale , rng_qty))))))); if mov_src=="Wicks" Then { hh = h; ll = l; } Else { hh = c; ll = c; } bb = rng_size; rr = iff(smooth_range, EMA(bb, smooth_per) , bb); rng_filt = close; if f_type=="Type1" Then { rng_filt = IFf(IsNan(rng_filt[1]) == true, close , IFf(hh > rng_filt[1] , IFf((hh - rr) < rng_filt[1] ,rng_filt[1], (hh - rr)) , IFf((ll + rr) > rng_filt[1] ,rng_filt[1] , (ll + rr)))); } if f_type=="Type2" Then { rng_filt = IFF(IsNaN(rng_filt[1]) == true, close , IFf(h >= rng_filt[1] + rr , rng_filt[1] + floor(abs(hh - rng_filt[1])/rr)*rr , iff(ll <= rng_filt[1] - rr , rng_filt[1] - floor(abs(ll - rng_filt[1])/rr)*rr, rng_filt[1]))); } h_band = rng_filt + rr; l_band = rng_filt - rr; filt = rng_filt; //Direction Conditions upward = iff(filt > filt[1] , 1 , IFf(filt < filt[1] , 0 , upward)); downward = iff(filt < filt[1] , 1 , IFf(filt > filt[1] , 0 , downward)); //Colors filt_color = iff(upward == 1, RED ,IFf(downward ==1,BLUE,GRAY)); bar_color = IFf( close > filt and close > close[1] and upward > 0 , RED , IFf( close > filt and close <= close[1] and upward > 0 , MAGENTA , IFf( close < filt and close < close[1] and downward > 0 , CYAN , IFf( close < filt and close >= close[1] and downward > 0 , BLUE , GREEN)))); plot1(filt, "Filter",filt_color); plot2(h_band,"High Band",filt_color); plot3(l_band,"Low Band",filt_color);
프로필 이미지
엉덩공주
2023-07-18
1289
글번호 170733
시스템

곽민수 님에 의해서 삭제되었습니다.

프로필 이미지
곽민수
2023-07-18
0
글번호 170732
검색
답변완료

부탁드립니다.

키움증권 수식인데 예스스탁으로 변환좀 부탁드립니다. S = sum(1); HH= Highest(H,기간); LL = Lowest(L,기간); Mid = (HH+LL)/2; 상승S = ValueWhen(1, mid > mid(1), S); 하락S = ValueWhen(1, mid < mid(1), S); 상승S > 하락S 기간: 60 기간은 수정할수있도록 부탁드립니다. 강세 약세 패턴에서 강세로 바뀌는 부분에 검색되게 부탁드립니다. 시간을 아침 9시15분 이후에 출현하는 봉에서 나올경우 감사합니다.
프로필 이미지
곽민수
2023-07-18
1418
글번호 170731
검색
답변완료

문의

일봉에 표시를 하고 싶은데요 일주월에서 동시에 스톡캐스틱 12.5.5 골든크로스일때 일봉에만 강조표시를 하고 싶습니다.
프로필 이미지
엉덩공주
2023-07-18
1211
글번호 170730
강조

무사시 님에 의해서 삭제되었습니다.

프로필 이미지
무사시
2023-07-18
0
글번호 170729
시스템
답변완료

Re;수식 재문의 드림

안녕하세요 예스스탁입니다. 5% 상승시 청산하고자 하시면 목표이익 청산함수 이용하시면 됩니다. 1 Input : shortPeriod(5), longPeriod(20); value1 = ma(C, shortPeriod); value2 = ma(C, longPeriod); If CrossUP(value1, value2) Then { Buy(); } SetStopProfittarget(5,PercentStop); 2 Input : shortPeriod(12), longPeriod(26); Var : value(0); value = MACD(shortPeriod, longPeriod); If CrossUP(value, 0) Then { Buy(); } SetStopProfittarget(5,PercentStop); 즐거운 하루되세요 > 금보 님이 쓴 글입니다. > 제목 : 수식 문의 > 얀녕하세요 Input : shortPeriod(5), longPeriod(20); value1 = ma(C, shortPeriod); value2 = ma(C, longPeriod); # 매수/매도청산 If CrossUP(value1, value2) Then { Buy(); } # 매도/매수청산 If (CrossUP(value1, value2) + 0.5P ) Then { Sell(); } 1,,,위 매수식에서 0.5P 상승하면 매수청산 수식 부탁드립니다 2,,, 기타의 매수식에서 Input : shortPeriod(12), longPeriod(26); Var : value(0); value = MACD(shortPeriod, longPeriod); # 매수/매도청산 If CrossUP(value, 0) Then { Buy(); } # 매도/매수청산 If CrossUP(value, 0) + 0.5P Then { Sell(); } 감사합니다 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 안녕하세요 매도식에 매수신호와 매도신호가 동시에 나타납니다 피라미딩 허용시 신호가 무한대로 (((오류가))) 발생합니다 검증후 재 작성 부탁드립니다 Input : shortPeriod(5), longPeriod(20); value1 = ma(C, shortPeriod); value2 = ma(C, longPeriod); # 매수/매도청산 If CrossUP(value1, value2) Then { Buy(); } # 매도/매수청산 If SetStopProfittarget(1005,PercentStop) Then { Sell(); } 감사합니다
프로필 이미지
금보
2023-07-18
1459
글번호 170728
시스템
답변완료

수식 문의드립니다.

늘 감사드립니다. 이런 수식도 가능한지 문의드립니다. 조건수식 정의를 순서대로 말씀드리면, 1. 일봉 120일 이동평균보다 종가가 낮은 경우의 스윙하이 값들을 배열로 변수에 넣은 다음, (이 때 스윙하이는 왼쪽 40봉, 오른쪽 40봉을 기준으로 합니다.) 2. 스윙하이 값들 중 표준편차 95% 범위 내의 값으로만 배열을 재정의한 후, 3. 재정의된 스윙하이 값의 최고가와 봉번호, 2번째 고가와 봉번호를 구하고, 4. 최고가 - ((최고가 - 2번째 고가)/(최고가 봉번호 - 2번째 고가 봉번호))와 같이 선형방정식을 변수로 할당하고, 5. 최근 100봉 이내 일일 종가가 선형방정식의 값을 1회 이상 상향돌파한 경우, 6. 금일 종가가 해당 종가의 시가에 3% 범위 내에 수렴하는 종목을 검색하는 검색식이 구현 가능한가요? 스윙하이 값을 배열 형태로 변수에 넣는 것에서 계속 에러가 나서 문의드립니다....
프로필 이미지
민서홧팅
2023-07-18
1622
글번호 170726
검색
답변완료

타 종목 전일 가장 큰 값 문의

안녕하세요. 옵션 콜ATM(data2) + 콜ATM+1(data3) = 콜합지표 옵션 풋ATM(data4) + 풋ATM-1(data5) = 풋합지표 1.전일 기준 콜합지표,풋합지표 중 가장 큰 값을 나타나게 해주세요.(당일 값 미포함) 2.전일 기준 abs(콜합지표-풋합지표) 중 가장 큰 값을 나타나게 해주세요.(당일 값 미포함) 오늘도 좋은 하루 되세요~~
프로필 이미지
천장지구
2023-07-18
1466
글번호 170712
지표
답변완료

부탁드립니다.

수식 변형 부탁 드립니다. indicator('[@btc_charlie] Trader XO Macro Trend Scanner', overlay=true) // Variables var ok = 0 var countBuy = 0 var countSell = 0 src = input(close, title='OHLC Type') i_fastEMA = input(12, title='Fast EMA') i_slowEMA = input(25, title='Slow EMA') i_defEMA = input(25, title='Consolidated EMA') // Allow the option to show single or double EMA i_bothEMAs = input(title='Show Both EMAs', defval=true) // Define EMAs v_fastEMA = ta.ema(src, i_fastEMA) v_slowEMA = ta.ema(src, i_slowEMA) v_biasEMA = ta.ema(src, i_defEMA) // Color the EMAs emaColor = v_fastEMA > v_slowEMA ? color.green : v_fastEMA < v_slowEMA ? color.red : #FF530D // Plot EMAs plot(i_bothEMAs ? na : v_biasEMA, color=emaColor, linewidth=3, title='Consolidated EMA') plot(i_bothEMAs ? v_fastEMA : na, title='Fast EMA', color=emaColor) plot(i_bothEMAs ? v_slowEMA : na, title='Slow EMA', color=emaColor) // Colour the bars buy = v_fastEMA > v_slowEMA sell = v_fastEMA < v_slowEMA if buy countBuy += 1 countBuy if buy countSell := 0 countSell if sell countSell += 1 countSell if sell countBuy := 0 countBuy buysignal = countBuy < 2 and countBuy > 0 and countSell < 1 and buy and not buy[1] sellsignal = countSell > 0 and countSell < 2 and countBuy < 1 and sell and not sell[1] barcolor(buysignal ? color.green : na) barcolor(sellsignal ? color.red : na) // Plot Bull/Bear plotshape(buysignal, title='Bull', text='Bull', style=shape.triangleup, location=location.belowbar, color=color.new(color.green, 0), textcolor=color.new(color.black, 0), size=size.tiny) plotshape(sellsignal, title='Bear', text='Bear', style=shape.triangledown, location=location.abovebar, color=color.new(color.red, 0), textcolor=color.new(color.black, 0), size=size.tiny) bull = countBuy > 1 bear = countSell > 1 barcolor(bull ? color.green : na) barcolor(bear ? color.red : na)
프로필 이미지
다올
2023-07-18
1178
글번호 170711
지표