커뮤니티
수정 요청
2018-03-16 08:24:35
187
글번호 117441
첨부파일은 시작시간을 130000로 했는데 09시대에 진입합니다.
살펴주세요
**************
안녕하세요
예스스탁입니다.
input : 틱(7),차수(2),시간(100000);
var : T(0),cnt(0);
if (sdate != sdate[1] and stime >= 시간) or
(sdate == sdate[1] and stime >= 시간 and stime[1] < 시간) Then{
T = 0;
cnt = 0;
}
if T <= 0 and C >= O+PriceScale*틱 Then{
T = 1;
cnt = cnt+1;
if cnt == 차수 Then
buy();
}
if T >= 0 and C <= O+PriceScale*틱 Then{
T = -1;
cnt = cnt+1;
if cnt == 차수 Then
sell();
}
즐거운 하루되세요
> 목마와숙녀 님이 쓴 글입니다.
> 제목 : 시작시간 조절
> 아래수식에 대해
입력시간부터 장시작으로 인식하는 시간조절 input 추가바랍니다.
***************
input : 틱(7),차수(2);
var : T(0),cnt(0);
if Bdate != Bdate[1] Then{
T = 0;
cnt = 0;
}
if T <= 0 and C >= O+PriceScale*틱 Then{
T = 1;
cnt = cnt+1;
if cnt == 차수 Then
buy();
}
if T >= 0 and C <= O+PriceScale*틱 Then{
T = -1;
cnt = cnt+1;
if cnt == 차수 Then
sell();
}
- 1. 시작시간_오류.jpg (0.46 MB)
답변 1
예스스탁 예스스탁 답변
2018-03-16 15:06:24
안녕하세요
예스스탁입니다.
수식의 초기화가 지정한 시간입니다.
해당 시간이전에 진입을 하지 않는 내용은 없습니다.
input : 틱(7),차수(2),시간(100000);
var : T(0),cnt(0);
if sdate != sdate[1] Then
Condition1 = false;
if (sdate != sdate[1] and stime >= 시간) or
(sdate == sdate[1] and stime >= 시간 and stime[1] < 시간) Then{
Condition1 = true;
T = 0;
cnt = 0;
}
if Condition1 == true then
{
if T <= 0 and C >= O+PriceScale*틱 Then{
T = 1;
cnt = cnt+1;
if cnt == 차수 Then
buy();
}
if T >= 0 and C <= O+PriceScale*틱 Then{
T = -1;
cnt = cnt+1;
if cnt == 차수 Then
sell();
}
}
즐거운 하루되세요
> 목마와숙녀 님이 쓴 글입니다.
> 제목 : 수정 요청
> 첨부파일은 시작시간을 130000로 했는데 09시대에 진입합니다.
살펴주세요
**************
안녕하세요
예스스탁입니다.
input : 틱(7),차수(2),시간(100000);
var : T(0),cnt(0);
if (sdate != sdate[1] and stime >= 시간) or
(sdate == sdate[1] and stime >= 시간 and stime[1] < 시간) Then{
T = 0;
cnt = 0;
}
if T <= 0 and C >= O+PriceScale*틱 Then{
T = 1;
cnt = cnt+1;
if cnt == 차수 Then
buy();
}
if T >= 0 and C <= O+PriceScale*틱 Then{
T = -1;
cnt = cnt+1;
if cnt == 차수 Then
sell();
}
즐거운 하루되세요
> 목마와숙녀 님이 쓴 글입니다.
> 제목 : 시작시간 조절
> 아래수식에 대해
입력시간부터 장시작으로 인식하는 시간조절 input 추가바랍니다.
***************
input : 틱(7),차수(2);
var : T(0),cnt(0);
if Bdate != Bdate[1] Then{
T = 0;
cnt = 0;
}
if T <= 0 and C >= O+PriceScale*틱 Then{
T = 1;
cnt = cnt+1;
if cnt == 차수 Then
buy();
}
if T >= 0 and C <= O+PriceScale*틱 Then{
T = -1;
cnt = cnt+1;
if cnt == 차수 Then
sell();
}
다음글
이전글