커뮤니티

문의드립니다.

프로필 이미지
천외일성
2021-12-02 03:41:33
495
글번호 154098
답변완료
indip = input(1,type=bool,title="Use current timeframe?") tf = (indip==0?(input('60',type=resolution,title="Timeframe (only if previous opt is unflagged)")):period) Timeframem = (tf=='D'?'M':(tf=='240'?'W':(tf=='120'?'W':(tf=='60'?'W':(tf=='15'?'640':(tf=='5'?'360':'na')))))) Timeframed = (tf=='D'?'2W':(tf=='240'?'2D':(tf=='120'?'2D':(tf=='60'?'D':(tf=='15'?'360':(tf=='5'?'180':'na')))))) Timeframeh = (tf=='D'?'W':(tf=='240'?'D':(tf=='120'?'D':(tf=='60'?'720':(tf=='15'?'180':(tf=='5'?'90':'na')))))) chm = security(tickerid, Timeframem, open) chm1 = security(tickerid, Timeframem, close) defm = (chm1/chm) -1 chd = security(tickerid, Timeframed, open) chd1 = security(tickerid, Timeframed, close) defd = (chd1/chd) -1 chh = security(tickerid, Timeframeh, open) chh1 = security(tickerid, Timeframeh, close) defh = (chh1/chh) -1 output = defm>0?(defd>defh?defd:defh):(defd>defh?defh:defd) plot(output,linewidth=2,color=output>0?lime:red,transp=50,style=area) plot(defh,color=defh>0?lime:red,transp=0,linewidth=1) plot(defh,color=defh>0?lime:red,transp=75,style=area) hline(0) 상기수식을 예스로 변환부탁합니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-12-02 13:58:03

안녕하세요 예스스탁입니다. 올리신 내용은 security함수와 같은 부분은 변환에 시간이 많이 걸리는 내용입니다. 업무상 많은 시간이 요구되는 수식은 저희가 답변을 해드리기 어렵습니다. 도움을 드리지 못해 죄송합니다. 즐거운 하루되세요 > 천외일성 님이 쓴 글입니다. > 제목 : 문의드립니다. > indip = input(1,type=bool,title="Use current timeframe?") tf = (indip==0?(input('60',type=resolution,title="Timeframe (only if previous opt is unflagged)")):period) Timeframem = (tf=='D'?'M':(tf=='240'?'W':(tf=='120'?'W':(tf=='60'?'W':(tf=='15'?'640':(tf=='5'?'360':'na')))))) Timeframed = (tf=='D'?'2W':(tf=='240'?'2D':(tf=='120'?'2D':(tf=='60'?'D':(tf=='15'?'360':(tf=='5'?'180':'na')))))) Timeframeh = (tf=='D'?'W':(tf=='240'?'D':(tf=='120'?'D':(tf=='60'?'720':(tf=='15'?'180':(tf=='5'?'90':'na')))))) chm = security(tickerid, Timeframem, open) chm1 = security(tickerid, Timeframem, close) defm = (chm1/chm) -1 chd = security(tickerid, Timeframed, open) chd1 = security(tickerid, Timeframed, close) defd = (chd1/chd) -1 chh = security(tickerid, Timeframeh, open) chh1 = security(tickerid, Timeframeh, close) defh = (chh1/chh) -1 output = defm>0?(defd>defh?defd:defh):(defd>defh?defh:defd) plot(output,linewidth=2,color=output>0?lime:red,transp=50,style=area) plot(defh,color=defh>0?lime:red,transp=0,linewidth=1) plot(defh,color=defh>0?lime:red,transp=75,style=area) hline(0) 상기수식을 예스로 변환부탁합니다.