커뮤니티

추가부분 부탁드립니다.

프로필 이미지
신나는파파
2015-03-21 21:26:37
148
글번호 84266
답변완료
# 아래수식에 수익실현 부분을 추가하고 싶은데요 매도진입이1개이면 ---->수익실현: 진입가의 (60틱) 매도진입이2개이면 ---->수익실현: 2차진입가의(40틱실현)+1차진입가의(60틱실현) : 두번에 나누어서 수익실현.. 매수진입이1개이면 ---->수익실현: 진입가의 (60틱) 매수진입이2개이면 ---->수익실현: 2차진입가의(40틱실현)+1차진입가의(60틱실현) : 두번에 나누어서 수익실현.. 부탁드립니다. var : mav(0); mav = dayopen(); if MarketPosition >= 0 and H < mav+PriceScale*150 Then sell("s1",atlimit,mav+PriceScale*150); if MarketPosition == -1 Then{ if H < mav+PriceScale*170 and MaxEntries == 1 Then{ sell("s2",AtLimit,mav+PriceScale*170); } ExitShort("SL",AtStop,mav+PriceScale*220); } if MarketPosition <= 0 and L > mav-PriceScale*150 Then Buy("b1",atLimit ,mav-PriceScale*150); if MarketPosition == 1 Then{ if L > mav-PriceScale*170 and MaxEntries == 1 Then{ buy("b2",atlimit,mav-PriceScale*170); } ExitLong("BL",AtStop,mav-PriceScale*220); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-03-23 11:21:26

안녕하세요 예스스탁입니다. var : mav(0); mav = dayopen(); if MarketPosition >= 0 and H < mav+PriceScale*150 Then sell("S1",atlimit,mav+PriceScale*150); if MarketPosition == -1 Then{ if H < mav+PriceScale*170 and MaxEntries == 1 Then{ sell("S2",AtLimit,mav+PriceScale*170); } ExitShort("SL",AtStop,mav+PriceScale*220); if MaxContracts == 1 Then ExitShort("SP1",AtLimit,EntryPrice-PriceScale*60,"S1"); if MaxContracts == 2 Then{ ExitShort("SP21",AtLimit,EntryPrice-PriceScale*60,"S1"); ExitShort("SP22",AtLimit,LatestEntryPrice(0)-PriceScale*40,"S2"); } } if MarketPosition <= 0 and L > mav-PriceScale*150 Then Buy("B1",atLimit ,mav-PriceScale*150); if MarketPosition == 1 Then{ if L > mav-PriceScale*170 and MaxEntries == 1 Then{ buy("B2",atlimit,mav-PriceScale*170); } ExitLong("BL",AtStop,mav-PriceScale*220); if MaxContracts == 1 Then exitlong("BP1",AtLimit,EntryPrice+PriceScale*60,"B1"); if MaxContracts == 2 Then{ exitlong("BP21",AtLimit,EntryPrice+PriceScale*60,"B1"); exitlong("BP22",AtLimit,LatestEntryPrice(0)+PriceScale*40,"B2"); } } 즐거운 하루되세요 > 신나는파파 님이 쓴 글입니다. > 제목 : 추가부분 부탁드립니다. > # 아래수식에 수익실현 부분을 추가하고 싶은데요 매도진입이1개이면 ---->수익실현: 진입가의 (60틱) 매도진입이2개이면 ---->수익실현: 2차진입가의(40틱실현)+1차진입가의(60틱실현) : 두번에 나누어서 수익실현.. 매수진입이1개이면 ---->수익실현: 진입가의 (60틱) 매수진입이2개이면 ---->수익실현: 2차진입가의(40틱실현)+1차진입가의(60틱실현) : 두번에 나누어서 수익실현.. 부탁드립니다. var : mav(0); mav = dayopen(); if MarketPosition >= 0 and H < mav+PriceScale*150 Then sell("s1",atlimit,mav+PriceScale*150); if MarketPosition == -1 Then{ if H < mav+PriceScale*170 and MaxEntries == 1 Then{ sell("s2",AtLimit,mav+PriceScale*170); } ExitShort("SL",AtStop,mav+PriceScale*220); } if MarketPosition <= 0 and L > mav-PriceScale*150 Then Buy("b1",atLimit ,mav-PriceScale*150); if MarketPosition == 1 Then{ if L > mav-PriceScale*170 and MaxEntries == 1 Then{ buy("b2",atlimit,mav-PriceScale*170); } ExitLong("BL",AtStop,mav-PriceScale*220); }