커뮤니티

확인좀 부탁 드립니다.

프로필 이미지
요타
2019-07-01 07:50:34
203
글번호 129865
답변완료

첨부 이미지

* 아래글 < 63046 > 다시 확인좁 부탁 드립니다. * 아래식으로 적용 하니까 이상 하게 청산됨니다. 즉 10틱 이상 최대 수익이면 60% 선에서 청산이 안됨니다. * 확인 좀 부탁 드립니다. ################################## var : EH(0),EL(0); if MarketPosition == 1 then { EH = highest(H,BarsSinceEntry); if EH < EntryPrice+PriceScale*10 Then ExitLong("bx1",AtStop,EH*0.50); if EH >= EntryPrice+PriceScale*10 and EH < EntryPrice+PriceScale*30 Then ExitLong("bx2",AtStop,EH*0.60); if EH >= EntryPrice+PriceScale*30 and EH < EntryPrice+PriceScale*40 Then ExitLong("bx3",AtStop,EH*0.70); if EH >= EntryPrice+PriceScale*40 and EH < EntryPrice+PriceScale*50 Then ExitLong("bx4",AtStop,EH*0.80); if EH >= EntryPrice+PriceScale*50 Then ExitLong("bx5",AtStop,EH*0.90); } if MarketPosition == -1 then { EL = highest(H,BarsSinceEntry); if EL > EntryPrice-PriceScale*10 Then ExitShort("sx1",AtStop,EL*1.50); if EL <= EntryPrice-PriceScale*10 and EL > EntryPrice-PriceScale*30 Then ExitShort("sx2",AtStop,EL*1.40); if EL <= EntryPrice-PriceScale*30 and EL > EntryPrice-PriceScale*40 Then ExitShort("sx3",AtStop,EL*1.30); if EL <= EntryPrice-PriceScale*40 and EL > EntryPrice-PriceScale*50 Then ExitShort("sx4",AtStop,EL*1.20); if EL <= EntryPrice-PriceScale*50 Then ExitShort("sx5",AtStop,EL*1.10); } ################ 고맙 습니다.
강조
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-07-01 10:37:11

안녕하세요 예스스탁입니다. 최고.최저 가격에서 지정한 % 하락/상승하면 청산이 됩니다. 수익폭의 %인지 가격대비인지 명확히 내용을 지정하셔야 합니다. 수익폭의 지정한 %로 변경해 드립니다. var : EH(0),EL(0); if MarketPosition == 1 then { EH = highest(H,BarsSinceEntry); if EH < EntryPrice+PriceScale*10 Then ExitLong("bx1",AtStop,EH-(EH-EntryPrice)*0.50); if EH >= EntryPrice+PriceScale*10 and EH < EntryPrice+PriceScale*30 Then ExitLong("bx2",AtStop,EH-(EH-EntryPrice)*0.40); if EH >= EntryPrice+PriceScale*30 and EH < EntryPrice+PriceScale*40 Then ExitLong("bx3",AtStop,EH-(EH-EntryPrice)*0.30); if EH >= EntryPrice+PriceScale*40 and EH < EntryPrice+PriceScale*50 Then ExitLong("bx4",AtStop,EH-(EH-EntryPrice)*0.20); if EH >= EntryPrice+PriceScale*50 Then ExitLong("bx5",AtStop,EH-(EH-EntryPrice)*0.10); } if MarketPosition == -1 then { EL = highest(H,BarsSinceEntry); if EL > EntryPrice-PriceScale*10 Then ExitShort("sx1",AtStop,EL+(EL-EntryPrice)*0.50); if EL <= EntryPrice-PriceScale*10 and EL > EntryPrice-PriceScale*30 Then ExitShort("sx2",AtStop,EL+(EL-EntryPrice)*0.40); if EL <= EntryPrice-PriceScale*30 and EL > EntryPrice-PriceScale*40 Then ExitShort("sx3",AtStop,EL+(EL-EntryPrice)*0.30); if EL <= EntryPrice-PriceScale*40 and EL > EntryPrice-PriceScale*50 Then ExitShort("sx4",AtStop,EL+(EL-EntryPrice)*0.20); if EL <= EntryPrice-PriceScale*50 Then ExitShort("sx5",AtStop,EL+(EL-EntryPrice)*0.10); } 즐거운 하루되세요 > 요타 님이 쓴 글입니다. > 제목 : 확인좀 부탁 드립니다. > * 아래글 < 63046 > 다시 확인좁 부탁 드립니다. * 아래식으로 적용 하니까 이상 하게 청산됨니다. 즉 10틱 이상 최대 수익이면 60% 선에서 청산이 안됨니다. * 확인 좀 부탁 드립니다. ################################## var : EH(0),EL(0); if MarketPosition == 1 then { EH = highest(H,BarsSinceEntry); if EH < EntryPrice+PriceScale*10 Then ExitLong("bx1",AtStop,EH*0.50); if EH >= EntryPrice+PriceScale*10 and EH < EntryPrice+PriceScale*30 Then ExitLong("bx2",AtStop,EH*0.60); if EH >= EntryPrice+PriceScale*30 and EH < EntryPrice+PriceScale*40 Then ExitLong("bx3",AtStop,EH*0.70); if EH >= EntryPrice+PriceScale*40 and EH < EntryPrice+PriceScale*50 Then ExitLong("bx4",AtStop,EH*0.80); if EH >= EntryPrice+PriceScale*50 Then ExitLong("bx5",AtStop,EH*0.90); } if MarketPosition == -1 then { EL = highest(H,BarsSinceEntry); if EL > EntryPrice-PriceScale*10 Then ExitShort("sx1",AtStop,EL*1.50); if EL <= EntryPrice-PriceScale*10 and EL > EntryPrice-PriceScale*30 Then ExitShort("sx2",AtStop,EL*1.40); if EL <= EntryPrice-PriceScale*30 and EL > EntryPrice-PriceScale*40 Then ExitShort("sx3",AtStop,EL*1.30); if EL <= EntryPrice-PriceScale*40 and EL > EntryPrice-PriceScale*50 Then ExitShort("sx4",AtStop,EL*1.20); if EL <= EntryPrice-PriceScale*50 Then ExitShort("sx5",AtStop,EL*1.10); } ################ 고맙 습니다.