커뮤니티
질문 드립니다.
2012-02-15 17:01:19
405
글번호 47793
아래의 수식에 "하루에 한번만 진입하라"는 조건을 어떻게 작성해야 하는지 궁금합니다.
if dayhigh-daylow >= (dayhigh(1)-daylow(1))*0.5 and C > dayopen Then
buy();
if dayhigh-daylow >= (dayhigh(1)-daylow(1))*0.5 and C < dayopen Then
Sell();
답변 1
예스스탁 예스스탁 답변
2012-02-15 20:40:42
안녕하세요
예스스탁입니다.
input : N(1);
var : cnt(0),count(0);
count = 0;
for cnt = 0 to 10{
if sdate != ExitDate(1) Then
count = count+1;
}
if count < N Then{
if dayhigh-daylow >= (dayhigh(1)-daylow(1))*0.5 and C > dayopen Then
buy();
if dayhigh-daylow >= (dayhigh(1)-daylow(1))*0.5 and C < dayopen Then
Sell();
}
즐거운 하루되세요
> 앙두 님이 쓴 글입니다.
> 제목 : 질문 드립니다.
> 아래의 수식에 "하루에 한번만 진입하라"는 조건을 어떻게 작성해야 하는지 궁금합니다.
if dayhigh-daylow >= (dayhigh(1)-daylow(1))*0.5 and C > dayopen Then
buy();
if dayhigh-daylow >= (dayhigh(1)-daylow(1))*0.5 and C < dayopen Then
Sell();
다음글