커뮤니티

수식 부탁 드립니다

프로필 이미지
영웅456
2017-03-11 21:15:59
123
글번호 107692
답변완료
input : P1(100),P2(10),sto1(30),sto2(5),sto3(2); var : T1(0),entry(0),Tcond(false),HH(0),LL(0),L1(0); var : stok(0),stod(0); HH = highest(H,P1); LL = lowest(L,P1); L1 = lowest(L,P2); stok = StochasticsK(sto1,sto2); stod = StochasticsD(sto1,sto2,sto3); if MarketPosition == 0 and L1 < HH-(HH-LL)*0.5 and L1>LL and crossup(stok, stod) Then buy("매수",OnClose,def,2); L1>LL 를 추가했는데 맞는 수식인지 검증좀 해 주세요^^ 10봉 저점이 100봉 전저점 윗구간에서 신호가 나오게 하고싶습니다 10봉 저점이 100봉 저점을 깨면 신호가 안나오게 하고 싶은데,,부탁합니다 // 청산신호 50틱 수익후 30 틱은 수익 지킬수 있게 청산 70틱 이상 수익이면 매수 포지션이면 23.6 라인하방돌파면 청산 70틱 이상 수익이면 매도 포지션이면 76.4 라인상방돌파면 청산 // 손절신호 매수신호후 100봉 저점 무너지면 손절 매수가 대비 30틱 손실이면 손절 수식 부탁 드립니다 ^^
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-03-13 16:01:16

안녕하세요 예스스탁입니다. 매수식 맞습니다. 청산내용 추가해 드립니다. input : P1(100),P2(10),sto1(30),sto2(5),sto3(2); var : T1(0),entry(0),Tcond(false),HH(0),LL(0),L1(0); var : stok(0),stod(0); HH = highest(H,P1); LL = lowest(L,P1); L1 = lowest(L,P2); stok = StochasticsK(sto1,sto2); stod = StochasticsD(sto1,sto2,sto3); if MarketPosition == 0 and L1 < HH-(HH-LL)*0.5 and L1>LL and crossup(stok, stod) Then buy("매수",OnClose,def,2); if MarketPosition == 1 Then{ ExitLong("bl1",AtStop,LL-PriceScale*1); ExitLong("bl2",AtStop,EntryPrice-PriceScale*30); if highest(h,BarsSinceEntry) >= EntryPrice+PriceScale*50 Then exitlong("bx1",AtStop,EntryPrice+PriceScale*30); if highest(h,BarsSinceEntry) >= EntryPrice+PriceScale*70 Then exitlong("bx2",AtStop,LL+(HH-LL)*23.6); } if MarketPosition == -1 Then{ ExitShort("sl1",AtStop,HH+PriceScale*1); ExitShort("sl2",AtStop,EntryPrice+PriceScale*30); if Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*50 Then ExitShort("sx1",AtStop,EntryPrice-PriceScale*30); if Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*70 Then ExitShort("sx2",AtStop,LL+(HH-LL)*76.4); } 즐거운 하루되세요 > 영웅456 님이 쓴 글입니다. > 제목 : 수식 부탁 드립니다 > input : P1(100),P2(10),sto1(30),sto2(5),sto3(2); var : T1(0),entry(0),Tcond(false),HH(0),LL(0),L1(0); var : stok(0),stod(0); HH = highest(H,P1); LL = lowest(L,P1); L1 = lowest(L,P2); stok = StochasticsK(sto1,sto2); stod = StochasticsD(sto1,sto2,sto3); if MarketPosition == 0 and L1 < HH-(HH-LL)*0.5 and L1>LL and crossup(stok, stod) Then buy("매수",OnClose,def,2); L1>LL 를 추가했는데 맞는 수식인지 검증좀 해 주세요^^ 10봉 저점이 100봉 전저점 윗구간에서 신호가 나오게 하고싶습니다 10봉 저점이 100봉 저점을 깨면 신호가 안나오게 하고 싶은데,,부탁합니다 // 청산신호 50틱 수익후 30 틱은 수익 지킬수 있게 청산 70틱 이상 수익이면 매수 포지션이면 23.6 라인하방돌파면 청산 70틱 이상 수익이면 매도 포지션이면 76.4 라인상방돌파면 청산 // 손절신호 매수신호후 100봉 저점 무너지면 손절 매수가 대비 30틱 손실이면 손절 수식 부탁 드립니다 ^^