커뮤니티
문의드립니다.
2014-09-19 07:08:02
139
글번호 78663
1.이평120선이 240선 위에 있고 음봉이면 매수. 손절 당일저가. 진입조건 되면 계속 진입.
오후 5시 30분 시작.. 오전 04시30분 청산 및 거래종료.
2.이평120선이 240선 아래에 있고 양봉이면 매도. 손절 당일고가.진입조건 되면 계속 진입.
오후 5시 30분 시작..오전 04시30분 청산 및 거래종료.
3.이평 120선이 240선 위에 있고 음봉이면 매수. 120선이 240선 아래에 있고 양봉이면 매도.
오후 5시 30분 시작..오전 04시 30분 청산 및 거래종료.
부탁드리겠습니다. 수고하세요.
답변 1
예스스탁 예스스탁 답변
2014-09-19 11:02:59
안녕하세요
예스스탁입니다.
1.
input : 시작시간(173000),끝시간(043000);
var : EntryStart(false),Entrycnt(0);
var1 = ma(c,120);
var2 = ma(c,240);
if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then{
EntryStart = true;
}
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
EntryStart = false;
if MarketPosition == 0 and var1 > var2 and C < O and EntryStart == true Then
buy();
if MarketPosition == 1 Then{
ExitLong("bl",AtStop,daylow-PriceScale);
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
ExitLong();
}
2.
input : 시작시간(173000),끝시간(043000);
var : EntryStart(false),Entrycnt(0);
var1 = ma(c,120);
var2 = ma(c,240);
if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then{
EntryStart = true;
}
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
EntryStart = false;
if MarketPosition == 0 and var1 < var2 and C > O and EntryStart == true Then
sell();
if MarketPosition == -1 Then{
ExitShort("sl",AtStop,dayhigh+PriceScale);
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
ExitShort();
}
3.
input : 시작시간(173000),끝시간(043000);
var : EntryStart(false),Entrycnt(0);
var1 = ma(c,120);
var2 = ma(c,240);
if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then{
EntryStart = true;
}
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
EntryStart = false;
if var1 > var2 and C < O and EntryStart == true Then
buy();
if var1 < var2 and C > O and EntryStart == true Then
sell();
if MarketPosition == 1 Then{
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
ExitLong();
}
if MarketPosition == -1 Then{
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
ExitShort();
}
즐거운 하루되세요
> 아침한때비51 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 1.이평120선이 240선 위에 있고 음봉이면 매수. 손절 당일저가. 진입조건 되면 계속 진입.
오후 5시 30분 시작.. 오전 04시30분 청산 및 거래종료.
2.이평120선이 240선 아래에 있고 양봉이면 매도. 손절 당일고가.진입조건 되면 계속 진입.
오후 5시 30분 시작..오전 04시30분 청산 및 거래종료.
3.이평 120선이 240선 위에 있고 음봉이면 매수. 120선이 240선 아래에 있고 양봉이면 매도.
오후 5시 30분 시작..오전 04시 30분 청산 및 거래종료.
부탁드리겠습니다. 수고하세요.