커뮤니티

문의 드립니다.

프로필 이미지
라떼처럼
2018-07-25 17:09:48
131
글번호 120903
답변완료
감사합니다. if BH >= EntryPrice+PriceScale*30 then{ ExitLong("B익절%",AtStop,BH-(BH-EntryPrice)*0.1); } 식을 SetStopProfittarget을 이용하여 SetStopProfittarget(0.3)이상 수익 만족하면 최고 수익가격 대비 0.1% 하락 하면 청산으로 수정하고 싶습니다. (매도일때 동일하게) 식. if MarketPosition == 1 Then{ BH = highest(H,BarsSinceEntry); if MaxEntries == 1 Then HE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) > HE Then HE = LatestEntryPrice(0); if BH >= EntryPrice+PriceScale*30 then{ ExitLong("B익절%",AtStop,BH-(BH-EntryPrice)*0.1); } ExitLong("B손절",AtStop,HE-PriceScale*30); } if MarketPosition == -1 Then{ SL = Lowest(L,BarsSinceEntry); if MaxEntries == 1 Then LE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) < LE Then LE = LatestEntryPrice(0); if SL <= EntryPrice-PriceScale*30 then{ ExitShort("S익절%",AtStop,SL+(EntryPrice-SL)*0.1); } ExitShort("S손절",AtStop,LE+PriceScale*30); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-07-26 10:21:45

안녕하세요 예스스탁입니다. if MarketPosition == 1 Then { BH = highest(H,BarsSinceEntry); if MaxEntries == 1 Then HE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) > HE Then HE = LatestEntryPrice(0); if BH >= EntryPrice*1.003 then { ExitLong("B익절%",AtStop,BH*0.999); } ExitLong("B손절",AtStop,HE-PriceScale*30); } if MarketPosition == -1 Then { SL = Lowest(L,BarsSinceEntry); if MaxEntries == 1 Then LE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) < LE Then LE = LatestEntryPrice(0); if SL <= EntryPrice*0.997 then { ExitShort("S익절%",AtStop,SL*1.001); } ExitShort("S손절",AtStop,LE+PriceScale*30); } 즐거운 하루되세요 > 라떼처럼 님이 쓴 글입니다. > 제목 : 문의 드립니다. > 감사합니다. if BH >= EntryPrice+PriceScale*30 then{ ExitLong("B익절%",AtStop,BH-(BH-EntryPrice)*0.1); } 식을 SetStopProfittarget을 이용하여 SetStopProfittarget(0.3)이상 수익 만족하면 최고 수익가격 대비 0.1% 하락 하면 청산으로 수정하고 싶습니다. (매도일때 동일하게) 식. if MarketPosition == 1 Then{ BH = highest(H,BarsSinceEntry); if MaxEntries == 1 Then HE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) > HE Then HE = LatestEntryPrice(0); if BH >= EntryPrice+PriceScale*30 then{ ExitLong("B익절%",AtStop,BH-(BH-EntryPrice)*0.1); } ExitLong("B손절",AtStop,HE-PriceScale*30); } if MarketPosition == -1 Then{ SL = Lowest(L,BarsSinceEntry); if MaxEntries == 1 Then LE = LatestEntryPrice(0); if MaxEntries >= 2 and LatestEntryPrice(0) < LE Then LE = LatestEntryPrice(0); if SL <= EntryPrice-PriceScale*30 then{ ExitShort("S익절%",AtStop,SL+(EntryPrice-SL)*0.1); } ExitShort("S손절",AtStop,LE+PriceScale*30); }