커뮤니티
문의드립니다.
2014-09-16 03:22:57
128
글번호 78556
1.음봉에 매수.당일 저가 손절.. 익절은 70틱. .
거래는 한번만, 손절되지 않거나 익절되지 않으면 새벽 04시30분 청산 및 종료.
2.양봉에 매도.당일 고가 손절.. 익절은 70틱. 거래는 한번만 하고 종료.
거래는 한번만, 손절되지 않거나 익절되지 않으면 새벽 04시30분 청산 및 종료.
3.이평 5선이 20선을 데드크로스 매수.당일 저가 손절.익절은 70틱.
거래는 한번만, 손절되지 않거나 익절되지 않으면 새벽 04시30분 청산 및 종료.
4.이평 5선이 20선을 골든크로스 매도.당일 고가 손절.익절은 70틱.
거래는 한번만, 손절되지 않거나 익절되지 않으면 새벽 04시30분 청산 및 종료.
부탁드리겠습니다. 수고하세요.
답변 1
예스스탁 예스스탁 답변
2014-09-16 11:47:43
안녕하세요
예스스탁입니다.
1.
input : 시작시간(210000),끝시간(043000);
var : EntryStart(false),Entrycnt(0);
if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then{
EntryStart = true;
Entrycnt = 0;
}
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
EntryStart = false;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
Entrycnt = Entrycnt+1;
if MarketPosition == 0 and C < O and EntryStart == true and Entrycnt < 1 Then
buy();
if MarketPosition == 1 Then{
ExitLong("bp",AtLimit,EntryPrice+PriceScale*70);
ExitLong("bl",AtStop,daylow-PriceScale);
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
ExitLong();
}
2.
input : 시작시간(210000),끝시간(043000);
var : EntryStart(false),Entrycnt(0);
if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then{
EntryStart = true;
Entrycnt = 0;
}
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
EntryStart = false;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
Entrycnt = Entrycnt+1;
if MarketPosition == 0 and C > O and EntryStart == true and Entrycnt < 1 Then
sell();
if MarketPosition == -1 Then{
ExitShort("sp",AtLimit,EntryPrice-PriceScale*70);
ExitShort("sl",AtStop,dayhigh+PriceScale);
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
ExitShort();
}
3.
input : 시작시간(210000),끝시간(043000);
var : EntryStart(false),Entrycnt(0);
var1 = ma(c,5);
var2 = ma(c,20);
if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then{
EntryStart = true;
Entrycnt = 0;
}
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
EntryStart = false;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
Entrycnt = Entrycnt+1;
if MarketPosition == 0 and CrossDown(var1,var2) and EntryStart == true and Entrycnt < 1 Then
buy();
if MarketPosition == 1 Then{
ExitLong("bp",AtLimit,EntryPrice+PriceScale*70);
ExitLong("bl",AtStop,daylow-PriceScale);
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
ExitLong();
}
4.
input : 시작시간(210000),끝시간(043000);
var : EntryStart(false),Entrycnt(0);
var1 = ma(c,5);
var2 = ma(c,20);
if stime == 시작시간 or (stime > 시작시간 and stime[1] < 시작시간) Then{
EntryStart = true;
Entrycnt = 0;
}
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
EntryStart = false;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
Entrycnt = Entrycnt+1;
if MarketPosition == 0 and crossup(var1,var2) and EntryStart == true and Entrycnt < 1 Then
sell();
if MarketPosition == -1 Then{
ExitShort("sp",AtLimit,EntryPrice-PriceScale*70);
ExitShort("sl",AtStop,dayhigh+PriceScale);
if stime == 끝시간 or (stime > 끝시간 and stime[1] < 끝시간) Then
ExitShort();
}
즐거운 하루되세요
> 아침한때비51 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 1.음봉에 매수.당일 저가 손절.. 익절은 70틱. .
거래는 한번만, 손절되지 않거나 익절되지 않으면 새벽 04시30분 청산 및 종료.
2.양봉에 매도.당일 고가 손절.. 익절은 70틱. 거래는 한번만 하고 종료.
거래는 한번만, 손절되지 않거나 익절되지 않으면 새벽 04시30분 청산 및 종료.
3.이평 5선이 20선을 데드크로스 매수.당일 저가 손절.익절은 70틱.
거래는 한번만, 손절되지 않거나 익절되지 않으면 새벽 04시30분 청산 및 종료.
4.이평 5선이 20선을 골든크로스 매도.당일 고가 손절.익절은 70틱.
거래는 한번만, 손절되지 않거나 익절되지 않으면 새벽 04시30분 청산 및 종료.
부탁드리겠습니다. 수고하세요.
다음글
이전글