커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

대량 매수

안녕하세요, x 초 이내에 y라는 값을 만족할시, 마지막 봉에 강조 표시 <-- 함수로 어떻게 구현하나요? ex)x 초 이내에 계약수 5천개 이상 터짐
프로필 이미지
이만스닥
2023-08-03
1010
글번호 171179
지표
답변완료

타임 필터 사용자함수

안녕하세요 항상 성실한 답변 감사드립니다. 덕분에 트레이딩에 많은 도움이 됩니다. 정말 감사드립니다. 지표마다 타임 필터를 넣기 귀찮고, 워낙 자주 쓰이기도 해서, 타임 필터를 사용자 함수화 시켜서 불러와서 편하게 쓰려고 하는데 도움 부탁드립니다. - 진입 및 종료 시간을 각각 input으로 설정 할 수 있도록 해주세요. ex) if Timefilter(진입시간, 종료시간) = true then Buy(); 부탁드립니다!
프로필 이미지
이만스닥
2023-08-03
840
글번호 171178
사용자 함수
답변완료

세부호가

각 호가에 물량이 없거나 1주 있는 호가를 표시하는 방법이 있나요
프로필 이미지
팔보채
2023-08-03
723
글번호 171168
지표

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

프로필 이미지
wscamtk
2023-08-03
585
글번호 171166
시스템
답변완료

수식 부탁드려요

늘 감사합니다 data가 9시에는 들어오지 않아서 기준을 9시가 아닌 9시2분으로 바꾸려는데 if (sDate != sDate[1] and sTime >= 90000) or (sDate == sDate[1] and sTime >= 90000 and sTime[1] <90000) Then 부분을 어떻게 바꾸면 될까요 그리고 첫 data를 기준으로 삼고 싶을때에는 어떻게 해야 하나요 var1 = data2(C) - data3(C) var2 = data4(C) 매번 감사드립니다
프로필 이미지
돌아온스머프
2023-08-03
667
글번호 171165
시스템
답변완료

[지표] 동일한 봉에서 중복 수행을 방지하는 방법 문의

사용자가 입력해 놓은 가격에 도달하면 알람이 울리도록 지표를 만들어봤습니다. 한번 알람이 울리면 동일한 봉인 경우에는 다시 울리게 하고 싶지 않은데, 아래처럼 코딩을 했는데, 동일봉 알람방지를 하려고 해도 계속 알람이 울립니다. 어떻게 수정해야 할까요? Input : 알람가격1(1.1240), 동일봉_알람방지(1); var : SavedBarIndex(0), cnt(0); plot1(알람가격1,"알람선1"); If ((C[1] < 알람가격1 And C >= 알람가격1) Or (C[1] > 알람가격1 And C <= 알람가격1)) Then { If ((동일봉_알람방지==1 And SavedBarIndex != GloBalBarIndex) Or 동일봉_알람방지==0) Then { cnt = cnt + 1; MessageLog("[%.0f] #1 SavedBarIndex %.0f GloBalBarIndex %.0f ", cnt, SavedBarIndex, GloBalBarIndex); SavedBarIndex = GloBalBarIndex; MessageLog("[%.0f] #2 SavedBarIndex %.0f GloBalBarIndex %.0f ", cnt, SavedBarIndex, GloBalBarIndex); PlaySound("C:₩Trade_Program₩eFriend Global YesTrader₩efriendglobalyestrader₩data₩Sound₩Stop.wav"); } }
프로필 이미지
브라이언7
2023-08-03
654
글번호 171164
지표
답변완료

재문의

질문1) 답변 내용에서 ii 관련 변수 N(5)는 어떤 내용인가요? 입력시간 발생봉과 상관있는지요. 질문2) input: 연속봉(1),연속small(0.52),연속large(0.56); if data2(accumN(iff(C>O,1,0),연속봉) == 연속봉 and ExitDate(1) != sdate and AccumN(abs(C-O), 연속봉) >= 연속small and AccumN(abs(C-O), 연속봉) < 연속large) then buy(); 이 내용에 입력시간 발생봉부터 계산하다는 내용을 추가해 주십시요. 처음부터 이렇게 질문 드렸어야 했는데 죄송합니다. ****************************************************************************** 안녕하세요 예스스탁입니다. 1 input : N(5),ntime(10000); var : K(0,data2),Tcond(False,Data2),ii(0,Data2); k=data2(c)+data3(c); if Data2(Bdate != Bdate[1]) Then Tcond = true; if Data2((sdate != sdate[1] and stime >= ntime) or (sdate == sdate[1] and stime >= ntime and stime[1] < ntime)) Then { Tcond = False; ii = 0; } if Tcond == true Then { ii = ii +1; if ii == N and data2(CountIf(K>0,5) == 5 and AccumN(K,5) >= 1000 and AccumN(K,5) <= 2000) Then Buy(); } 2 input : N(5),ntime(10000); var : Tcond(False,Data2),ii(0,Data2); if Data2(Bdate != Bdate[1]) Then Tcond = true; if Data2((sdate != sdate[1] and stime >= ntime) or (sdate == sdate[1] and stime >= ntime and stime[1] < ntime)) Then { Tcond = False; ii = 0; } if Tcond == true Then { ii = ii +1; if ii == N and data2(CountIf(c>0,5) == 5 and AccumN(c,5) >= 10 and AccumN(c,5) <= 20) Then Buy(); } 즐거운 하루되세요 > 좌오비우오비 님이 쓴 글입니다. > 제목 : 연속봉 문의 > 데이트레이딩 국내선물 요청1) 입력한 시간에 발생한 봉부터 계산 k=data2(c)+data3(c); if 10시에 k의 양봉이 5연속 발생하고 5연속봉의 총합이 1000 보다 크고 2000 보다 작다 then buy(); 요청2) 입력한 시간에 발생한 봉부터 계산 if 10시에 data2(c)의 양봉이 5연속 발생하고 5연속봉의 총합이 10 보다 크고 20 보다 작다 then buy(); 수식 완성 부탁드립니다. 항상 고맙습니다.
프로필 이미지
좌오비우오비
2023-08-03
621
글번호 171163
시스템

좌오비우오비 님에 의해서 삭제되었습니다.

프로필 이미지
좌오비우오비
2023-08-03
0
글번호 171162
시스템
답변완료

수식 변환 좀 해주세요.

//@version=5 indicator("Stochastic Momentum Index", "SMI", timeframe = "", timeframe_gaps = true) lengthK = input.int(10, "%K Length", minval = 1, maxval = 15000) lengthD = input.int(3, "%D Length", minval = 1, maxval = 4999) lengthEMA = input.int(3, "EMA Length", minval = 1, maxval = 4999) emaEma(source, length) => ta.ema(ta.ema(source, length), length) highestHigh = ta.highest(lengthK) lowestLow = ta.lowest(lengthK) highestLowestRange = highestHigh - lowestLow relativeRange = close - (highestHigh + lowestLow) / 2 smi = 200 * (emaEma(relativeRange, lengthD) / emaEma(highestLowestRange, lengthD)) smiPlot = plot(smi, "SMI", color = color.blue) plot(ta.ema(smi, lengthEMA), "SMI-based EMA", color = color.orange) overbought = hline(40, "Overbought Line") oversold = hline(-40, "Oversold Line") fill(overbought, oversold, color = color.new(color.blue, 90)) hline(0, "Middle Line", color = color.new(color.gray, 50)) midLinePlot = plot(0, color = na, editable = false, display = display.none) fill(smiPlot, midLinePlot, 120, 40, top_color = color.new(#4caf4f, 50), bottom_color = color.new(color.green, 100), title = "Overbought Gradient Fill") fill(smiPlot, midLinePlot, -40, -120, top_color = color.new(color.red, 100), bottom_color = color.new(color.red, 50), title = "Oversold Gradient Fill") 트레이딩 뷰 지표인데 예스로 좀 변환 해주세요.
프로필 이미지
신대륙발견
2023-08-03
1005
글번호 171161
지표
답변완료

문의드립니다.

시작시간.07시.끝나는 시간.05시 50분.진입한 상품이 있다면 모두청산 후,시스템완전종료. 알에스아이 시그널선40하향돌파가 출현되고 알에스아이 시그널선55상향돌파 매수. 매수 이 후,40틱 마이너스 날 때 1개씩분할매수. 씨씨아이 -100 하향돌파 매수청산. 한계약당누적수익.40틱. 한계약당누적수익 3회 달성되면 시간과 관계없이 시스템완전종료. 수고하세요.
프로필 이미지
아침
2023-08-03
979
글번호 171160
시스템