커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

파일출력시 해당 종목의 심볼을 파일명으로 할 수 있나요?

예를들어 나스닥100 연결선물의 데이터를 엑셀파일로 출력할 때 파일이름이 연결_E-mini Nasdaq100-202112.xlsx로 자동으로 출력되게 하고 싶습니다. 감사합니다.
프로필 이미지
제0원소
2021-10-01
703
글번호 152605
지표
답변완료

수정좀 부탁드립니다

안녕하세요 낮과밤의 일교차가 커지기에 건강관리 잘 하시길 바랍니다 아래 수식에서 색깔 나온 부분을 색상 조합으로 바꿔 다른색으로 바꾸고 싶습니다. 감사합니다. Plot1(Data2(c)-data3(c),"차이", IFF(Data2(c)-data3(c)>0,REd,BLUe));
프로필 이미지
라몬
2021-10-01
651
글번호 152604
지표
답변완료

수식 의뢰드립니다!

안녕하세요! 수식을 부탁드립니다! 1. 현재봉이 직전고점을 넘지않고 직전 저점을 몸통으로 통과하는 봉이 완성되면 매도화살표 2. 현재봉이 직전저점을 넘지않고 직전 고점을 몸통으로 통과하는 봉이 완성되면 매수화살표 가 나타나도록 시스템 수식을 부탁드립니다. 항상 노고에 감사드려요!
프로필 이미지
qha71
2021-10-01
826
글번호 152603
시스템

예스예스24 님에 의해서 삭제되었습니다.

프로필 이미지
예스예스24
2021-10-01
2
글번호 152602
지표
답변완료

변환부탁드립니다.

src = input(close, "Price", type = input.source) CMOlength = input(9, minval=1, title="Alpha Chande Momentum Length") //CMO momm = change(src) f1(m) => m >= 0.0 ? m : 0.0 f2(m) => m >= 0.0 ? 0.0 : -m m1 = f1(momm) m2 = f2(momm) sm1 = sum(m1, CMOlength) sm2 = sum(m2, CMOlength) percent(nom, div) => 100 * nom / div chandeMO = percent(sm1-sm2, sm1+sm2) plot(chandeMO, "Chande MO", color=color.blue) //RMI length3 = input(title="RMI Length", type=input.integer, minval=1, defval=30) momentumLength3 = input(title="RMI Momentum ", type=input.integer, minval=1, defval=25) up3 = rma(max(change(src, momentumLength3), 0), length3) down3 = rma(-min(change(src, momentumLength3), 0), length3) rmi3 = (down3 == 0 ? 100 : up3 == 0 ? 0 : 100 - (100 / (1 + up3 / down3)))-50 // // lengthMA = input(7) lengthRSI = input(14) thrsi = hma(hma(hma(rsi(src, lengthRSI), lengthMA), lengthMA), lengthMA) thrsi1 = (thrsi-50)*10 lengthMA2 = input(7) lengthRSI2 = input(14) devwrsi = ((ema(ema(vwma(rsi(src, lengthRSI2), lengthMA2), lengthMA2), lengthMA2))-50)*5 lengthMA3 = input(7) lengthRSI3 = input(14) tersi = ((ema(ema(ema(rsi(src, lengthRSI3), lengthMA3), lengthMA3), lengthMA3))-50)*10 rmirsi = ((thrsi*rmi3/25)) //Boundary Lines obLevel1 = input(0, title="Chande Sellline") osLevel1 = input(0, title="Chande Buyline") hline(obLevel1, color=#0bc4d9) hline(osLevel1, color=#0bc4d9) obLevel2 = input(0, title="Triple HMRSI Sellline") osLevel2 = input(0, title="Triple HMRSI Buyline") hline(obLevel2, color=#5a0bd9) hline(osLevel2, color=#5a0bd9) obLevel3 = input(0, title="DEVWRSI Sellline") osLevel3 = input(0, title="DEVWRSI Buyline") hline(obLevel3, color=#5a0bd9) hline(osLevel3, color=#5a0bd9) obLevel4 = input(0, title="TERSI Sellline") osLevel4 = input(0, title="TERSI Buyline") hline(obLevel4, color=#5a0bd9) hline(osLevel4, color=#5a0bd9) obLevel5 = input(0, title="RMI Sellline") osLevel5 = input(0, title="RMI Buyline") hline(obLevel5, color=#5a0bd9) hline(osLevel5, color=#5a0bd9) obLevel6 = input(0, title="RMI*RSI Sellline") osLevel6 = input(0, title="RMI*RSI Buyline") hline(obLevel6, color=#5a0bd9) hline(osLevel6, color=#5a0bd9) plot((thrsi1), title="THRSI") plot(devwrsi, color=color.red, title="DEVWRSI") plot(tersi, color=color.yellow, title="TERSI") plot(rmirsi, color=color.purple, title="RMI*HMRSI") plot(rmi3, color=color.orange, title="RMI") longcondition1 = crossover(chandeMO, osLevel1) shortcondition1 = crossunder(chandeMO, obLevel1) longcondition2 = rmirsi<osLevel6 and rmi3<osLevel5 and tersi<osLevel4 and devwrsi<osLevel3 and thrsi1<osLevel2 and longcondition1 shortcondition2 = rmirsi>obLevel6 and rmi3>obLevel5 and tersi>obLevel4 and devwrsi>obLevel3 and thrsi1>obLevel2 and shortcondition1 if testPeriod() if longcondition2 strategy.entry("Buy", strategy.long) if shortcondition2 strategy.entry("Sell", strategy.short) hline(0, color=#C0C0C0, linestyle=hline.style_dashed, title="Zero Line")
프로필 이미지
코샘매쓰
2021-09-30
769
글번호 152601
시스템

철판때기 님에 의해서 삭제되었습니다.

프로필 이미지
철판때기
2021-09-30
4
글번호 152600
종목검색
답변완료

부탁 드립니다~~^^

안녕 하세요~ 20 이평과 60이평이 골든 크로스 된 후, 10 봉이내 에서 다시 5이평이 20 이평을 골든 크로스 되었거나, 5/20 이평의 이격이 12% 내로 가까워진 종목을 찾고 싶습니다. 단, 10봉 이내를 => 제가 수시로 수정을 해서 찾을 수 있도록 부탁 드립니다.
프로필 이미지
그리워
2021-09-30
844
글번호 152599
종목검색
답변완료

수정 부탁드립니다

보내주신 수식 적용했는데 매수 신호가 2회가 나옵니다 제가 원하는 것은 bx, sx 청산이후에는 BH, SL 매수 매도가 1회만 나오게 하는 겁니다 수정 부탁드립니다 var : HC(0),HO(0),HI(0); var : LC(0),LO(0),LI(0); var : rebuy(0),resell(0); if MarketPosition == 1 Then { if C > O and (HC == 0 or (HC > 0 and C > HC)) Then { HC = C; HO = O; HI = Index; } if Index <= HI+2 and C < O and HC > 0 and O > HC and C < HO Then ExitLong("bx"); } Else { HC = 0; HO = 0; } if MarketPosition == -1 Then { if C < O and (LC == 0 or (LC > 0 and C < LC)) Then { LC = C; LO = O; LI = Index; } if Index <= LI+2 and C > O and LC > 0 and O < LC and C > LO Then ExitShort("sx"); } Else { LC = 0; LO = 0; } if Bdate != Bdate[1] Then { reBuy = 0; resell = 0; } if MarketPosition == 0 and IsExitName("bx",1) == true and C > O[BarsSinceExit(1)] and rebuy < 1 Then { rebuy = rebuy+1; Buy("BH"); } if MarketPosition == 0 and IsExitName("sx",1) == true and C < O[BarsSinceExit(1)] and resell < 1 Then { resell = resell+1; Sell("SL"); }
프로필 이미지
knp116
2021-09-30
742
글번호 152598
시스템
답변완료

강제청산관련 질문드립니다.

안녕하세요 강제 청산 관련 질문 드립니다. 지수 선물에서 매수 매도 진입 후 , N개 봉 (60분봉 기준) 후 강제 청산 가능하게 하려면 어떻게 짜야 할까요? 매수 청산, 매도 청산 모두 확인이 필요합니다. 추가로 60분봉에서 매매 하려면 수식이 아닌 프로그램으로 세팅해야 하는 것인지도 답변 부탁드립니다. 감사합니다.
프로필 이미지
hi2378
2021-09-30
803
글번호 152597
시스템
답변완료

시간설정

Input : af(0.02), maxAF(0.2); Var : value(0); value = sar(af,maxAF); # 매수/매도청산 If C > value Then { Buy(); } # 매도/매수청산 If C < value Then { Sell(); } 이 수식에 오후 4시부터 오전2시까지만 신호에 진입하도록 설정해주세요
프로필 이미지
감사합니다
2021-09-30
593
글번호 152596
시스템