커뮤니티
문의
2012-07-24 10:42:47
233
글번호 53206
야간선물은 생소하네요.
아래식은 야간선물식인데요.
오류수정+수식추가 부탁드립니다.
1.(오류)
이상하게도 24시후부터 신호가 나오는데 수정부탁드립니다.
(설정역시 당일청산은 체크되어있지 않습니다.)
2.
진입식에 주석으로 달았습니다.
주석 부분 수식 부탁드립니다.
감사합니다.
var :Period1(2),Period2(3);
value20 = ma(bids,period1)-ma(asks,period1);
value21 = ma(bids,period1)-ma(asks,period1);
if (stime >= 181000 or stime < 44000) and stime[1] < 180000
then{
if Value20 > 0
// and 야간시가보다 크다 and 전일야간 종가보다 크다 and 당일매매 1회제한
Then{
buy("b");
}
else if Value21 < 0
//and 야간시가보다 크다 and 전일야간 종가보다 크다 and 당일매매 1회제한
Then {
sell("s");
}
}
if stime >= 043000
then{
exitlong();
exitshort();
}
답변 1
예스스탁 예스스탁 답변
2012-07-24 12:34:58
안녕하세요
예스스탁입니다.
var :Period1(2),Period2(3);
value20 = ma(bids,period1)-ma(asks,period1);
value21 = ma(bids,period1)-ma(asks,period1);
#전일야간장 종가
if stime == 90000 or (stime > 90000 and stime[1] < 90000) Then
var1 = c[1];
#야간장 당일 시초가
if stime == 180000 or (stime > 180000 and stime[1] < 180000) Then{
var2 = O;
Condition1 = false;
}
if (stime >= 180000 or stime < 43000) then{
if MarketPosition != 0 Then
Condition1 = true;
if Value20 > 0 and C > var1 and C > var2 and Condition1 == false Then{
buy("b");
}
if Value21 < 0 and C > var1 and C > var2 and Condition1 == false Then{
sell("s");
}
}
if stime >= 043000 and stime[1] < 043000
then{
exitlong();
exitshort();
}
야간장에서 한번만 신호가 발생합니다.
많은 신호 보고자 하시면 진입식에 condition1 == false를 제거하시면
됩니다.
즐거운 하루되세요
> 털보 님이 쓴 글입니다.
> 제목 : 문의
> 야간선물은 생소하네요.
아래식은 야간선물식인데요.
오류수정+수식추가 부탁드립니다.
1.(오류)
이상하게도 24시후부터 신호가 나오는데 수정부탁드립니다.
(설정역시 당일청산은 체크되어있지 않습니다.)
2.
진입식에 주석으로 달았습니다.
주석 부분 수식 부탁드립니다.
감사합니다.
var :Period1(2),Period2(3);
value20 = ma(bids,period1)-ma(asks,period1);
value21 = ma(bids,period1)-ma(asks,period1);
if (stime >= 181000 or stime < 44000) and stime[1] < 180000
then{
if Value20 > 0
// and 야간시가보다 크다 and 전일야간 종가보다 크다 and 당일매매 1회제한
Then{
buy("b");
}
else if Value21 < 0
//and 야간시가보다 크다 and 전일야간 종가보다 크다 and 당일매매 1회제한
Then {
sell("s");
}
}
if stime >= 043000
then{
exitlong();
exitshort();
}