커뮤니티
30MBO 관련문의
2004-01-04 21:30:45
1762
글번호 1829
노고에 감사드립니다...
매뉴얼의 시간함수매매 30MBO 전략을 참고하고 있는데요
30분까지의 고가 돌파시 매수, 저가 돌파시 매도로요.....
그런데 여기에 강제청산규정을 넣어서
선물 0.5포인트 Loss Cut 규정을 적용하면요
30분 이후 한번 진입한 이후 Loss Cut 발생되었을 경우 그 이후에
다시 최초 30분의 고가를 넘어가면 매수신호가 또 나오는데요....
이렇게 하지 말고
그때까지시간의 고가를 돌파시 재매수하게 할려면
수식 어떻게 작성해야 하나요?
부탁드리겠습니다.
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
예스스탁 예스스탁 답변
2004-01-05 10:37:34
안녕하세요..예스스탁입니다.
문의하신 내용을 다음과 같이 작성해 보았습니다.
아래식은 첫번째 진입에서는 9시부터 9시 30분 까지의 고가나 저가를 돌파시 진입하지만, 두번째 이후 진입부터는 9시부터 직전봉의 고가나 저가를 돌파시 진입하게 됩니다.
Input : startTime(90000), endTime(092959);
Var : Bcnt(0), Scnt(0);
if date != date[1] then {
Bcnt = 0;
Scnt = 0;
}
If stime >= 93000 and stime < 145000 then {
If Bcnt == 0 and crossUp(C,TimeHigh(startTime,endTime)) then {
Buy();
Bcnt = Bcnt+1;
}
if Bcnt != 0 and CrossUp(C,timeHighex(startTime,stime[1])) then {
Buy();
Bcnt = Bcnt+1;
}
}
If stime >= 93000 and stime < 145000 then {
If Scnt == 0 and crossDown(C,TimeLow(startTime,endTime)) then {
Sell();
Scnt = Scnt+1;
}
If Scnt != 0 and crossDown(C,TimeLowex(startTime,stime[1])) then {
Sell();
Scnt = Scnt+1;
}
}
If stime == 145000 then {
Exitlong();
Exitshort();
}
> CJ_ktyls 님이 쓴 글입니다.
> 제목 : 30MBO 관련문의
> 노고에 감사드립니다...
매뉴얼의 시간함수매매 30MBO 전략을 참고하고 있는데요
30분까지의 고가 돌파시 매수, 저가 돌파시 매도로요.....
그런데 여기에 강제청산규정을 넣어서
선물 0.5포인트 Loss Cut 규정을 적용하면요
30분 이후 한번 진입한 이후 Loss Cut 발생되었을 경우 그 이후에
다시 최초 30분의 고가를 넘어가면 매수신호가 또 나오는데요....
이렇게 하지 말고
그때까지시간의 고가를 돌파시 재매수하게 할려면
수식 어떻게 작성해야 하나요?
부탁드리겠습니다.
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(); }