커뮤니티

안녕하세요

프로필 이미지
물고기
2021-11-08 14:46:33
843
글번호 153459
답변완료
항상 도움주셔서 감사합니다. study("Indicator",overlay=true) TD = close > close[4] ?nz(TD[1])+1:0 TS = close < close[4] ?nz(TS[1])+1:0 TDUp = TD - valuewhen(TD < TD[1], TD , 1 ) TDDn = TS - valuewhen(TS < TS[1], TS , 1 ) plotshape(TDUp==7?true:na,style=shape.triangledown,text="7",color=green,location=location.abovebar) plotshape(TDUp==8?true:na,style=shape.triangledown,text="8",color=green,location=location.abovebar) plotshape(TDUp==9?true:na,style=shape.triangledown,text="&#9888;&#65039;",color=green,location=location.abovebar) plotshape(TDDn==7?true:na,style=shape.triangleup,text="7",color=red,location=location.belowbar) plotshape(TDDn==8?true:na,style=shape.triangleup,text="8",color=red,location=location.belowbar) plotshape(TDDn==9?true:na,style=shape.triangleup,text="&#9989;",color=red,location=location.belowbar) 예스랭귀지로 변환 문의드릴 수 있을까요? 감사합니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-11-09 17:08:56

안녕하세요 예스스탁입니다. var : TD(0),TS(0),TDup(0),TSdn(0),TX1(0),TX2(0); if C > C[4] Then TD = TD+1; Else TD = 0; if C < C[4] Then TS = TS+1; Else TS = 0; if TD < TD[1] Then var1 = 0; if TS < TS[1] Then Var2 = 0; TDUp = TD - var1; TSDn = TS - Var2; if TDup >= 7 and TDup <= 9 Then { tx1 = Text_New(sDate,sTime,H,"▼"); Text_SetStyle(tx1,2,1); Text_SetColor(tx1,RED); } if TSDn >= 7 and TSDn <= 9 Then { tx2 = Text_New(sDate,sTime,L,"▲"); Text_SetStyle(tx2,2,0); Text_SetColor(tx2,BLUE); } 즐거운 하루되세요 > 물고기 님이 쓴 글입니다. > 제목 : 안녕하세요 > 항상 도움주셔서 감사합니다. study("Indicator",overlay=true) TD = close > close[4] ?nz(TD[1])+1:0 TS = close < close[4] ?nz(TS[1])+1:0 TDUp = TD - valuewhen(TD < TD[1], TD , 1 ) TDDn = TS - valuewhen(TS < TS[1], TS , 1 ) plotshape(TDUp==7?true:na,style=shape.triangledown,text="7",color=green,location=location.abovebar) plotshape(TDUp==8?true:na,style=shape.triangledown,text="8",color=green,location=location.abovebar) plotshape(TDUp==9?true:na,style=shape.triangledown,text="&#9888;&#65039;",color=green,location=location.abovebar) plotshape(TDDn==7?true:na,style=shape.triangleup,text="7",color=red,location=location.belowbar) plotshape(TDDn==8?true:na,style=shape.triangleup,text="8",color=red,location=location.belowbar) plotshape(TDDn==9?true:na,style=shape.triangleup,text="&#9989;",color=red,location=location.belowbar) 예스랭귀지로 변환 문의드릴 수 있을까요? 감사합니다.