커뮤니티
다시한번 검토 부탁드리겠습니다.
2014-07-04 12:27:15
111
글번호 76415
안녕하세요
아래와 같은 시스템 예스글로벌에 적용시켜보니 검증이 완료되었다고만 하고 실제 매수매도가 이루어지지 않습니다.
번거로우시겠지만 다시한번 확인 부탁드립니다.
감사합니다.
1. 새벽 1시 이후 나오는 첫 MACD (매수,매도 상관없음) 진입
이후 10틱 익절, 익절이 안될 시 다음 반대신호에 청산- 하루 매매 1회
2. 새벽 1시 이후 나오는 첫 MACD (매수,매도 상관없음) 진입
이후 10틱 익절, 익절이 안될 시 다음 반대신호에 청산
청산 시, 손절일 경우 스위칭해서 다음반대신호에 청산- 하루 매매 2회
3. 새벽 1시 이후 나오는 두번째 MACD (매수,매도 상관없음) 진입
이후 10틱 익절, 익절이 안될 시 다음 반대신호에 청산
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
예스스탁 예스스탁 답변
2014-07-04 15:26:20
안녕하세요
예스스탁입니다.
죄송합니다. 식을 잘못복사해 올려드렸습니다.
아래식 사용하시면 됩니다.
1.
input : P1(12),P2(26),P3(9);
var : MACDV(0),MACDS(0),entry(0);
MACDV = MACD(P1,P2);
MACDS = ema(MACDV,P3);
if stime == 010000 or (stime > 010000 and 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);
MACDV = MACD(P1,P2);
MACDS = ema(MACDV,P3);
if stime == 010000 or (stime > 010000 and 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();
}
if MarketPosition == 1 and entry == 2 and CrossDown(macdv,macds) Then{
ExitLong();
}
if MarketPosition == -1 and entry == 2 and CrossUp(macdv,macds) Then {
ExitShort();
}
SetStopProfittarget(PriceScale*10,PointStop);
3.
input : P1(12),P2(26),P3(9);
var : MACDV(0),MACDS(0),entry(0),cnt(0);
MACDV = MACD(P1,P2);
MACDS = ema(MACDV,P3);
if stime == 010000 or (stime > 010000 and 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틱 익절, 익절이 안될 시 다음 반대신호에 청산
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);
즐거운 하루되세요