커뮤니티

예스랭귀지 Q&A

글쓰기

베어샘 님에 의해서 삭제되었습니다.

프로필 이미지
베어샘
2021-09-27
110
글번호 152478
종목검색
답변완료

시스템식 요청 드립니다.

안녕하세요 항상 감사드립니다. 아침에 요청드린 식이 있는데.. 제가 생각하는 조건대로 매매가 진행되지 않는것 같아 다시 요청드립니다. 요청조건은 ------------------------------------------------------------------- 여기서 추가하고자 하는 조건은 전부다 동일한 조건으로 진행되는데, 1차매수 2프로 익절 했을 경우에만, 다음타점으로 매수진행되도록 조건을 추가하고 싶습니다. 예를들어 5000원에 매수해서 2프로 익절까지 했을경우, 다음 4500원이 매수타점으로 되어 진행되도록 조건을 추가하고자 합니다. ------------------------------------------------------------------- 작성해주신 식으로 시뮬레이션을 돌려봤을때 1차매수 2프로 익절했는데도 불구하고 원래 타점대로 매수가 진행되네요 예를들어 5000원에 매수해서 2프로 익절까지 했을경우, 다음 4500원이 매수타점으로 되어 진행되도록 하고 싶은데, 다시 5000원이 매수가 진행됩니다.. 번거로우시지만 다시 부탁드립니다. 요청식 ------------------------------------------------ 안녕하세요 예스스탁입니다. input : 타점1(5000),타점2(4500),타점3(4000),타점4(3500),타점5(3000); input : 투자금액1(1000000),투자금액2(2000000); var : entry(0),HH(0); if Bdate != Bdate[1] Then { entry = 0; #5개의 타점중 시가보다 작은것 중에 젤 큰값 계산 HH = 0; if 타점1 < DayOpen*0.99 and 타점1 < DayClose(1) and 타점1 > HH Then HH = 타점1; if 타점2 < DayOpen*0.99 and 타점2 < DayClose(1) and 타점2 > HH Then HH = 타점2; if 타점3 < DayOpen*0.99 and 타점3 < DayClose(1) and 타점3 > HH Then HH = 타점3; if 타점4 < DayOpen*0.99 and 타점4 < DayClose(1) and 타점4 > HH Then HH = 타점4; if 타점5 < DayOpen*0.99 and 타점5 < DayClose(1) and 타점5 > HH Then HH = 타점5; } if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) and (MarketPosition != MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1; if MarketPosition == 0 and sTime < 133000 and entry == 0 Then { Buy("1차매수",AtLimit,HH,Floor(투자금액1/min(NextBarOpen,HH))); } if MarketPosition == 1 and entry == 1 Then { Buy("2차매수",AtLimit,HH*0.974,Floor(투자금액2/min(NextBarOpen,HH*0.974))); } if MarketPosition == 0 and sTime < 133000 and entry == 1 and IsexitName("1차매수 2프로익절",1) == true Then { Buy("2차매수A",AtLimit,HH*0.974,Floor(투자금액2/min(NextBarOpen,HH*0.974))); } if MarketPosition == 1 Then { if MaxEntries == 1 and IsEntryName("1차매수",0) == true Then { ExitLong("1차매수 1프로익절",AtLimit,avgEntryPrice*1.01,"",Floor(MaxContracts*0.4)); ExitLong("1차매수 2프로익절",AtLimit,avgEntryPrice*1.02); } if MaxEntries == 2 and IsEntryName("1차매수",0) == true Then { ExitLong("2차매수 0.3익절",AtLimit,avgEntryPrice*1.003,"",Floor(MaxContracts*0.5)); ExitLong("2차매수 0.5익절",AtLimit,avgEntryPrice*1.005); } if MaxEntries == 1 and IsEntryName("2차매수A",0) == true Then { ExitLong("2차매수A 0.3익절",AtLimit,avgEntryPrice*1.003,"",Floor(MaxContracts*0.5)); ExitLong("2차매수A 0.5익절",AtLimit,avgEntryPrice*1.005); } ExitLong("손절",AtStop,HH*0.96); }
프로필 이미지
맴맴잉
2021-09-27
768
글번호 152474
시스템
답변완료

함수 작성 문의드립니다

안녕하세요 타 수식을 예스수식으로 변경중 막히는 부분이 있어 문의드립니다 <함수> if(dayhigh>dayhigh[15],highest(dayhigh,15),if(dayhigh>dayhigh[30],highest(dayhigh,30),if(dayhigh>dayhigh[60],highest(dayhigh,60),if(dayhigh>dayhigh[120],highest(dayhigh,120),highest(dayhigh,240))))); 이걸 함수 A로 저장해두고 지표수식에서 불러오고싶습니다. <지표> 분봉에서 함수A값을 불러와서 최근 5일봉중 최고가가 A값보다 크면서 + 당일 일봉이 음봉이 아닐때를 B라고 하면 IF(B,DAYHIGH,HIGHESTSINCE(1,B,DAYHIGH)); #B를 만족하면 당일고가, 만족하지 않으면 가장 최근에 B를 만족했었던 때의 일봉상 고가 라는 지표를 분봉에서 구현할수 있을까요? 타 증권사 개념으로 적어봤는데 예스트레이더 형식으로 변환부탁드립니다
프로필 이미지
하누왕
2021-09-27
916
글번호 152470
사용자 함수
답변완료

수식 부탁드립니다.

- 5분봉 기준 당일 첫봉 양봉이고 - 9:30분 분봉 종가가 당일 첫봉 종가보다 크면 매수, - 9:30분 분봉 종가가 당일 첫봉 종가보다 작으면 매도, - 당일 종가 청산 감사합니다.
프로필 이미지
류트
2021-09-26
1102
글번호 152469
시스템
답변완료

수식 부탁드립니다

시간을 설정하고 싶은데요 우후 2시부터 새벽 2시까지만 시스템신호대로 진입하고 나머지는 진입하지 않도록 하고 싶습니다
프로필 이미지
감사합니다
2021-09-26
1076
글번호 152468
시스템
답변완료

수식작성 부탁드립니다.

안녕하세요. 운영자님 추석연휴는 잘 보내셨는지요? 제가 이번에 의뢰드리고자 하는 지표의 수식은 당일포함 이전 30일간의 특정시간의 30분봉 캔들의 중심값을 수평선으로 그어 표시하도록 부탁 드립니다. 예를들어 Mini NASDAQ 의 경우 22:30분 시작되는 30분봉 캔들의 시가와 저가의 중간값을 수평선으로 긋는 것입니다. 감사합니다.
프로필 이미지
고박사122
2021-09-26
1224
글번호 152467
지표
답변완료

수식좀부탁드립니다

코인에서쓸거구요 cci(60)-100 엔벨로프20-3하안선하양돌파 이두가지보조지표조건만족시1차매수1만원 3프로익절시전액매도-3프로1차전액손절 1차-2프로손절단가에서2차매수2만원4프로익절시매도-3프로2차전액손절 2차-2프로손절단가에서 3차매수3만원5프로익절-3프로3차전액손절 3차-2프로손절단가에서 4차매수4만원6프로익절-3프로4차전액손절 4차-2프로손절단가에서 5차매수5만원7프로익절 -3프로손절 이런식으로 매수후전차수전액액손절1프로전에다음매수들어가게좀해주세요 -3프로손절시바로다음차수매수들어가면좋은데 이러면손절하고매수체결이 안될수잇는경우가잇는것같아서 손절1프로전에다음매수들어가게짜밧는데 손절바로전에매수들어가게할수잇을가요?봉이끝나고주문이들어가니까 -3프로손절단가한호가위에서바로매수되게해야되는건가요?위에부탁드린거하나짜주시구요 더좋은수식잇으시면 한개더짜주세요^^감사합니다
프로필 이미지
백억이
2021-09-26
1055
글번호 152466
시스템
답변완료

지표입니다.

안녕하세요? 커뮤니티 게시판을 보다가 우연히 아래로직을 보았는데 이해가 어렵습니다. 이 로직의 설명좀 부탁드립니다. var : sumV(0),sumB(0),mav(0); if bdate != Bdate[1] Then { sumV = 0; sumB = 0; } sumV = sumV+c; sumB = sumB+1; mav = sumV/sumB; Plot1(mav+0.3); Plot2(mav-0.3); 감사합니다.
프로필 이미지
포보스
2021-09-26
810
글번호 152465
지표
답변완료

안녕하세요 스크립트 해석 부탁드립니다

안녕하세요 노고에 늘 감사드립니다 트레이딩뷰 스크립트 내용이 이해가 가지 않아서 헤매고 있는데요 아래 스크립트는 어떤 상황에서 buy신호를 발생하고 또 sell 신호를 발생하는지 가능하면 설명 부탁드립니다 대단히 감사합니다 -_- //@version=3 study(title="ATR Smoothed (By dysrupt)_BuySell version", shorttitle="ATR_SM_BuySell", overlay = true) //Modifyed by @guikroth ////////////////////////////////////////////////////////////////////////////////INPUTS nATRPeriod = input(21, "Period") nATRMultip = input(6.3, "Multiplier",type=float, minval=0.5, maxval=1000, step=0.1) /////////////////////////////////////////////////////////////////////////////////ATR xATR = atr(nATRPeriod) nLoss = nATRMultip * xATR xATRTrailingStop = na xATRTrailingStop := iff(close > nz(xATRTrailingStop[1], 0) and close[1] > nz(xATRTrailingStop[1], 0), max(nz(xATRTrailingStop[1]), close - nLoss), iff(close < nz(xATRTrailingStop[1], 0) and close[1] < nz(xATRTrailingStop[1], 0), min(nz(xATRTrailingStop[1]), close + nLoss), iff(close > nz(xATRTrailingStop[1], 0), close - nLoss, close + nLoss))) pos = na pos := iff(close[1] < nz(xATRTrailingStop[1], 0) and close > nz(xATRTrailingStop[1], 0), 1, iff(close[1] > nz(xATRTrailingStop[1], 0) and close < nz(xATRTrailingStop[1], 0), -1, nz(pos[1], 0))) color = pos == -1 ? red: pos == 1 ? lime : blue //patr=plot(xATRTrailingStop, color=color, linewidth=2, title="ATR Trailing Stop", transp=0) // Deternine if we are currently LONG isLong = false isLong := nz(isLong[1], false) // Determine if we are currently SHORT isShort = false isShort := nz(isShort[1], false) //Trading // Buy only if the buy signal is triggered and we are not already long LONG = not isLong and pos == 1 // Sell only if the sell signal is triggered and we are not already short SHORT = not isShort and pos == -1 if (LONG) isLong := true isShort := false if (SHORT) isLong := false isShort := true barcolor(isLong ? lime : isShort ? red : na) // Show Break Alerts plotshape(SHORT, title="Sell", style=shape.labeldown, location=location.abovebar, size=size.normal, text="Sell", transp=0, textcolor = white, color=red, transp=0) plotshape(LONG, title="Buy", style=shape.labelup, location=location.belowbar, size=size.normal, text="Buy", textcolor = white, color=green, transp=0) // === /PLOTTING === // Send alert to TV alarm sub-system alertcondition(LONG,title="Sell",message="Sell") alertcondition(SHORT,title="BuY",message="Buy") alertcondition(SHORT,title="BuY",message="Buy") alertcondition(SHORT,title="BuY",message="Buy") ////////////////////////////////////////////////////////////////////////////////VWMA len2 = input(100, minval=1, title="Smooth") src = input(close, title="Source") out = vwma(src, len2) avg1=avg(out, xATRTrailingStop) plot(avg1, color=aqua, transp=0, title="ATR")
프로필 이미지
chancebo
2021-09-26
849
글번호 152464
지표

아자으 님에 의해서 삭제되었습니다.

프로필 이미지
아자으
2021-09-25
66
글번호 152463
시스템