커뮤니티

수식 설명좀 부탁합니다.

프로필 이미지
힘내라
2021-04-25 13:27:34
2831
글번호 225476
답변완료
이수식이 무엇을 말하는지 아시는분있으면 쉽게 한글로 풀이좀 해주세요.. 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-05-17 16:46:20

안녕하세요 예스스탁입니다. 해당 수식은 저희랭귀지 수식이 아닙니다. 도움을 드리지 못해 죄송합니다. 즐거운 하루되세요 > 힘내라 님이 쓴 글입니다. > 제목 : 수식 설명좀 부탁합니다. > 이수식이 무엇을 말하는지 아시는분있으면 쉽게 한글로 풀이좀 해주세요.. 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)