커뮤니티
수식 문의 드립니다
2014-05-29 12:42:29
155
글번호 75457
안녕하세요..
Input : N(1);
Var : cnt(0),count(0);
count = 0;
for cnt = 0 to 10 {
if EntryDate(cnt) == sDate Then
Count = count+1 ;
}
if stime < 90300 Then {
if Data2(dayindex == 0 and c>1) Then
Buy("매수진입");
if Data2(DayIndex == 0 and c<1) Then
Sell("매도진입");
}
#손절 1포인트
SetStopLoss(1,PointStop);
#목표수익 1포인트
SetStopProfittarget(1.05,PointStop);
#당일 2시 50분 청산
SetStopEndofday(145000);
위와 같은 식에
- data2의 시가가 0.5이하이면 매수금지
- data2의 시가가 1.5이상이면 매도금지
수식좀 추가 부탁드립니다.
답변 1
예스스탁 예스스탁 답변
2014-05-29 14:48:39
안녕하세요
예스스탁입니다.
Input : N(1);
Var : cnt(0),count(0);
count = 0;
for cnt = 0 to 10 {
if EntryDate(cnt) == sDate Then
Count = count+1 ;
}
if stime < 90300 Then {
if Data2(dayindex == 0 and c>1 and OpenD(0) > 0.5) Then
Buy("매수진입");
if Data2(DayIndex == 0 and c<1 and OpenD(0) < 0.5) Then
Sell("매도진입");
}
#손절 1포인트
SetStopLoss(1,PointStop);
#목표수익 1포인트
SetStopProfittarget(1.05,PointStop);
#당일 2시 50분 청산
SetStopEndofday(145000);
즐거운 하루되세요
> 린포체 님이 쓴 글입니다.
> 제목 : 수식 문의 드립니다
> 안녕하세요..
Input : N(1);
Var : cnt(0),count(0);
count = 0;
for cnt = 0 to 10 {
if EntryDate(cnt) == sDate Then
Count = count+1 ;
}
if stime < 90300 Then {
if Data2(dayindex == 0 and c>1) Then
Buy("매수진입");
if Data2(DayIndex == 0 and c<1) Then
Sell("매도진입");
}
#손절 1포인트
SetStopLoss(1,PointStop);
#목표수익 1포인트
SetStopProfittarget(1.05,PointStop);
#당일 2시 50분 청산
SetStopEndofday(145000);
위와 같은 식에
- data2의 시가가 0.5이하이면 매수금지
- data2의 시가가 1.5이상이면 매도금지
수식좀 추가 부탁드립니다.
다음글