커뮤니티

청산 수식봉완성시

프로필 이미지
요타
2019-10-14 23:48:02
167
글번호 132776
답변완료
* 많은 도움에 항상 고맙습니다. * 마지막 청산 부분이 안되는데 무엇이 잘못 되었는지 지도 요청 좀 드립니다. * 추가 로직도 하나 부탁 드립니다. var : SEH(0),SEL(0); if MarketPosition == -1 and IsEntryName("DD4") == true then { SEH = highest(H,BarsSinceEntry); SEL = Lowest(L,BarsSinceEntry); if SEL <= EntryPrice-PriceScale*80 and SEL > EntryPrice-PriceScale*100 Then { ExitShort("sp11",AtStop,EntryPrice-PriceScale*75); } if SEL <= EntryPrice-PriceScale*60 and SEL > EntryPrice-PriceScale*80 Then { ExitShort("sp12",AtStop,EntryPrice-PriceScale*55); } if SEL <= EntryPrice-PriceScale*40 and SEL > EntryPrice-PriceScale*60 Then { ExitShort("sp13",AtStop,EntryPrice-PriceScale*35); } if SEL <= EntryPrice-PriceScale*20 and SEL > EntryPrice-PriceScale*40 Then { ExitShort("sp14",AtStop,EntryPrice-PriceScale*10); } if C <= EntryPrice-PriceScale*90 Then ExitShort("sp15"); /*요기가안됨*/ if SEL <= EntryPrice-PriceScale*10 then { ExitShort("sl2",AtStop,EntryPrice+PriceScale); } #진입이후 10틱 이상 수익발생한 적이 없고 본전 오면 청산 ## 추가 로직 요청 1. 수익이 30틱 이상 이었다가 손실이 10틱이면 청산 ##ex) 아래 처럼 하니까 안됨니다..... if SEL <= EntryPrice-PriceScale and SEL > EntryPrice-PriceScale*10 Then { ExitShort("sp1",AtLimit,EntryPrice+PriceScale*20);} * 고맙습니다. 좋은 시간 되십시요^^
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-10-15 15:26:28

안녕하세요 예스스탁입니다. 1 var : SEH(0),SEL(0); if MarketPosition == -1 and IsEntryName("DD4") == true then { SEH = highest(H,BarsSinceEntry); SEL = Lowest(L,BarsSinceEntry); if SEL <= EntryPrice-PriceScale*80 and SEL > EntryPrice-PriceScale*100 Then { ExitShort("sp11",AtStop,EntryPrice-PriceScale*75); } if SEL <= EntryPrice-PriceScale*60 and SEL > EntryPrice-PriceScale*80 Then { ExitShort("sp12",AtStop,EntryPrice-PriceScale*55); } if SEL <= EntryPrice-PriceScale*40 and SEL > EntryPrice-PriceScale*60 Then { ExitShort("sp13",AtStop,EntryPrice-PriceScale*35); } if SEL <= EntryPrice-PriceScale*20 and SEL > EntryPrice-PriceScale*40 Then { ExitShort("sp14",AtStop,EntryPrice-PriceScale*10); } if C <= EntryPrice-PriceScale*90 Then ExitShort("sp15"); if SEL > EntryPrice-PriceScale*10 then { ExitShort("sl2",AtStop,EntryPrice); } } 2 if SEL <= EntryPrice-PriceScale*30 Then { ExitShort("sp1",AtLimit,EntryPrice+PriceScale*20);} 즐거운 하루되세요 > 요타 님이 쓴 글입니다. > 제목 : 청산 수식봉완성시 > * 많은 도움에 항상 고맙습니다. * 마지막 청산 부분이 안되는데 무엇이 잘못 되었는지 지도 요청 좀 드립니다. * 추가 로직도 하나 부탁 드립니다. var : SEH(0),SEL(0); if MarketPosition == -1 and IsEntryName("DD4") == true then { SEH = highest(H,BarsSinceEntry); SEL = Lowest(L,BarsSinceEntry); if SEL <= EntryPrice-PriceScale*80 and SEL > EntryPrice-PriceScale*100 Then { ExitShort("sp11",AtStop,EntryPrice-PriceScale*75); } if SEL <= EntryPrice-PriceScale*60 and SEL > EntryPrice-PriceScale*80 Then { ExitShort("sp12",AtStop,EntryPrice-PriceScale*55); } if SEL <= EntryPrice-PriceScale*40 and SEL > EntryPrice-PriceScale*60 Then { ExitShort("sp13",AtStop,EntryPrice-PriceScale*35); } if SEL <= EntryPrice-PriceScale*20 and SEL > EntryPrice-PriceScale*40 Then { ExitShort("sp14",AtStop,EntryPrice-PriceScale*10); } if C <= EntryPrice-PriceScale*90 Then ExitShort("sp15"); /*요기가안됨*/ if SEL <= EntryPrice-PriceScale*10 then { ExitShort("sl2",AtStop,EntryPrice+PriceScale); } #진입이후 10틱 이상 수익발생한 적이 없고 본전 오면 청산 ## 추가 로직 요청 1. 수익이 30틱 이상 이었다가 손실이 10틱이면 청산 ##ex) 아래 처럼 하니까 안됨니다..... if SEL <= EntryPrice-PriceScale and SEL > EntryPrice-PriceScale*10 Then { ExitShort("sp1",AtLimit,EntryPrice+PriceScale*20);} * 고맙습니다. 좋은 시간 되십시요^^