커뮤니티

문의

프로필 이미지
쿠루드
2014-11-05 11:32:20
158
글번호 80098
답변완료
안녕하세요. 시스템식 문의드립니다. 단기, 장기 이평선 두개를 이용한 수식입니다. 첫진입은 봉이 3개 이상 생성된후이고, 2:50 이후는 진입하지 않고, 2:59 청산입니다. 장기 이평이 상승일때, 현재가가 단기 이평선의 가격보다 0.1p(변수) 아래로 들어오면 실시간 매수, 손절은 0.2p(변수), 수익은 0.5p(변수) 입니다. 반대로 장기 이평이 하락 기울기이고, 단기이평 보다 0.1 위 이상으로 들어오면 실시간 매도이고 손절은 0.2p, 수익은 0.5p 동일합니다. 신호식에 현재가가 얼마가 되면 신호가 나오는지 실시간으로 텍스트를 삽입해 주시면 감사하겠습니다. 또하나의 식은 수익은 그대로 청산하고 손절없이 위와 동일하게 매수신호후 매도신호가 나오면 스위칭하는 식 부탁합니다. 감사합니다.
지표
답변 3
프로필 이미지

예스스탁 예스스탁 답변

2014-11-05 14:24:20

안녕하세요 예스스탁입니다. 1. input : N(0.1),loss(0.2),Profit(0.5); var1 = ma(c,5); var2 = ma(c,20); if dayindex+1 >= 3 and stime < 145000 Then { if MarketPosition <= 0 and var2 > var2[1] and C > var1 and C <= var1+N Then{ { buy("b"); ExitLong("bx1",AtStop,C-loss); ExitLong("bx2",AtLimit,C+Profit); Text_New(sdate,stime,H+PriceScale*2,NumToStr(var1+N,0)); } if MarketPosition >= 0 and var2 < var2[1] and C < var1 and C >= var1-N Then{ { sell("s"); ExitShort("sx1",AtStop,C+loss); ExitShort("sx2",AtLimit,C-Profit); } } if MarketPosition == 1 Then{ ExitLong("bx11",AtStop,EntryPrice-loss); ExitLong("bx12",AtLimit,EntryPrice+Profit); } if MarketPosition == -1 then{ ExitShort("sx1",AtStop,EntryPrice+loss); ExitShort("sx2",AtLimit,EntryPrice-Profit); } SetStopEndofday(145900); 2. input : N(0.1),loss(0.2),Profit(0.5); var1 = ma(c,5); var2 = ma(c,20); if dayindex+1 >= 3 and stime < 145000 Then { if MarketPosition <= 0 and var2 > var2[1] and C > var1 and C <= var1+N Then{ { buy("b"); ExitLong("bx2",AtLimit,C+Profit); Text_New(sdate,stime,H+PriceScale*2,NumToStr(var1+N,0)); } if MarketPosition >= 0 and var2 < var2[1] and C < var1 and C >= var1-N Then{ { sell("s"); ExitShort("sx2",AtLimit,C-Profit); } } if MarketPosition == 1 Then{ ExitLong("bx12",AtLimit,EntryPrice+Profit); } if MarketPosition == -1 then{ ExitShort("sx2",AtLimit,EntryPrice-Profit); } SetStopEndofday(145900); 즐거운 하루되세요 > 쿠루드 님이 쓴 글입니다. > 제목 : 문의 > 안녕하세요. 시스템식 문의드립니다. 단기, 장기 이평선 두개를 이용한 수식입니다. 첫진입은 봉이 3개 이상 생성된후이고, 2:50 이후는 진입하지 않고, 2:59 청산입니다. 장기 이평이 상승일때, 현재가가 단기 이평선의 가격보다 0.1p(변수) 아래로 들어오면 실시간 매수, 손절은 0.2p(변수), 수익은 0.5p(변수) 입니다. 반대로 장기 이평이 하락 기울기이고, 단기이평 보다 0.1 위 이상으로 들어오면 실시간 매도이고 손절은 0.2p, 수익은 0.5p 동일합니다. 신호식에 현재가가 얼마가 되면 신호가 나오는지 실시간으로 텍스트를 삽입해 주시면 감사하겠습니다. 또하나의 식은 수익은 그대로 청산하고 손절없이 위와 동일하게 매수신호후 매도신호가 나오면 스위칭하는 식 부탁합니다. 감사합니다.
프로필 이미지

쿠루드

2014-11-05 14:45:36

sx1,sx2는 수정해서 됐는데... 마지막줄에 문법에러, 잘못된토큰<File End> 이런 메시지가 나오네요. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의 > 안녕하세요 예스스탁입니다. 1. input : N(0.1),loss(0.2),Profit(0.5); var1 = ma(c,5); var2 = ma(c,20); if dayindex+1 >= 3 and stime < 145000 Then { if MarketPosition <= 0 and var2 > var2[1] and C > var1 and C <= var1+N Then{ { buy("b"); ExitLong("bx1",AtStop,C-loss); ExitLong("bx2",AtLimit,C+Profit); Text_New(sdate,stime,H+PriceScale*2,NumToStr(var1+N,0)); } if MarketPosition >= 0 and var2 < var2[1] and C < var1 and C >= var1-N Then{ { sell("s"); ExitShort("sx1",AtStop,C+loss); ExitShort("sx2",AtLimit,C-Profit); } } if MarketPosition == 1 Then{ ExitLong("bx11",AtStop,EntryPrice-loss); ExitLong("bx12",AtLimit,EntryPrice+Profit); } if MarketPosition == -1 then{ ExitShort("sx1",AtStop,EntryPrice+loss); ExitShort("sx2",AtLimit,EntryPrice-Profit); } SetStopEndofday(145900); 2. input : N(0.1),loss(0.2),Profit(0.5); var1 = ma(c,5); var2 = ma(c,20); if dayindex+1 >= 3 and stime < 145000 Then { if MarketPosition <= 0 and var2 > var2[1] and C > var1 and C <= var1+N Then{ { buy("b"); ExitLong("bx2",AtLimit,C+Profit); Text_New(sdate,stime,H+PriceScale*2,NumToStr(var1+N,0)); } if MarketPosition >= 0 and var2 < var2[1] and C < var1 and C >= var1-N Then{ { sell("s"); ExitShort("sx2",AtLimit,C-Profit); } } if MarketPosition == 1 Then{ ExitLong("bx12",AtLimit,EntryPrice+Profit); } if MarketPosition == -1 then{ ExitShort("sx2",AtLimit,EntryPrice-Profit); } SetStopEndofday(145900); 즐거운 하루되세요 > 쿠루드 님이 쓴 글입니다. > 제목 : 문의 > 안녕하세요. 시스템식 문의드립니다. 단기, 장기 이평선 두개를 이용한 수식입니다. 첫진입은 봉이 3개 이상 생성된후이고, 2:50 이후는 진입하지 않고, 2:59 청산입니다. 장기 이평이 상승일때, 현재가가 단기 이평선의 가격보다 0.1p(변수) 아래로 들어오면 실시간 매수, 손절은 0.2p(변수), 수익은 0.5p(변수) 입니다. 반대로 장기 이평이 하락 기울기이고, 단기이평 보다 0.1 위 이상으로 들어오면 실시간 매도이고 손절은 0.2p, 수익은 0.5p 동일합니다. 신호식에 현재가가 얼마가 되면 신호가 나오는지 실시간으로 텍스트를 삽입해 주시면 감사하겠습니다. 또하나의 식은 수익은 그대로 청산하고 손절없이 위와 동일하게 매수신호후 매도신호가 나오면 스위칭하는 식 부탁합니다. 감사합니다.
프로필 이미지

예스스탁 예스스탁 답변

2014-11-05 15:13:50

안녕하세요 예스스탁입니다. 죄송합니다. 다시올려드립니다. 1. input : N(0.1),loss(0.2),Profit(0.5); var1 = ma(c,5); var2 = ma(c,20); if dayindex+1 >= 3 and stime < 145000 Then { if MarketPosition <= 0 and var2 > var2[1] and C > var1 and C <= var1+N Then { buy("b"); ExitLong("bx1",AtStop,C-loss); ExitLong("bx2",AtLimit,C+Profit); Text_New(sdate,stime,H+PriceScale*2,NumToStr(var1+N,0)); } if MarketPosition >= 0 and var2 < var2[1] and C < var1 and C >= var1-N Then { sell("s"); ExitShort("sx1",AtStop,C+loss); ExitShort("sx2",AtLimit,C-Profit); } } if MarketPosition == 1 Then{ ExitLong("bx11",AtStop,EntryPrice-loss); ExitLong("bx12",AtLimit,EntryPrice+Profit); } if MarketPosition == -1 then{ ExitShort("sx11",AtStop,EntryPrice+loss); ExitShort("sx21",AtLimit,EntryPrice-Profit); } SetStopEndofday(145900); 2. input : N(0.1),loss(0.2),Profit(0.5); var1 = ma(c,5); var2 = ma(c,20); if dayindex+1 >= 3 and stime < 145000 Then { if MarketPosition <= 0 and var2 > var2[1] and C > var1 and C <= var1+N Then { buy("b"); ExitLong("bx2",AtLimit,C+Profit); Text_New(sdate,stime,H+PriceScale*2,NumToStr(var1+N,0)); } if MarketPosition >= 0 and var2 < var2[1] and C < var1 and C >= var1-N Then { sell("s"); ExitShort("sx2",AtLimit,C-Profit); } } if MarketPosition == 1 Then{ ExitLong("bx12",AtLimit,EntryPrice+Profit); } if MarketPosition == -1 then{ ExitShort("sx21",AtLimit,EntryPrice-Profit); } SetStopEndofday(145900); 즐거운 하루되세요 > 쿠루드 님이 쓴 글입니다. > 제목 : Re : Re : 문의 > sx1,sx2는 수정해서 됐는데... 마지막줄에 문법에러, 잘못된토큰<File End> 이런 메시지가 나오네요. > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의 > 안녕하세요 예스스탁입니다. 1. input : N(0.1),loss(0.2),Profit(0.5); var1 = ma(c,5); var2 = ma(c,20); if dayindex+1 >= 3 and stime < 145000 Then { if MarketPosition <= 0 and var2 > var2[1] and C > var1 and C <= var1+N Then{ { buy("b"); ExitLong("bx1",AtStop,C-loss); ExitLong("bx2",AtLimit,C+Profit); Text_New(sdate,stime,H+PriceScale*2,NumToStr(var1+N,0)); } if MarketPosition >= 0 and var2 < var2[1] and C < var1 and C >= var1-N Then{ { sell("s"); ExitShort("sx1",AtStop,C+loss); ExitShort("sx2",AtLimit,C-Profit); } } if MarketPosition == 1 Then{ ExitLong("bx11",AtStop,EntryPrice-loss); ExitLong("bx12",AtLimit,EntryPrice+Profit); } if MarketPosition == -1 then{ ExitShort("sx1",AtStop,EntryPrice+loss); ExitShort("sx2",AtLimit,EntryPrice-Profit); } SetStopEndofday(145900); 2. input : N(0.1),loss(0.2),Profit(0.5); var1 = ma(c,5); var2 = ma(c,20); if dayindex+1 >= 3 and stime < 145000 Then { if MarketPosition <= 0 and var2 > var2[1] and C > var1 and C <= var1+N Then{ { buy("b"); ExitLong("bx2",AtLimit,C+Profit); Text_New(sdate,stime,H+PriceScale*2,NumToStr(var1+N,0)); } if MarketPosition >= 0 and var2 < var2[1] and C < var1 and C >= var1-N Then{ { sell("s"); ExitShort("sx2",AtLimit,C-Profit); } } if MarketPosition == 1 Then{ ExitLong("bx12",AtLimit,EntryPrice+Profit); } if MarketPosition == -1 then{ ExitShort("sx2",AtLimit,EntryPrice-Profit); } SetStopEndofday(145900); 즐거운 하루되세요 > 쿠루드 님이 쓴 글입니다. > 제목 : 문의 > 안녕하세요. 시스템식 문의드립니다. 단기, 장기 이평선 두개를 이용한 수식입니다. 첫진입은 봉이 3개 이상 생성된후이고, 2:50 이후는 진입하지 않고, 2:59 청산입니다. 장기 이평이 상승일때, 현재가가 단기 이평선의 가격보다 0.1p(변수) 아래로 들어오면 실시간 매수, 손절은 0.2p(변수), 수익은 0.5p(변수) 입니다. 반대로 장기 이평이 하락 기울기이고, 단기이평 보다 0.1 위 이상으로 들어오면 실시간 매도이고 손절은 0.2p, 수익은 0.5p 동일합니다. 신호식에 현재가가 얼마가 되면 신호가 나오는지 실시간으로 텍스트를 삽입해 주시면 감사하겠습니다. 또하나의 식은 수익은 그대로 청산하고 손절없이 위와 동일하게 매수신호후 매도신호가 나오면 스위칭하는 식 부탁합니다. 감사합니다.