커뮤니티
재문의 드립니다.
2014-03-19 17:15:23
137
글번호 73641
제가 질문을 잘못 올렸습니다.
다음과 같은 시스템식 작성 부탁 드리겠습니다.
120틱 차트 기준이며,
#진입기준
data2 이 1.0을 상향 돌파하면 매수
data2 이 1.0을 하향 돌파하면 매도
#청산기준
진입후 4틱익절, 4틱손절
진입 청산후 30분만 매매금지
당일 2시 50분 이후 진입금지
답변 1
예스스탁 예스스탁 답변
2014-03-19 18:04:47
안녕하세요
예스스탁입니다.
input : Price(1.0);
var : cnt(0),count(0);
count = 0;
for cnt = 0 to 20{
if sdate == EntryDate(cnt) Then
count = count+1;
}
if stime < 145000 Then{
if MarketPosition == 0 and count == 0 and data2(crossup(c,price)) Then
buy();
if MarketPosition == 0 and count == 0 and data2(CrossDown(c,price)) Then
Sell();
if MarketPosition == 0 and count >= 1 and TimeToMinutes(stime) >= TimeToMinutes(ExitTime(1))+30 and data2(crossup(c,price)) Then
buy();
if MarketPosition == 0 and count >= 1 and TimeToMinutes(stime) >= TimeToMinutes(ExitTime(1))+30 and data2(CrossDown(c,price)) Then
Sell();
}
SetStopProfittarget(PriceScale*4,PointStop);
SetStopLoss(PriceScale*4,PointStop);
SetStopEndofday(145000);
즐거운 하루되세요
> 린포체 님이 쓴 글입니다.
> 제목 : 재문의 드립니다.
> 제가 질문을 잘못 올렸습니다.
다음과 같은 시스템식 작성 부탁 드리겠습니다.
120틱 차트 기준이며,
#진입기준
data2 이 1.0을 상향 돌파하면 매수
data2 이 1.0을 하향 돌파하면 매도
#청산기준
진입후 4틱익절, 4틱손절
진입 청산후 30분만 매매금지
당일 2시 50분 이후 진입금지
이전글