커뮤니티
문의 드립니다.
2014-07-03 23:15:55
127
글번호 76389
안녕하세요
아래와 같은 시스템 작성 부탁드립니다.
1. 새벽 1시 이후 나오는 첫 MACD (매수,매도 상관없음) 진입
이후 10틱 익절, 익절이 안될 시 다음 반대신호에 청산- 하루 매매 1회
2. 새벽 1시 이후 나오는 첫 MACD (매수,매도 상관없음) 진입
이후 10틱 익절, 익절이 안될 시 다음 반대신호에 청산
청산 시, 손절일 경우 스위칭해서 다음반대신호에 청산- 하루 매매 2회
3. 새벽 1시 이후 나오는 두번째 MACD (매수,매도 상관없음) 진입
이후 10틱 익절, 익절이 안될 시 다음 반대신호에 청산
이렇게 세개 시스템식 부탁드립니다.
감사합니다.
답변 1
예스스탁 예스스탁 답변
2014-07-04 11:45:56
안녕하세요
예스스탁입니다.
1.
input : P1(12),P2(26),P3(9);
var : MACDV(0),MACDS(0),entry(0);
if stime == 010000 or (stime > 010000 or stime[1] < 010000) Then
entry = 0;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
entry = entry+1;
if entry == 0 Then{
if crossup(MACDv,MACDS) Then
buy();
if CrossDown(MACDv,MACDS) Then
sell();
}
if MarketPosition == 1 and CrossDown(macdv,macds) Then
ExitLong();
if MarketPosition == -1 and CrossUp(macdv,macds) Then
ExitShort();
SetStopProfittarget(PriceScale*10,PointStop);
2.
input : P1(12),P2(26),P3(9);
var : MACDV(0),MACDS(0),entry(0);
if stime == 010000 or (stime > 010000 or stime[1] < 010000) Then
entry = 0;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
entry = entry+1;
if entry == 0 Then{
if crossup(MACDv,MACDS) Then
buy();
if CrossDown(MACDv,MACDS) Then
sell();
}
if MarketPosition == 1 and entry == 1 and CrossDown(macdv,macds) Then{
if C >= EntryPrice Then
ExitLong();
Else
sell();
}
if MarketPosition == -1 and entry == 1 and CrossUp(macdv,macds) Then {
if C <= EntryPrice Then
ExitShort();
Else
buy();
}
SetStopProfittarget(PriceScale*10,PointStop);
3.
input : P1(12),P2(26),P3(9);
var : MACDV(0),MACDS(0),entry(0),cnt(0);
if stime == 010000 or (stime > 010000 or stime[1] < 010000) Then{
entry = 0;
cnt = 0;
}
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
entry = entry+1;
if entry == 0 Then{
if crossup(MACDv,MACDS) Then{
cnt = cnt+1;
if cnt == 2 Then
buy();
}
if CrossDown(MACDv,MACDS) Then{
cnt = cnt+1;
if cnt == 2 Then
sell();
}
}
if MarketPosition == 1 and CrossDown(macdv,macds) Then
ExitLong();
if MarketPosition == -1 and CrossUp(macdv,macds) Then
ExitShort();
SetStopProfittarget(PriceScale*10,PointStop);
즐거운 하루되세요
> 소러스 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
> 안녕하세요
아래와 같은 시스템 작성 부탁드립니다.
1. 새벽 1시 이후 나오는 첫 MACD (매수,매도 상관없음) 진입
이후 10틱 익절, 익절이 안될 시 다음 반대신호에 청산- 하루 매매 1회
2. 새벽 1시 이후 나오는 첫 MACD (매수,매도 상관없음) 진입
이후 10틱 익절, 익절이 안될 시 다음 반대신호에 청산
청산 시, 손절일 경우 스위칭해서 다음반대신호에 청산- 하루 매매 2회
3. 새벽 1시 이후 나오는 두번째 MACD (매수,매도 상관없음) 진입
이후 10틱 익절, 익절이 안될 시 다음 반대신호에 청산
이렇게 세개 시스템식 부탁드립니다.
감사합니다.