커뮤니티
30MBO관련문의
2005-06-27 08:51:56
1604
글번호 7644
안녕하세요 수고하십니다.
다름이아니라 수식작성법의 예제에있는 30MBO의 주문의 형태를 atstop의 형태로 바꾸고 싶습니다. 조건만족시 즉시 매수가 나가게끔 코딩좀 부탁드립니다.
1. endtime가 092959인이유
2. stop주문에서 crossup이나 crossdown은 봉이 완성되었을때만 인식을 하는지
3. 30MBO를 이용해서 주차트에는 옵션을 보조챠트에는 연결선물지수를
이용해서 매매를 할때 타종목을 참조하는 형태로 timehigh와 timelow를 변환
할 수 했으면 합니다.
//**************30MBO*************************
input : startTime(90000), endTime(092959);
if stime >= 93000 and stime < 145000 and
crossup(C,TimeHigh(startTime,endTime)) then
buy();
if stime >= 93000 and stime < 145000 and
crossdown(C,TimeLow(startTime,endTime)) then
sell();
if stime == 145000 then {
exitlong();
exitshort();
}
답변 1
예스스탁 예스스탁 답변
2005-06-27 10:55:45
안녕하세요
예스스탁입니다.
문의하신 식은 다음과 같습니다.
input : startTime(90000), endTime(092959);
if stime >= 93000 and stime < 145000 then
buy("매수",atstop,TimeHigh(startTime,endTime));
if stime >= 93000 and stime < 145000 then
sell("매도",atstop,TimeLow(startTime,endTime));
if stime == 145000 then {
exitlong();
exitshort();
}
30MBO (30 Minutes Breakout System) 은
장초반 30분 동안의 움직임이 하루의 추세를 결정한다는 것을 기본전제로한 전략입니다.
매수식과 매도식에 'stime >= 93000'는 9시 30분 이후부터 매수나 매도진입이 발생하게 하기 위한 것이고 'stime < 145000'는 14시 50분 이후에 매수진입이나 매도진입 신호가 발생하지 않도록 하기 위해서 입니다.
즉 93000까지 장초반 30분간 가격대 형성을 보아 93000 이후에 진입하는 것으로
TimeHigh(startTime,endTime),TimeLow(startTime,endTime)은
장시작에서 93000까지의 고가와 저가를 가져옵니다.
즉 endTime이 092959 이유는 특정시간대의 끝을 지정하기 위한 것입니다.
아래식은 타종목을 참조하는 형태입니다.
기본차트는 옵션종목으로 참조차트는 연결선물지수를 띄우신 후에
식을 적용하시기 바랍니다.
if date != date[1] then {
var1 =data1("H");
var2 =data1("H");
}
if stime < 93000 then{
if data1("H") > var1 then
var1 = data1("H");
if L < var2 then
var2 = data1("L");
}
if stime >= 93000 and stime < 145000 and
crossup(data1("C"),var1) then
buy("매수");
if stime >= 93000 and stime < 145000 and
crossdown(data1("C"),var2) then
sell("매도");
if stime == 145000 then {
exitlong();
exitshort();
}
타종목을 참조하는경우 타종목의 값을 가져오므로
atstop이 의미가 없으므로 종가기준으로 만들었습니다.
즐거운 하루되세요
즐거운 하루되세요
> 히말라야 님이 쓴 글입니다.
> 제목 : 30MBO관련문의
> 안녕하세요 수고하십니다.
다름이아니라 수식작성법의 예제에있는 30MBO의 주문의 형태를 atstop의 형태로 바꾸고 싶습니다. 조건만족시 즉시 매수가 나가게끔 코딩좀 부탁드립니다.
1. endtime가 092959인이유
2. stop주문에서 crossup이나 crossdown은 봉이 완성되었을때만 인식을 하는지
3. 30MBO를 이용해서 주차트에는 옵션을 보조챠트에는 연결선물지수를
이용해서 매매를 할때 타종목을 참조하는 형태로 timehigh와 timelow를 변환
할 수 했으면 합니다.
//**************30MBO*************************
input : startTime(90000), endTime(092959);
if stime >= 93000 and stime < 145000 and
crossup(C,TimeHigh(startTime,endTime)) then
buy();
if stime >= 93000 and stime < 145000 and
crossdown(C,TimeLow(startTime,endTime)) then
sell();
if stime == 145000 then {
exitlong();
exitshort();
}