커뮤니티
문의드립니다.
2014-10-29 23:49:42
162
글번호 79893
늘 수고많으세요.
아래 키움껀데 우리트레이드로 이사하면서
예스로 바꿀려고해요 꼭 부탁드릴께요.
뭐 시스템신호로는 수익이 별로지만
이전부터 봐왔던거라서요.
매수진입 = 매도청산
If((eavg(c,10)>BBandsC(Period,D1)or
eavg(c,5)>=eavg(c,10)),c<LRL(Period1),0);
if((eavg(c,10)>BBandsC(Period,D1)&&
eavg(c,5)>=eavg(c,10)),c,0)&&
100* (10 - ((
If (h(1) == highest(h,10), 1 ,
If (h(2) == highest(h,10), 2 ,
If (h(3) == highest(h,10), 3,
If (h(4) == highest(h,10), 4,
If (h(5) == highest(h,10), 5,
If (h(6) == highest(h,10), 6,
If (h(7) == highest(h,10), 7,
If (h(8) == highest(h,10), 8,
If (h(9) == highest(h,10), 9,
If (h(10)== highest(h,10), 10, 0) ) ) ) ) ) ) ) ) ) ) ) ) / 10
>
100* (10 - ((
If (L(1) == lowest(L,10), 1 ,
If (L(2) == lowest(L,10), 2 ,
If (L(3) == lowest(L,10), 3,
If (L(4) == lowest(L,10), 4,
If (L(5) == lowest(L,10), 5,
If (L(6) == lowest(L,10), 6,
If (L(7) == lowest(L,10), 7,
If (L(8) == lowest(L,10), 8,
If (L(9) == lowest(L,10), 9,
If (L(10) == lowest(L,10), 10, 0)))) ))))))))) / 10
매수청산 = 매도진입
If((eavg(c,10)<BBandsC(Period,D1)or
eavg(c,5)<=eavg(c,10)),c<LRL(Period1),0);
if((eavg(c,10)<BBandsC(Period,D1)&&
eavg(c,5)<=eavg(c,10)),c,0)&&
100* (10 - ((
If (h(1) == highest(h,10), 1 ,
If (h(2) == highest(h,10), 2 ,
If (h(3) == highest(h,10), 3,
If (h(4) == highest(h,10), 4,
If (h(5) == highest(h,10), 5,
If (h(6) == highest(h,10), 6,
If (h(7) == highest(h,10), 7,
If (h(8) == highest(h,10), 8,
If (h(9) == highest(h,10), 9,
If (h(10)== highest(h,10), 10, 0) ) ) ) ) ) ) ) ) ) ) ) ) / 10
<
100* (10 - ((
If (L(1) == lowest(L,10), 1 ,
If (L(2) == lowest(L,10), 2 ,
If (L(3) == lowest(L,10), 3,
If (L(4) == lowest(L,10), 4,
If (L(5) == lowest(L,10), 5,
If (L(6) == lowest(L,10), 6,
If (L(7) == lowest(L,10), 7,
If (L(8) == lowest(L,10), 8,
If (L(9) == lowest(L,10), 9,
If (L(10) == lowest(L,10), 10, 0)))) ))))))))) / 10
지표변수
period 10
d1 1
period1 5
2시 55분에 청산
그리고 이 시스템신호를
갭보정된 차트에서와 갭조정없는 차트일때 2개로 만들어주시면
감사하겠습니다.
답변 1
예스스탁 예스스탁 답변
2014-10-30 09:35:18
안녕하세요
예스스탁입니다.
키움의 수식은 수식의 내용을 글로 올려주시기 바랍니다.
키움의 랭귀지는 사용하지 않아 체계등을 자세히 알지 못해 대략적으로 판단해 변환을 해드리고 있습니다.
아래 내용이 맞게 변환된것인지 모르겠습니다.
아래 내용이 맞지 않으시면 키움수식이 아닌 글로 조건내용을 올려주시기 바랍니다.
input : Period(10),D1(1),Period1(5);
if Iff((ema(c,10)>BollBandUp(Period,D1)or
ema(c,5)>=ema(c,10)),c<LRL(c,Period1),0) or
iff((ema(c,10)>BollBandUp(Period,D1)&&
ema(c,5)>=ema(c,10)),c,0)&&
100* (10 - ((
Iff (h[1] == highest(h,10), 1 ,
Iff (h[2] == highest(h,10), 2 ,
Iff (h[3] == highest(h,10), 3,
Iff (h[4] == highest(h,10), 4,
Iff (h[5] == highest(h,10), 5,
Iff (h[6] == highest(h,10), 6,
Iff (h[7] == highest(h,10), 7,
Iff (h[8] == highest(h,10), 8,
Iff (h[9] == highest(h,10), 9,
Iff (h[10]== highest(h,10), 10, 0) ) ) ) ) ) ) ) ) ) ) ) ) / 10
>
100* (10 - ((
Iff (L[1] == lowest(L,10), 1 ,
Iff (L[2] == lowest(L,10), 2 ,
Iff (L[3] == lowest(L,10), 3,
Iff (L[4] == lowest(L,10), 4,
Iff (L[5] == lowest(L,10), 5,
Iff (L[6] == lowest(L,10), 6,
Iff (L[7] == lowest(L,10), 7,
Iff (L[8] == lowest(L,10), 8,
Iff (L[9] == lowest(L,10), 9,
Iff (L[10] == lowest(L,10), 10, 0)))) ))))))))) / 10 Then
buy();
if Iff((ema(c,10)<BollBandDown(Period,D1)or
ema(c,5)<=ema(c,10)),c<LRL(c,Period1),0) or
iff((ema(c,10)<BollBandDown(Period,D1)&&
ema(c,5)<=ema(c,10)),c,0)&&
100* (10 - ((
Iff (h[1] == highest(h,10), 1 ,
Iff (h[2] == highest(h,10), 2 ,
Iff (h[3] == highest(h,10), 3,
Iff (h[4] == highest(h,10), 4,
Iff (h[5] == highest(h,10), 5,
Iff (h[6] == highest(h,10), 6,
Iff (h[7] == highest(h,10), 7,
Iff (h[8] == highest(h,10), 8,
Iff (h[9] == highest(h,10), 9,
Iff (h[10]== highest(h,10), 10, 0) ) ) ) ) ) ) ) ) ) ) ) ) / 10
<
100* (10 - ((
Iff (L[1] == lowest(L,10), 1 ,
Iff (L[2] == lowest(L,10), 2 ,
Iff (L[3] == lowest(L,10), 3,
Iff (L[4] == lowest(L,10), 4,
Iff (L[5] == lowest(L,10), 5,
Iff (L[6] == lowest(L,10), 6,
Iff (L[7] == lowest(L,10), 7,
Iff (L[8] == lowest(L,10), 8,
Iff (L[9] == lowest(L,10), 9,
Iff (L[10] == lowest(L,10), 10, 0)))) ))))))))) / 10 Then
sell();
즐거운 하루되세요
> 카르마다 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 늘 수고많으세요.
아래 키움껀데 우리트레이드로 이사하면서
예스로 바꿀려고해요 꼭 부탁드릴께요.
뭐 시스템신호로는 수익이 별로지만
이전부터 봐왔던거라서요.
매수진입 = 매도청산
If((eavg(c,10)>BBandsC(Period,D1)or
eavg(c,5)>=eavg(c,10)),c<LRL(Period1),0);
if((eavg(c,10)>BBandsC(Period,D1)&&
eavg(c,5)>=eavg(c,10)),c,0)&&
100* (10 - ((
If (h(1) == highest(h,10), 1 ,
If (h(2) == highest(h,10), 2 ,
If (h(3) == highest(h,10), 3,
If (h(4) == highest(h,10), 4,
If (h(5) == highest(h,10), 5,
If (h(6) == highest(h,10), 6,
If (h(7) == highest(h,10), 7,
If (h(8) == highest(h,10), 8,
If (h(9) == highest(h,10), 9,
If (h(10)== highest(h,10), 10, 0) ) ) ) ) ) ) ) ) ) ) ) ) / 10
>
100* (10 - ((
If (L(1) == lowest(L,10), 1 ,
If (L(2) == lowest(L,10), 2 ,
If (L(3) == lowest(L,10), 3,
If (L(4) == lowest(L,10), 4,
If (L(5) == lowest(L,10), 5,
If (L(6) == lowest(L,10), 6,
If (L(7) == lowest(L,10), 7,
If (L(8) == lowest(L,10), 8,
If (L(9) == lowest(L,10), 9,
If (L(10) == lowest(L,10), 10, 0)))) ))))))))) / 10
매수청산 = 매도진입
If((eavg(c,10)<BBandsC(Period,D1)or
eavg(c,5)<=eavg(c,10)),c<LRL(Period1),0);
if((eavg(c,10)<BBandsC(Period,D1)&&
eavg(c,5)<=eavg(c,10)),c,0)&&
100* (10 - ((
If (h(1) == highest(h,10), 1 ,
If (h(2) == highest(h,10), 2 ,
If (h(3) == highest(h,10), 3,
If (h(4) == highest(h,10), 4,
If (h(5) == highest(h,10), 5,
If (h(6) == highest(h,10), 6,
If (h(7) == highest(h,10), 7,
If (h(8) == highest(h,10), 8,
If (h(9) == highest(h,10), 9,
If (h(10)== highest(h,10), 10, 0) ) ) ) ) ) ) ) ) ) ) ) ) / 10
<
100* (10 - ((
If (L(1) == lowest(L,10), 1 ,
If (L(2) == lowest(L,10), 2 ,
If (L(3) == lowest(L,10), 3,
If (L(4) == lowest(L,10), 4,
If (L(5) == lowest(L,10), 5,
If (L(6) == lowest(L,10), 6,
If (L(7) == lowest(L,10), 7,
If (L(8) == lowest(L,10), 8,
If (L(9) == lowest(L,10), 9,
If (L(10) == lowest(L,10), 10, 0)))) ))))))))) / 10
지표변수
period 10
d1 1
period1 5
2시 55분에 청산
그리고 이 시스템신호를
갭보정된 차트에서와 갭조정없는 차트일때 2개로 만들어주시면
감사하겠습니다.