커뮤니티

수식문의 드립니다..

프로필 이미지
고구미
2015-04-13 12:30:19
144
글번호 84985
답변완료
수고 많으십니다... 진입가에 매수,매도가 진입과 동시에 목표가와 손절가를 수평선이나 점등 으로 그릴수 있을까요... 에를들어. 210.00매수 손절-10틱 익절+20틱
시스템
답변 3
프로필 이미지

예스스탁 예스스탁 답변

2015-04-13 14:45:05

안녕하세요 예스스탁입니다. 아래 내용을 시스템식 하단에 추가하시면 됩니다. 시스템식에서는 따로 plot명령어를 사용할수 없으므로 추세선 함수로 라인이 출력되도록 해야 합니다. input : Profit(10),Loss(10); var : tl1(0),tl2(0); if MarketPosition == 1 Then{ TL_Delete(tl1); TL_Delete(tl2); tl1 = TL_New(EntryDate,EntryTime,EntryPrice+PriceScale*Profit,sdate,stime,EntryPrice+PriceScale*Profit); tl2 = TL_New(EntryDate,EntryTime,EntryPrice-PriceScale*Loss,sdate,stime,EntryPrice-PriceScale*Loss); } if MarketPosition == -1 Then{ TL_Delete(tl1); TL_Delete(tl2); tl1 = TL_New(EntryDate,EntryTime,EntryPrice-PriceScale*Profit,sdate,stime,EntryPrice-PriceScale*Profit); tl2 = TL_New(EntryDate,EntryTime,EntryPrice+PriceScale*Loss*10,sdate,stime,EntryPrice+PriceScale*Loss); } 즐거운 하루되세요 > 고구미 님이 쓴 글입니다. > 제목 : 수식문의 드립니다.. > 수고 많으십니다... 진입가에 매수,매도가 진입과 동시에 목표가와 손절가를 수평선이나 점등 으로 그릴수 있을까요... 에를들어. 210.00매수 손절-10틱 익절+20틱
프로필 이미지

고구미

2015-04-13 15:39:56

> 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수식문의 드립니다.. > 안녕하세요 예스스탁입니다. 아래 내용을 시스템식 하단에 추가하시면 됩니다. 시스템식에서는 따로 plot명령어를 사용할수 없으므로 추세선 함수로 라인이 출력되도록 해야 합니다. input : Profit(10),Loss(10); var : tl1(0),tl2(0); if MarketPosition == 1 Then{ TL_Delete(tl1); TL_Delete(tl2); tl1 = TL_New(EntryDate,EntryTime,EntryPrice+PriceScale*Profit,sdate,stime,EntryPrice+PriceScale*Profit); tl2 = TL_New(EntryDate,EntryTime,EntryPrice-PriceScale*Loss,sdate,stime,EntryPrice-PriceScale*Loss); } if MarketPosition == -1 Then{ TL_Delete(tl1); TL_Delete(tl2); tl1 = TL_New(EntryDate,EntryTime,EntryPrice-PriceScale*Profit,sdate,stime,EntryPrice-PriceScale*Profit); tl2 = TL_New(EntryDate,EntryTime,EntryPrice+PriceScale*Loss*10,sdate,stime,EntryPrice+PriceScale*Loss); } 즐거운 하루되세요 > 고구미 님이 쓴 글입니다. > 제목 : 수식문의 드립니다.. > 수고 많으십니다... 진입가에 매수,매도가 진입과 동시에 목표가와 손절가를 수평선이나 점등 으로 그릴수 있을까요... 에를들어. 210.00매수 손절-10틱 익절+20틱 라인이 표시가 안나는데요... 제가 잘못하는 건가요>
프로필 이미지

예스스탁 예스스탁 답변

2015-04-14 09:34:06

안녕하세요 예스스탁입니다. 손절값이 좀더 낮게 지정이 되어 있어 수정했ㅅ브니다. 첨부된 그림과 같이 마지막 포지션에 대해 표시가 되는 내용입니다. 첨부된 그림은 아래와 같이 시스템식 하단에 해당 내용을 붙여넣기만 하시면 됩니다. if crossup(c,ma(c,60)) Then buy(); if CrossDown(c,ma(c,60)) Then sell(); input : Profit(10),Loss(10); var : tl1(0),tl2(0); if MarketPosition == 1 Then{ TL_Delete(tl1); TL_Delete(tl2); tl1 = TL_New(EntryDate,EntryTime,EntryPrice+PriceScale*Profit,sdate,stime,EntryPrice+PriceScale*Profit); tl2 = TL_New(EntryDate,EntryTime,EntryPrice-PriceScale*Loss,sdate,stime,EntryPrice-PriceScale*Loss); } if MarketPosition == -1 Then{ TL_Delete(tl1); TL_Delete(tl2); tl1 = TL_New(EntryDate,EntryTime,EntryPrice-PriceScale*Profit,sdate,stime,EntryPrice-PriceScale*Profit); tl2 = TL_New(EntryDate,EntryTime,EntryPrice+PriceScale*Loss,sdate,stime,EntryPrice+PriceScale*Loss); } 차트 전체에 거래에 대해 표시하고자 하시면 아래와 같이 작성하시면 됩니다. if crossup(c,ma(c,60)) Then buy(); if CrossDown(c,ma(c,60)) Then sell(); input : Profit(10),Loss(10); var : tl1(0),tl2(0),tl3(0),tl4(0); TL_Delete(tl1); TL_Delete(tl2); if MarketPosition == 1 Then{ tl1 = TL_New(EntryDate,EntryTime,EntryPrice+PriceScale*Profit,sdate,stime,EntryPrice+PriceScale*Profit); tl2 = TL_New(EntryDate,EntryTime,EntryPrice-PriceScale*Loss,sdate,stime,EntryPrice-PriceScale*Loss); } if MarketPosition == -1 Then{ tl1 = TL_New(EntryDate,EntryTime,EntryPrice-PriceScale*Profit,sdate,stime,EntryPrice-PriceScale*Profit); tl2 = TL_New(EntryDate,EntryTime,EntryPrice+PriceScale*Loss,sdate,stime,EntryPrice+PriceScale*Loss); } if BarsSinceExit(1) == 1 and MarketPosition(1) == 1 Then{ tl3 = TL_New(EntryDate(1),EntryTime(1),EntryPrice(1)+PriceScale*Profit,ExitDate(1),ExitTime(1),EntryPrice(1)+PriceScale*Profit); tl4 = TL_New(EntryDate(1),EntryTime(1),EntryPrice(1)-PriceScale*Loss,ExitDate(1),ExitTime(1),EntryPrice(1)-PriceScale*Loss); } if BarsSinceExit(1) == 1 and MarketPosition(1) == -1 Then{ tl3 = TL_New(EntryDate(1),EntryTime(1),EntryPrice(1)-PriceScale*Profit,ExitDate(1),ExitTime(1),EntryPrice(1)-PriceScale*Profit); tl4 = TL_New(EntryDate(1),EntryTime(1),EntryPrice(1)+PriceScale*Loss,ExitDate(1),ExitTime(1),EntryPrice(1)+PriceScale*Loss); } 즐거운 하루되세요 > 고구미 님이 쓴 글입니다. > 제목 : Re : Re : 수식문의 드립니다.. > > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 수식문의 드립니다.. > 안녕하세요 예스스탁입니다. 아래 내용을 시스템식 하단에 추가하시면 됩니다. 시스템식에서는 따로 plot명령어를 사용할수 없으므로 추세선 함수로 라인이 출력되도록 해야 합니다. input : Profit(10),Loss(10); var : tl1(0),tl2(0); if MarketPosition == 1 Then{ TL_Delete(tl1); TL_Delete(tl2); tl1 = TL_New(EntryDate,EntryTime,EntryPrice+PriceScale*Profit,sdate,stime,EntryPrice+PriceScale*Profit); tl2 = TL_New(EntryDate,EntryTime,EntryPrice-PriceScale*Loss,sdate,stime,EntryPrice-PriceScale*Loss); } if MarketPosition == -1 Then{ TL_Delete(tl1); TL_Delete(tl2); tl1 = TL_New(EntryDate,EntryTime,EntryPrice-PriceScale*Profit,sdate,stime,EntryPrice-PriceScale*Profit); tl2 = TL_New(EntryDate,EntryTime,EntryPrice+PriceScale*Loss*10,sdate,stime,EntryPrice+PriceScale*Loss); } 즐거운 하루되세요 > 고구미 님이 쓴 글입니다. > 제목 : 수식문의 드립니다.. > 수고 많으십니다... 진입가에 매수,매도가 진입과 동시에 목표가와 손절가를 수평선이나 점등 으로 그릴수 있을까요... 에를들어. 210.00매수 손절-10틱 익절+20틱 라인이 표시가 안나는데요... 제가 잘못하는 건가요>