커뮤니티
진입시간 필터
2017-07-19 15:58:21
111
글번호 111449
input : event1(060000), event2(050000);
if timetominutes(stime) <= timetominutes(event1)-65 or
timetominutes(stime) >= timetominutes(event1)+15
then
timecond1 = true;
else
timecond1 = false;
if timetominutes(stime) <= timetominutes(event2)-65 or
timetominutes(stime) >= timetominutes(event2)+15
then
timecond2 = true;
else
timecond2 = false;
if timecond1 == true and timecond2 == true then
{ 진입청산 수식들 }
예전에 답변해 주신내용을 응용해서 만든 수식입니다.
이벤트 시간을 2개 지정해서 65분 전과 15분 후에는 진입하지 않겠다는 것인데요...
생각처럼 안되네요.
60분봉이라고 할때
분명 위의 수식이라면 3시 55분 부터는 진입을 안해야 되는데 4시 완성된 캔들에서 진입조건이 맞으니까 5시 경에 진입해 버리는 군요... 이해가 안가네요... 뭐가 잘못된 거죠? 위의 수식대로라면 3시 55분 부터 6시 15분까지 진입이 계속 안되야하는 거 아닐까요?
답변 1
예스스탁 예스스탁 답변
2017-07-20 12:25:57
안녕하세요
예스스탁입니다.
plot1(stime);
plot2(time);
위 지표적용해 보시면 차트의 시작시간과 끝시간을 확인하실수 있습니다.
해외선물은 차트에 표시되는 시간이 해당 봉이 완성되는 시간(다음봉시가시간)입니다.
수식을 time으로 변경하시면 됩니다.
input : event1(060000), event2(050000);
var : timecond1(false),timecond2(false);
if timetominutes(time) <= timetominutes(event1)-65 or
timetominutes(time) >= timetominutes(event1)+15
then
timecond1 = true;
else
timecond1 = false;
if timetominutes(time) <= timetominutes(event2)-65 or
timetominutes(time) >= timetominutes(event2)+15
then
timecond2 = true;
else
timecond2 = false;
즐거운 하루되세요
> 마인드마스터 님이 쓴 글입니다.
> 제목 : 진입시간 필터
> input : event1(060000), event2(050000);
if timetominutes(stime) <= timetominutes(event1)-65 or
timetominutes(stime) >= timetominutes(event1)+15
then
timecond1 = true;
else
timecond1 = false;
if timetominutes(stime) <= timetominutes(event2)-65 or
timetominutes(stime) >= timetominutes(event2)+15
then
timecond2 = true;
else
timecond2 = false;
if timecond1 == true and timecond2 == true then
{ 진입청산 수식들 }
예전에 답변해 주신내용을 응용해서 만든 수식입니다.
이벤트 시간을 2개 지정해서 65분 전과 15분 후에는 진입하지 않겠다는 것인데요...
생각처럼 안되네요.
60분봉이라고 할때
분명 위의 수식이라면 3시 55분 부터는 진입을 안해야 되는데 4시 완성된 캔들에서 진입조건이 맞으니까 5시 경에 진입해 버리는 군요... 이해가 안가네요... 뭐가 잘못된 거죠? 위의 수식대로라면 3시 55분 부터 6시 15분까지 진입이 계속 안되야하는 거 아닐까요?