커뮤니티

수식 수정 한번만더 부탁드립니다

프로필 이미지
강물처름
2022-06-17 11:30:52
1454
글번호 159941
답변완료
if MarketPosition == 0 and 최초매수 Then Buy(); --위에서 최초매수를 전날 마지막가격보다 3프로가 내렷을때 2개를 진입하고 싶습니다) 부탁드립니다 -- #직전거래가 bp로 청산되면 if MarketPosition == 0 and IsExitName("bp") == true Then { #청산가+3%에 2주 매수진입(이름 upb) #청산가-3%에 2주 매수진입(이름 dnb) Buy("upb",AtStop,ExitPrice(1)*1.03,2); Buy("dnb",AtLimit,ExitPrice(1)*0.97,2); } if MarketPosition == 1 Then { #평단가10% 청산(청산명bp); ExitLong("bp",AtLimit,AvgEntryPrice*1.10); #upb로 진입후 3% 상승시마다 총 20회 2주씩 매수 if IsEntryName("upb") == true and MaxEntries < 20 Then Buy("upbb",AtStop,LatestEntryPrice(0)*1.03,2); #dnb로 진입후 3% 하락시마다 총 20회 2주씩 매수 if IsEntryName("dnb") == true and MaxEntries < 20 Then Buy("dnbb",AtLimit,LatestEntryPrice(0)*0.97,2); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-06-17 16:29:12

안녕하세요 예스스탁입니다. if MarketPosition == 0 and TotalTrades == 0 Then Buy("b",AtLimit,DayClose(1)*0.97,2); #직전거래가 bp로 청산되면 if MarketPosition == 0 and IsExitName("bp") == true Then { #청산가+3%에 2주 매수진입(이름 upb) #청산가-3%에 2주 매수진입(이름 dnb) Buy("upb",AtStop,ExitPrice(1)*1.03,2); Buy("dnb",AtLimit,ExitPrice(1)*0.97,2); } if MarketPosition == 1 Then { #평단가10% 청산(청산명bp); ExitLong("bp",AtLimit,AvgEntryPrice*1.10); #upb로 진입후 3% 상승시마다 총 20회 2주씩 매수 if IsEntryName("upb") == true and MaxEntries < 20 Then Buy("upbb",AtStop,LatestEntryPrice(0)*1.03,2); #dnb로 진입후 3% 하락시마다 총 20회 2주씩 매수 if IsEntryName("dnb") == true and MaxEntries < 20 Then Buy("dnbb",AtLimit,LatestEntryPrice(0)*0.97,2); } 즐거운 하루되세요 > 강물처름 님이 쓴 글입니다. > 제목 : 수식 수정 한번만더 부탁드립니다 > if MarketPosition == 0 and 최초매수 Then Buy(); --위에서 최초매수를 전날 마지막가격보다 3프로가 내렷을때 2개를 진입하고 싶습니다) 부탁드립니다 -- #직전거래가 bp로 청산되면 if MarketPosition == 0 and IsExitName("bp") == true Then { #청산가+3%에 2주 매수진입(이름 upb) #청산가-3%에 2주 매수진입(이름 dnb) Buy("upb",AtStop,ExitPrice(1)*1.03,2); Buy("dnb",AtLimit,ExitPrice(1)*0.97,2); } if MarketPosition == 1 Then { #평단가10% 청산(청산명bp); ExitLong("bp",AtLimit,AvgEntryPrice*1.10); #upb로 진입후 3% 상승시마다 총 20회 2주씩 매수 if IsEntryName("upb") == true and MaxEntries < 20 Then Buy("upbb",AtStop,LatestEntryPrice(0)*1.03,2); #dnb로 진입후 3% 하락시마다 총 20회 2주씩 매수 if IsEntryName("dnb") == true and MaxEntries < 20 Then Buy("dnbb",AtLimit,LatestEntryPrice(0)*0.97,2); }