답변완료
날짜 와시간 표시 관련
input : 시작일(20250701),시작시간(090000);input : 이평1(60),이평2(60),이평3(240);input : 윌리엄스R기간값(12);input : 손절틱수(350),트레일링스탑틱수(100),목표틱수(300),청산틱수(300);var : mav1(0),mav2(0),mav3(0),WR(0);if sdate >= 시작일 and sTime >= 시작시간 Then{ Condition1 = true; Condition2 = true;}MAV1 = MA(c,이평1); MAV2 = MA(c,이평2);MAV3 = MA(c,이평3);WR = WILLR(윌리엄스R기간값);if TotalTrades > TotalTrades and IsExitName("StopLoss",1) ==true Then Condition2 = False;if Condition1 == true Then{ if MarketPosition == 0 and c < mav3 and CrossDown(WR, -20) Then Sell("s"); if MarketPosition == -1 Then { if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*청산틱수 Then if CrossUp(C,mav2) Then ExitShort("sx"); } if MarketPosition == -1 Then { if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*목표틱수 Then ExitShort("str",AtStop,EntryPrice-PriceScale*트레일링스탑틱수); } SetStopLoss(PriceScale*손절틱수,PointStop);}날짜와 시간을 꼭 지정을 해야 되나요? 건건마다 날짜와 시간 지정없이 시스템을 작동된다면은 그에 따른 수식을 어떻게 되나요?답변 부탁 드립니다.
답변완료
시스템 작동 관련
input : 이평1(60);input : 윌리엄스R기간값(90);input : 손절틱수(300),청산틱수(300);var : mav1(0),WR(0);MAV1 = MA(c,이평1);WR = WILLR(윌리엄스R기간값);if TotalTrades > TotalTrades and IsExitName("StopLoss",1) ==true Then Condition2 = False;if Condition1 == true Then{ if CrossDown(WR, -20) Then Sell("s");if MarketPosition == -1 Then{ if lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*청산틱수 Then if CrossUp(C,mav1) Then ExitShort("sx"); }SetStopLoss(PriceScale*손절틱수,PointStop);이와 같은 식으로 시스템을 작동을 햇는데, 진입이 되지 않고, 신호도 나오지 않습니다.
답변완료
수식문의
A=BBandsUp(17,2);B=BBandsUp(40,2);M=EnvelopeUp(20,2);(c>ma(h,5) and Crossup(A,M)) or(c>ma(h,5) and B>M and Crossup(A,B)) or(A>B and B>M and Crossup(C,A)) or(Crossup(C,A)) and Crossup(C,B) and Crossup(C,M))과거 위 수식문의 드렸을 시 괄호문제로 어려움이 있었읍니다만,아래 두 방식으로 수식을 부탁드립니다.1. 위 수식에 있는 그대로 똑같이 괄호(위치)를 넣은 수식2.마지막 줄 (Crossup(C,A)) and Crossup(C,B) and Crossup(C,M))만을 (Crossup(C,A) and Crossup(C,B) and Crossup(C,M))로 바꾸고(나머지는 동일) 당일 시가와 50단순이평과의 이격이 10%이내
답변완료
예스트레이더 검색식으로 변환 부탁드립니다.
안녕하십니까?또한번 부탁드리겠습니다.아래수식은 키움의 신호수식인데 예스트레이더의 종목 검색식으로 변환 부탁드립니다.그리고 돌파와비율은 제외하고 4가지 모두가 하락하다가 4가지모두 상승 최초상승한날만을 검색하는 검색식도 가능할까요?예를 들자면 1가지 2가지 3가지 상승할때는 무시하고 4가지모두가 상승이 왼성되는 지점을 말하는 거에요가능하다면 부탁을 드립니다.M1=LRL(기간);EM1=eavg(C, 기간1);EM2=eavg(EM1, 기간1);eq0=EM1-EM2;ZLE=EM1+eq0; A=linearregressionvalue(C,기간1,0);A1=linearregressionvalue(A,기간1,0);eq=A-A1;ZLS=A+eq;B=linearregressionvalue(C,기간2,0);B1=linearregressionvalue(B,기간2,0);eq1=B-B1;ZLS1=B+eq1;AA=MAX(M1, ZLE, ZLS, ZLS1);BB=MIN(M1, ZLE, ZLS, ZLS1);BB*비율>=AA && CROSSUP(C, AA) && M1(1)<M1 && ZLE(1)<ZLE && ZLS(1)<ZLS && ZLS1(1)<ZLS1지표변수기간: 20, 기간1: 50, 기간2: 100, 비율:1.02
답변완료
수식 문의 드립니다
시스템 담당자님, 수고 많으십니다.하기식을 data2 식으로 변환해 주시면 감사 하겠습니다.Input : BBPeriod(40), dv(50);var : BBmd(0),BBup(0),BBdn(0);BBmd = ma(C, BBPeriod);BBup = BollBandUp(BBPeriod, dv);BBdn = BollBandDown(BBPeriod, dv); Input : Period(80) ;var : DMIv(0),DP(0),DM(0);DMIv = DMI(Period); DP = DIPlus(Period);DM = DIMinus(Period); input : P(300),per(250); var12 = EnvelopeUp(P,per); var22 = EnvelopeDown(p,per); var32 = ma(C,P); input : period5(300), period15(150),period25(300);var : 스토g(0), 스토q(0);스토g = StochasticsK(period5,period15);스토q = StochasticsD(period5,period15,period25); input : P81(300),P82(200); var18 = trix(P81); var28 = ema(var18,p82);Input : shortP231(300), longP231(200), emaP31(200);Var : MACDlong31(0),MACDlongSIG31(0);MACDlong31 = MACD(shortP231, longP231);MACDlongSIG31 = ema(MACD(shortP231, longP231), emaP31); Input : shortP230(400), longP230(300), emaP30(300); Var : MACDlong30(0),MACDlongSIG30(0); var : S(0),T(0); MACDlong30 = MACD(shortP230, longP230); MACDlongSIG30 = ema(MACD(shortP230, longP230), emaP30); input : P19(300) ,P29(400);var19 = CCI(P19);var29 = ema(var19,P29);Input : Period1(300), sigPeriod1(250);value12 = TRIX(Period1);value22 = ema(value12, sigPeriod1); Inputs: ShortPeriod(300),LongPeriod(300),매수기준선(100),매도기준선(-100); Variables: Fval(0),FvalFast(0),FvalSlow(0); Fval = ((Close - Close[1]) * Volume) ; FvalFast = Ema(Fval, ShortPeriod); FvalSlow = Ema(Fval, LongPeriod); if 스토g>스토g[10] && var19>var19[20] && FvalFast<FvalFast[30] && MACDlong31<MACDlong31[40] && var12<var12[50] && DP <DM && DMIv >10 && DMIv> DP && c< var12 && c< BBup Then Buy(); if 스토g<스토g[10] && var19<var19[20] && FvalFast>FvalFast[30] && MACDlong31<MACDlong31[40] && var12<var12[50] Then ExitLong(); if 스토g<스토g[30] && var19<var19[40] && FvalFast>FvalFast[50] && MACDlong31<MACDlong31[40] && var12<var12[50] Then Sell();위 식을 data2 식으로 변환해 주시면 감사하겠습니다
2026-01-22
101
글번호 229976
시스템
답변완료
문의드립니다
1번 시스템input : SwingPeriod(20), AtrPeriod(10), ATrMult(30);var : PH(0), PL(0), lastpp(0), center(0), alPHa(0), source(0), ATrV(0);var : UpCh(0), DnCh(0), Trend(0), TuP(0), Tdown(0), TrailingSL(0);# 스윙하이와 스윙로우를 이용하여 중심선 계산PH = swingHigh(1,H,SwingPeriod,SwingPeriod,SwingPeriod*2+1);PL = swingLow(1,L,SwingPeriod,SwingPeriod,SwingPeriod*2+1);if PH <> -1 Then lastpp = PH;if PL <> -1 Then lastpp = PL;if PH <> -1 or PL <> -1 Then center = (center*2 + lastpp)/3;# ATR계산(True Range를 RMA로 평균)if CurrentBar > 0 Then { alPHa = 1 / AtrPeriod ; source = max(H - L, abs(H - C[1]), abs(L - C[1])); ATrV = alPHa * source + (1 - alPHa) * ATrV[1];}# 상하단 채널과 추세에 따른 추세채널 UpCh = center - (ATrMult * ATrV);DnCh = center + (ATrMult * ATrV);Tup = IFf(C[1] > TUp[1],max(UpCh, TUp[1]),UpCh );Tdown = IFf(C[1] < TDown[1],min(DnCh, TDown[1]),DnCh );if C > TDown[1] Then Trend = 1;if C < TuP[1] Then Trend = -1;Trailingsl = IFf(Trend == 1, Tup, Tdown);if Trend == 1 and Trend[1] == -1 Then Buy();if Trend == -1 and Trend[1] == 1 Then Sell();2번 시스템 Inputs: XMALen(4), VolLen(8), MultFact(2);Vars: TopBand(0), BotBand(0), XAvg(0), FastMA(0), MedMA(0), SlowMA(0), BullTrend(false), BearTrend(false),Volatility(0);#VolatilityIf CurrentBar >= 1 AND VolLen <> 0 Then Begin If CurrentBar == 1 Then Volatility = TrueRange; Else Volatility = ((VolLen - 1) * Volatility + TrueRange) / VolLen; End; ##{ Define initial Top and Bottom Band }If CurrentBar == 1 then Begin TopBand = Open + Volatility * MultFact; BotBand = Open - Volatility * Multfact;End;#{ Define market mode with 3 line Moving averages }XAvg = Ema( Close , XMALen );FastMA = ma( Close, 4 );MedMA = ma( Close, 9 );SlowMA = ma( Close, 18 );BullTrend = FastMA > MedMA AND MedMA > SlowMA;BearTrend = FastMA < MedMA AND MedMA < SlowMA;#{ Place long entry orders }If XAvg > TopBand AND BullTrend then begin buy("b",OnClose); BotBand = TopBand; TopBand = TopBand + Volatility * MultFact;End;#{ Place short entry orders }If XAvg < BotBand AND BearTrend then begin sell("s",OnClose); TopBand = BotBand; BotBand = BotBand - Volatility * MultFact;End;수고많으십니다 문의드릴 내용은 위 수식에서 1번 시스템이 매수면 1점 매도면 -1점2번 시스템이 매수면 1점 매도면 -1점각각 점수를 주어두 시스템의 합이 2점이면 매수진입 매도청산두 시스템의 합이 -2점이면 매도진입 매수청산이런 수식을 부탁드립니다 감사합니다
답변완료
부탁드립니다
S=sum(1);최고거래량=highestsince(1,S==1,V);D=valuewhen(1,최고거래량==v,c)지표값 D[1]가 주가 -3%에서 8% 사이에 있을때 D[1]값돌파 검색식 부탁드립니다2번INPUT : 기간(20),N(5) ;VAR : A(0),i(Nan),B(Nan),T(0);A=Highest (V,기간);IF V>A[1] TheNB=(O+C+L+H+C)/5;if B != B[1] Then{if B > B[1] ThenT = 1;if B < B[1] Then{T = 1;i = Index;if B <= B[1]*0.90 Then{T = 2;i = Index;}}}if T == 2 and index >= i+N Then //N봉 이전에 하락발생이면 index >= i+N입니다.Find(1);N봉 이전에 하락발생한 지표값이 오늘 상승한 종목 검색식 부탁 드립니다