커뮤니티

문의드립니다

프로필 이미지
곽민수
2016-05-23 10:03:53
153
글번호 98329
답변완료
항상 고생이 많으십니다~ 키움수식 수식1 MP=(H+L)/2; EM4=EAVG(EAVG(MP,P4),P4); EM8=EAVG(EAVG(MP,P8),P8); em4 수식2 em8 예스 껄로 지표 하나와 시스템좀 부탁드리겠습니다^^ 시스템은 매수,매도 익절가능한 외부변수 하나부탁드리겠습니다 선이 교차하는 부분에서 매수,매도 신호 발생 청산은 익절 외부변수 (수정가능하게~) -------------------------------------- 수식 변경좀 요청합니다~ input : Period(8); var : T(0); var1 = ma(C,Period); if var1 > var1[1] Then T = 1; if var1 < var1[1] Then T = -1; if T == 1 and T[1] == 1 and T[2] != 1 Then buy("b"); if MarketPosition == 1 and T == -1 and T[1] != -1 Then exitlong("bx"); if T == -1 and T[1] == -1 and T[2] != -1 Then sell("s"); if MarketPosition == -1 and T == 1 and T[1] != 1 Then ExitShort("sx"); 청산 나오고 난뒤 이제 반대신호가 나오는데 그걸 청산 확정날때 매수,매도 신호도 같이 확정을 나게하고싶습니다 매수신호가 나온뒤: 청산 나올때 같이 매도신호도 함께 매도신호가 나온뒤: 청산 나올때 같이 매수신호도 함께 ------------------------------------------------- 수식변경요청~ input : P(10),익절틱수1(10),익절틱수2(20); var : MM(0),T(0); MM = (highest(H,P)+lowest(L,P))/2; if T == 0 and C > MM Then T = 1; if T == 0 and C < MM Then T = -1; if T == 1 and CrossDown(C,lowest(L,P)[1]) Then T = 0; if T == -1 and CrossUp(C,highest(H,P)[1]) Then T = 0; if T == 1 Then buy("b",OnClose,def,3); if MarketPosition == 1 and T == 0 Then exitlong("bx"); if T == -1 Then sell("s",OnClose,def,3); if T == 0 Then ExitShort("sx"); if MarketPosition == 1 Then{ ExitLong("bx1",atlimit,EntryPrice+PriceScale*익절틱수1,"",1,1); ExitLong("bx2",atlimit,EntryPrice+PriceScale*익절틱수2,"",1,1); } if MarketPosition == -1 Then{ ExitShort("sx1",atlimit,EntryPrice-PriceScale*익절틱수1,"",1,1); ExitShort("sx2",atlimit,EntryPrice-PriceScale*익절틱수2,"",1,1); } 이부분도위와 동일하게 부탁드리겠습니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-05-23 11:08:54

안녕하세요 예스스탁입니다. 1. input : P4(6),P8(20); var : MP(0),EM4(0),EM8(0); MP=(H+L)/2; EM4 = ema(ema(MP,P4),P4); EM8 = ema(ema(MP,P8),P8); plot1(EM4); plot2(EM8); 2 input : P4(6),P8(20),익절틱수(20); var : MP(0),EM4(0),EM8(0); MP=(H+L)/2; EM4 = ema(ema(MP,P4),P4); EM8 = ema(ema(MP,P8),P8); if crossup(EM4,EM8) Then buy(); if CrossDown(EM4,EM8) Then sell(); SetStopProfittarget(PriceScale*익절틱수,PointStop); 3 input : Period(8); var : T(0); var1 = ma(C,Period); if var1 > var1[1] Then T = 1; if var1 < var1[1] Then T = -1; if T == 1 and T[1] == 1 and T[2] != 1 Then buy("b"); if MarketPosition == 1 and T == -1 and T[1] != -1 Then sell("bs"); if T == -1 and T[1] == -1 and T[2] != -1 Then sell("s"); if MarketPosition == -1 and T == 1 and T[1] != 1 Then buy("sb"); 4 input : P(10),익절틱수1(10),익절틱수2(20); var : MM(0),T(0); MM = (highest(H,P)+lowest(L,P))/2; if T == 0 and C > MM Then T = 1; if T == 0 and C < MM Then T = -1; if T == 1 and CrossDown(C,lowest(L,P)[1]) Then T = 0; if T == -1 and CrossUp(C,highest(H,P)[1]) Then T = 0; if T == 1 Then buy("b",OnClose,def,3); if MarketPosition == 1 and T == 0 and T[1] == 1 Then sell("bs"); if T == -1 Then sell("s",OnClose,def,3); if MarketPosition == -1 and T == 0 and T[1] == -1 Then buy("sb"); if MarketPosition == 1 Then{ ExitLong("bx1",atlimit,EntryPrice+PriceScale*익절틱수1,"",1,1); ExitLong("bx2",atlimit,EntryPrice+PriceScale*익절틱수2,"",1,1); } if MarketPosition == -1 Then{ ExitShort("sx1",atlimit,EntryPrice-PriceScale*익절틱수1,"",1,1); ExitShort("sx2",atlimit,EntryPrice-PriceScale*익절틱수2,"",1,1); } 즐거운 하루되세요 > 곽민수 님이 쓴 글입니다. > 제목 : 문의드립니다 > 항상 고생이 많으십니다~ 키움수식 수식1 MP=(H+L)/2; EM4=EAVG(EAVG(MP,P4),P4); EM8=EAVG(EAVG(MP,P8),P8); em4 수식2 em8 예스 껄로 지표 하나와 시스템좀 부탁드리겠습니다^^ 시스템은 매수,매도 익절가능한 외부변수 하나부탁드리겠습니다 선이 교차하는 부분에서 매수,매도 신호 발생 청산은 익절 외부변수 (수정가능하게~) -------------------------------------- 수식 변경좀 요청합니다~ input : Period(8); var : T(0); var1 = ma(C,Period); if var1 > var1[1] Then T = 1; if var1 < var1[1] Then T = -1; if T == 1 and T[1] == 1 and T[2] != 1 Then buy("b"); if MarketPosition == 1 and T == -1 and T[1] != -1 Then exitlong("bx"); if T == -1 and T[1] == -1 and T[2] != -1 Then sell("s"); if MarketPosition == -1 and T == 1 and T[1] != 1 Then ExitShort("sx"); 청산 나오고 난뒤 이제 반대신호가 나오는데 그걸 청산 확정날때 매수,매도 신호도 같이 확정을 나게하고싶습니다 매수신호가 나온뒤: 청산 나올때 같이 매도신호도 함께 매도신호가 나온뒤: 청산 나올때 같이 매수신호도 함께 ------------------------------------------------- 수식변경요청~ input : P(10),익절틱수1(10),익절틱수2(20); var : MM(0),T(0); MM = (highest(H,P)+lowest(L,P))/2; if T == 0 and C > MM Then T = 1; if T == 0 and C < MM Then T = -1; if T == 1 and CrossDown(C,lowest(L,P)[1]) Then T = 0; if T == -1 and CrossUp(C,highest(H,P)[1]) Then T = 0; if T == 1 Then buy("b",OnClose,def,3); if MarketPosition == 1 and T == 0 Then exitlong("bx"); if T == -1 Then sell("s",OnClose,def,3); if T == 0 Then ExitShort("sx"); if MarketPosition == 1 Then{ ExitLong("bx1",atlimit,EntryPrice+PriceScale*익절틱수1,"",1,1); ExitLong("bx2",atlimit,EntryPrice+PriceScale*익절틱수2,"",1,1); } if MarketPosition == -1 Then{ ExitShort("sx1",atlimit,EntryPrice-PriceScale*익절틱수1,"",1,1); ExitShort("sx2",atlimit,EntryPrice-PriceScale*익절틱수2,"",1,1); } 이부분도위와 동일하게 부탁드리겠습니다