검색식과 종목검색식 부탁 드립니다1
아래 지표(ETwoPole)에서 검색식과 종목검색식 부탁 드립니다조건은 아래와 같습니다- 해당 지표의 색상이 청색에서 적색으로 변하는 지점 첨부 그림 참조Inputs: ETO_Period(21), // E Two Pole 기간 VDI_Period(21), // VDI 기간 VDI_Smoothing(3); // VDI 부드럽게 할 기간Vars: FirstEMA(0), SecondEMA(0), ETO(0);// PriceChange(0), AvgVolume(0), VolRatio(0),// UpVDI(0), DownVDI(0), VDI(0);// ===== 1. E Two Pole Oscillator 계산 =====// 1단계 EMAFirstEMA = EMA(Close, ETO_Period);// 2단계 EMASecondEMA = EMA(FirstEMA, ETO_Period);// 이 투폴 오실레이터ETO = Close - SecondEMA;/*// ===== 2. VDI 계산 =====// 가격 변화PriceChange = Close - Close[1];// 평균 거래량AvgVolume = Average(Volume, VDI_Period);// 거래량 비율If AvgVolume > 0 then VolRatio = Volume / AvgVolume;Else VolRatio = 1;// VDI 상승/하락 누적If PriceChange > 0 and VolRatio > 1 then UpVDI = UpVDI + (PriceChange * VolRatio);ElseIf PriceChange < 0 and VolRatio > 1 then DownVDI = DownVDI + (AbsValue(PriceChange) * VolRatio);// VDI 지표 계산VDI = EMA(UpVDI - DownVDI, VDI_Smoothing);*/Plot1(ETO,"ETO",IFF(ETO > 0,IFF(CountIF(ETO < 0, 3) > 0 && ETO > 0 && ETO >ETO[1],RgB(190,0,0), Red),Blue),Def,IFF(CountIF(ETO < 0, 3) > 0 && ETO > 0 && ETO >ETO[1],10,IFF(ETO >ETO[1],3,1)));Var : ETwoPole(0);_2025_WoodStock_ETwoPole(15,15,3, ETwoPole);Plot2( ETwoPole,"ETwoPole");/*Plot2(VDI,"VDI");Plot3(ema(VDI,20),"VDI20");// ===== 3. 매수·매도 조건 =====/*Condition1 = (ETO crosses above 0) and (VDI > 0); // 매수조건Condition2 = (ETO crosses below 0) and (VDI < 0); // 매도조건
검색식과 종목검색식 부탁 드립니다
아래 지표(RSI DIVERGENCE)에서 검색식과 종목검색식 부탁 드립니다조건은 아래와 같습니다 1. 해당 지표의 색상이 적색에서 라임으로 변하며 2. 해당값이 0보다 클때 입니다. 부탁드립니다.input : len_fast(5),len_slow(14);var : src_fast(0),src_slow(0);var : alpha_fast(0),up_fast(0),down_fast(0),rsi_fast(0);var : alpha_slow(0),up_Slow(0),down_slow(0),rsi_slow(0);var : divergence(0);src_fast = C;var1 = max(src_fast-src_fast[1],0);Var2 = -min(src_fast-src_fast[1],0);src_slow = C;var3 = max(src_slow-src_slow[1],0);Var4 = -min(src_slow-src_slow[1],0);alpha_fast = 1/len_fast;up_fast = 0;up_fast = IFf(IsNan(up_fast[1])== true, ma(var1,len_fast),alpha_fast*var1+(1 - alpha_fast)*up_fast[1]);down_fast = 0;down_fast = IFf(IsNan(down_fast[1])== true, ma(var2,len_fast),alpha_fast*var2+(1 - alpha_fast)*down_fast[1]);rsi_fast = iff(down_fast == 0 , 100 , IFf( up_fast == 0 , 0 , 100 - (100 / (1 + up_fast / down_fast))));alpha_slow = 1/len_slow;up_slow = 0;up_slow = IFf(IsNan(up_slow[1])== true, ma(Var3,len_slow),alpha_slow*Var3+(1 - alpha_slow)*up_slow[1]);down_slow = 0;down_slow = IFf(IsNan(down_slow[1])== true, ma(Var4,len_slow),alpha_slow*Var4+(1 - alpha_slow)*down_slow[1]);rsi_slow = iff(down_slow == 0 , 100 , iff(up_slow == 0 , 0 , 100 - (100 / (1 + up_slow / down_slow))));divergence = rsi_fast - rsi_slow;plot1(divergence, "divergence",iff(divergence > 0 , lime,red));PlotBaseLine1(0);
검색식 부탁드립니다.
노고에 항상 고맙고 감사합니다.1.2번 조합해서 수식어가 필요하구요.2 번만 별도수식어가 필요합니다.즐거운 하루 되세요.1)var : 기준선(0),mav1(0),mav2(0),mav3(0);기준선 = (highest(H,26)+lowest(L,26))/2;mav1 = ma(C,5);mav2 = ma(C,10);mav3 = ma(C,20);if Money >= 50000000000 and C >= C[1]*1.10 and C > highest(H,20)[1] and C > 기준선 and mav1 > mav2 and mav2 > mav3 Then Find(1);----------------------------------2)A=supertrend(12,3);A1=supertrend(11,2);A2=supertrend(10,1);B=(highest(high,9)+lowest(low,9)+highest(high,26)+lowest(low,26))/4;B1=(highest(high,52)+lowest(low,52))/2;B2=AVG(C,200);A<C && A1<C && A2<C && CROSSUP(C,MAX(B(25),B1(25),B2))
수식 수정 요청드립니다.
안녕하세요 일전에 아래와 같은 수식을 만들어 주셨었는데 아래 수식에서 1. 오후 10시 30분 이후에 거래가 시작될 수 있도록 수식 수정 해주시고,2. 익절, 손절은 평균 매수가격의 5%, -5% 도달시 보유 수량 전부가 한번에 청산될 수 있도록 부탁드립니다.감사합니다.input : 당일청산시간(010000),익절(5),손절(5);var : Tcond(False),ST(0);IF 당일청산시간 < ST Then{if sDate != sDate[1] ThenSetStopEndofday(당일청산시간);}if (sdate != sdate[1] and stime >= 당일청산시간) or(sdate == sdate[1] and stime >= 당일청산시간 and stime[1] < 당일청산시간) ThenTcond = False;if Bdate != Bdate[1] Then{Tcond = true;ST = sTime;IF 당일청산시간 < ST Then{SetStopEndofday(0);}Else{SetStopEndofday(당일청산시간);}}if 매수조건1 ThenBuy("b1");if 매수조건2 ThenBuy("b2");if 매수조건3 ThenBuy("b3");if MarketPosition == 1 Then{if 청산조건 Thenexitlong("x1");}SetStopProfittarget(익절,PercentStop);SetStopLoss(손절,PercentStop);
주문신호 검토 부탁 드립니다.
아래 식과 같이 스토캐스틱 slow 시스템 식을 이용 중이며, 아물러 지표도 참고 데이터로 보고 있습니다. 시스템식과 지표의 변수값은 12/5/5로 같습니다.차트는 주봉차트이고, 차트 X축 시간표시는 '봉 끝시간 기준'을 사용 중이며 주문신호는 on close 입니다.오늘 10/17일 금요일 봉이 완성되는 날이고, 시스템식 상으로는 주문 예비신호가 나와야 되는 것 같은데, 예비신호가 나오지 않아서 제가 잘못 이해하고 있는 부분이 있나 싶어서 질문 하오니 왜 안나오는 지 검토하여 주시기 부탁드립니다. 차트는 그림파일로 첨부하였고, 스토캐스틱 K값이 D값을 데드 크로스했습니다. - 아 래 -[ 시스템식 ]Input : Period(12), Period1(5), Period2(5);value1 = StochasticsK(Period,Period1);value2 = StochasticsD(Period,Period1,Period2);# 매수/매도청산 If CrossUP(value1, value2) Then { Buy("B");}# 매도/매수청산If CrossDown(value1, value2) Then { sell("EX"); }================[ 지표 ]Input : Period(12), Period1(5), Period2(5);var : StoK(0),StoD(0);StoK = StochasticsK(Period,Period1);StoD = StochasticsD(Period,Period1,Period2);Plot1(StoK, "StochasticsK");Plot2(StoD, "StochasticsD");PlotBaseLine1(20, "기준선20");PlotBaseLine2(80, "기준선80");
종목검색 잘부탁드립니다
#####, 신호발생후 3봉까지 검색 되게 해주세요###### 신호발생후 3봉까지 변수 부탁드려요###### 시장구분없이 검색 되도록 부탁드립니다input : uselow_bull(true); input : usehigh_bear(true); input : line_forward(8); input : line_back(-200); input : label_offset(8); input : 시장구분(1);#1:KP, 2:KQ var : use_low_bull(0),use_high_bear(0); var : bull_dir(False),bear_dir(False),red_bar(false),green_bar(False); var : strong_bull_dir(False),strong_bear_dir(False),nuetral_bar(False); var : line_price(naN),label_price(NaN); var : is_bar_index(0),a(0),b(0),price(0); var : bull_break(False),bear_break(False); var : confirmed_bull_(False),bull_value(0); var : confirmed_bear_(False),bear_value(0); use_low_bull = IFf(uselow_bull,low,close); use_high_bear = IFF(usehigh_bear,high,close); bull_dir = close >= open[1]; bear_dir = close <= open[1]; red_bar = open < close; green_bar = open > close; strong_bull_dir = bull_dir and red_bar; strong_bear_dir = bear_dir and red_bar; nuetral_bar = strong_bear_dir == False and strong_bull_dir == False; is_bar_index = index; if is_bar_index>0 Then { a = close; b = is_bar_index; } price = close; bull_break = price > high[1] and price > high[2] and price > high[3] and price > high[4] and price > high[5] and price > high[6] and price > high[7] and price > high[8] and price > high[9] and price > high[10] and price > high[11] and price > high[12] and price > high[13] and price > high[14]; // confirmed_bull_ = bull_break[1] and bull_break == False; if confirmed_bull_ == true Then bull_value = high; bear_break = price < low[1] and price < low[2] and price < low[3] and price < low[4] and price < low[5] and price < low[6] and price < low[7] and price < low[8] and price < low[9] and price < low[10] and price < low[11] and price < low[11] and price < low[12] and price < low[13] and price < low[14]; // confirmed_bear_ = bear_break[1] and bear_break == False; if confirmed_bear_ == true Then bear_value = low; input : rsiLen(6); input : rsiOverbought(85); input : rsiOversold(15); var : rsiValue(0),rsiisoverbt(False),rsiisoversld(False); var : bear_signal(False),bull_signal(False); var : bulllabel1(Nan),bulllabel2(nan),bullline(NaN); var : bearlabel1(Nan),bearlabel2(nan),bearline(NaN); rsiValue = rsi(rsiLen); rsiisoverbt = rsiValue >= rsiOverbought; rsiisoversld = rsiValue <= rsiOversold; bear_signal = (bear_break[1] and bear_break == False); bull_signal = (bull_break[1] and bull_break == False); if CodeCategory == 2 and bear_signal then { Find(1); }
Python 기반 외부 시스템과의 연동 가능 여부 및 지원 방안 문의
오랜 기간 예스랭귀지를 활용하여 시스템 트레이딩에 참여하고 있으며, 최근 Python 기반의 강화 학습(Reinforcement Learning) 시스템을 활용한 자동 매매 구현을 검토하고 있습니다.이에, 구축하는 Python 시스템과 예스랭귀지 시스템 간의 연동이 가능한지, 그리고 이 과정에서 기술적으로 어떠한 지원을 받을 수 있는지 문의 드립니다.구체적으로는 아래와 같은 방식의 연동 가능성을 확인하고자 합니다.예스랭귀지 → Python: 예스랭귀지에서 실시간 시장 데이터(호가, 체결, 지표 등)를 추출하여 Python 시스템으로 전달하는 방식.Python → 예스랭귀지: Python 시스템에서 생성한 매매 신호(매수/매도, 수량 등)를 예스랭귀지 시스템으로 전달하여 실제 주문을 실행시키는 방식.이러한 외부 시스템과의 연동에 대한 기술 지원 가이드라인이 있는지, 그리고 연동 가능한 범위에 대해 안내해 주시면 감사하겠습니다.
수식 수정 바랍니다.
안녕하새요.아래 수식은 문의 후 받은 수식인데시가에서 점이나 화살표대신 수평선으로 변경바랍니다.수평선은 당일 내지는 금주까지 표현가능하면 그렇게 부탁드립니다.또한 수평선을 삭제 가능하게 부탁드립니다.var : tx(0),hh(0,Data1),hh1(0,Data2),ll(0,Data1),ll1(0,Data2);if Data2(Bdate != Bdate[1]) Then{ hh = Data2(h); hh1 = hh[1]; ll = Data2(l); ll1 = ll[1];}if Data2(h) > hh[1] Then hh = data2(h);Plot1(hh,"60분봉 고가");Plot2(hh1,"주차트 이전고가");if data2(CrossDown(C,hh1)) Then{ tx = Text_New_Self(data2(sDate),data2(sTime),data2(O)," ▼ "); Text_SetStyle(tx,2,2); Text_SetColor(tx,Yellow);}if Data2(l) < ll[1] Then ll = data2(l);Plot3(ll,"60분봉 저가");Plot4(ll1,"주차트 이전저가");if data2(CrossUp(C,ll1)) Then{ tx = Text_New_Self(data2(sDate),data2(sTime),data2(O)," ▲ "); Text_SetStyle(tx,2,2); Text_SetColor(tx,Red);}