커뮤니티
시스템 질문입니다
2013-10-02 13:10:09
131
글번호 68059
하루하루
090000-095959 진입 시간대에 매수/매도 상관없이 3회 매매횟수제한
하루하루
100000-105959 진입 시간대에 매수/매도 상관없이 2회 매매횟수제한
하루하루
130000-135959 진입 시간대에 매수/매도 상관없이 1회 매매횟수제한
을 하고 싶습니다
답변 1
예스스탁 예스스탁 답변
2013-10-02 14:41:37
안녕하세요
예스스탁입니다.
var : count(0);
if (stime == 090000 or (stime > 090000 and stime[1] < 090000)) or
(stime == 090000 or (stime > 090000 and stime[1] < 090000)) or
(stime == 090000 or (stime > 090000 and stime[1] < 090000)) Then
count = 0;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then{
if stime >= 090000 and stime < 100000 then
count = count+1;
if stime >= 100000 and stime < 110000 then
count = count+1;
if stime >= 130000 and stime < 140000 then
count = count+1;
}
if stime >= 090000 and stime < 100000 and count < 3 Then{
if 매수조건 Then
buy();
if 매도조건 Then
sell();
}
if stime >= 100000 and stime < 110000 and count < 2 Then{
if 매수조건 Then
buy();
if 매도조건 Then
sell();
}
if stime >= 130000 and stime < 140000 and count < 1 Then{
if 매수조건 Then
buy();
if 매도조건 Then
sell();
}
즐거운 하루되세요
> 파인애플 님이 쓴 글입니다.
> 제목 : 시스템 질문입니다
> 하루하루
090000-095959 진입 시간대에 매수/매도 상관없이 3회 매매횟수제한
하루하루
100000-105959 진입 시간대에 매수/매도 상관없이 2회 매매횟수제한
하루하루
130000-135959 진입 시간대에 매수/매도 상관없이 1회 매매횟수제한
을 하고 싶습니다
다음글
이전글