커뮤니티

손절매식좀 부탁드립니다.

프로필 이미지
감자골2
2011-05-20 15:22:45
633
글번호 38882
답변완료
안녕하세요. 지난번 수식 너무 잘쓰고있습니다. 그래서 이번에는 손절매식좀 부탁드리겠습니다. input : 조건(1),TT(93000); //조건1이면 첫봉에서 매수, 조건0이면 첫봉에서 매도 if sdate < CurrentDate Then{ if 조건 == 1 Then if dayindex == 0 then buy(); if 조건 == 0 Then if dayindex == 0 then sell(); } if sdate == CurrentDate and stime >= TT Then{ if CrossUp( C, ma(C,10)) and C > O then exitshort("매도청산",AtMarket); if CrossDown(C, ma(C,10)) and C < O then exitlong("매수청산",AtMarket); SetStopEndofday(150000); } Else SetStopEndofday(0); 이식에 1.0포인트 손실이 나면 손절매가되도록 부탁드립니다 에를들어서 278.00엣서 매수했는데 277.00포인트가되면손절매가될수있게부탁드립니다. 이번에도 좋은 답변 부탁드립니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-05-20 17:03:05

안녕하세요 예스스탁입니다. input : 조건(1),TT(93000); //조건1이면 첫봉에서 매수, 조건0이면 첫봉에서 매도 if sdate < CurrentDate Then{ if 조건 == 1 Then if dayindex == 0 then buy(); if 조건 == 0 Then if dayindex == 0 then sell(); } if sdate == CurrentDate and stime >= TT Then{ if CrossUp( C, ma(C,10)) and C > O then exitshort("매도청산",AtMarket); if CrossDown(C, ma(C,10)) and C < O then exitlong("매수청산",AtMarket); SetStopEndofday(150000); } Else SetStopEndofday(0); SetStopLoss(1,PointStop); 즐거운 하루되세요 > 감자골2 님이 쓴 글입니다. > 제목 : 손절매식좀 부탁드립니다. > 안녕하세요. 지난번 수식 너무 잘쓰고있습니다. 그래서 이번에는 손절매식좀 부탁드리겠습니다. input : 조건(1),TT(93000); //조건1이면 첫봉에서 매수, 조건0이면 첫봉에서 매도 if sdate < CurrentDate Then{ if 조건 == 1 Then if dayindex == 0 then buy(); if 조건 == 0 Then if dayindex == 0 then sell(); } if sdate == CurrentDate and stime >= TT Then{ if CrossUp( C, ma(C,10)) and C > O then exitshort("매도청산",AtMarket); if CrossDown(C, ma(C,10)) and C < O then exitlong("매수청산",AtMarket); SetStopEndofday(150000); } Else SetStopEndofday(0); 이식에 1.0포인트 손실이 나면 손절매가되도록 부탁드립니다 에를들어서 278.00엣서 매수했는데 277.00포인트가되면손절매가될수있게부탁드립니다. 이번에도 좋은 답변 부탁드립니다.