커뮤니티
문의합니다.
2013-12-21 08:55:15
140
글번호 70708
진입후 3 개봉 이내에서는 다음 신호가 나오지 않도록 하는 방법 알고 싶습니다.
짭은 봉을 쓸 경우 잦은 진입을 좀 줄여 보려고 합니다.
아래 식에 넣으려면 어떻게 하나요...
시간으로 설정하려면..?? (진입후 5분이내 다음 신호 안나오게 하는 방법 등...)
감사합니다...
var : count(0),cnt(0);
count = 0;
for cnt = 0 to 20{
if sdate == EntryDate(cnt) Then
count = count+1;
}
#당일 5회,
if count < 5 and stime >= 091000 and stime < 143000 and crossup(C,value) then
buy();
답변 1
예스스탁 예스스탁 답변
2013-12-23 09:42:56
안녕하세요
예스스탁입니다
1.3개봉 이후
var : count(0),cnt(0);
count = 0;
for cnt = 0 to 20{
if sdate == EntryDate(cnt) Then
count = count+1;
}
#당일 5회
if count < 5 and stime >= 091000 and stime < 143000 and crossup(C,value) then{
if count == 0 or (count >= 1 and BarsSinceExit(1) >= 3) then
buy();
}
2. 3분 이후
var : count(0),cnt(0);
count = 0;
for cnt = 0 to 20{
if sdate == EntryDate(cnt) Then
count = count+1;
}
#당일 5회
if count < 5 and stime >= 091000 and stime < 143000 and crossup(C,value) then{
if count == 0 or (count >= 1 and TimeToMinutes(stime) >= TimeToMinutes(ExitTime(1))+3) then
buy();
}
즐거운 하루되세요
> HI_pj***** 님이 쓴 글입니다.
> 제목 : 문의합니다.
> 진입후 3 개봉 이내에서는 다음 신호가 나오지 않도록 하는 방법 알고 싶습니다.
짭은 봉을 쓸 경우 잦은 진입을 좀 줄여 보려고 합니다.
아래 식에 넣으려면 어떻게 하나요...
시간으로 설정하려면..?? (진입후 5분이내 다음 신호 안나오게 하는 방법 등...)
감사합니다...
var : count(0),cnt(0);
count = 0;
for cnt = 0 to 20{
if sdate == EntryDate(cnt) Then
count = count+1;
}
#당일 5회,
if count < 5 and stime >= 091000 and stime < 143000 and crossup(C,value) then
buy();
다음글
이전글