커뮤니티

손절한 가격대에 줄을 긋고싶은데 방법을 모르겠어요

프로필 이미지
amxy
2018-03-30 10:11:02
285
글번호 117807
답변완료
setstoploss(20,percentstop); if setstoploss(20,percentstop) then value5=c; TL1 = tl_new(~~~~) 이렇게 하려니까 끝자리 데이터가 하나 더 필요한데 다른방법으로 긋는건 없을까요? 수평선만 그으면 되는데 잘 모르겠어요
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-03-30 11:24:39

안녕하세요 예스스탁입니다. 시스템식에 아래 내용 추가하시면 됩니다. 추세선은 차트의 Y축 범위안에 들어올때만 보기에 됩니다. 이용에 참고하시기 바랍니다. var : tl(0); if MarketPosition == 1 then{ if MarketPosition != MarketPosition[1] Then tl = TL_New(sdate[1],stime[1],EntryPrice*0.80,sdate,stime,EntryPrice*0.80); Else TL_SetEnd(tl,sdate,stime,EntryPrice*0.80); TL_SetColor(tl,RED); } if MarketPosition == -1 Then{ if MarketPosition != MarketPosition[1] Then tl = TL_New(sdate[1],stime[1],EntryPrice*1.20,sdate,stime,EntryPrice*1.20); Else TL_SetEnd(tl,sdate,stime,EntryPrice*1.20); TL_SetColor(tl,blue); } 즐거운 하루되세요 > amxy 님이 쓴 글입니다. > 제목 : 손절한 가격대에 줄을 긋고싶은데 방법을 모르겠어요 > setstoploss(20,percentstop); if setstoploss(20,percentstop) then value5=c; TL1 = tl_new(~~~~) 이렇게 하려니까 끝자리 데이터가 하나 더 필요한데 다른방법으로 긋는건 없을까요? 수평선만 그으면 되는데 잘 모르겠어요