커뮤니티

피라미딩 문의드립니다.

프로필 이미지
착한이
2013-12-17 12:04:54
199
글번호 70552
답변완료
수고하십니다. 아래와 같은 피라미딩 전략에서 진입명이 "피라미딩매도"로 진입한 경우에는 기존의 청산로직이 아닌 수익1.0과 2시에 청산을 시킬려면 어떻게 수식을 바꾸어야 하는지 알려주세요. 먼저 진입한 진입명 "Sell"로 진입한 것은 기존대로 수익1.0과 12시에 청산되어야 합니다. 감사합니다. If C > O Then Buy("Buy", AtMarket); If C < O Then Sell("Sell", AtMarket); SetstopProfittarget(2.0, Pointstop); SetstopEndofday(120000); If MarketPosition == -1 and EntryCount == 1 Then { If PositionProfit < -1.0 Then { Sell("피라미딩매도",Atstop,Highest(High,barsSinceEntry+1)-atr(30)*3); } If MarketPosition == -1 and EntryName == "피라미딩매도" Then { SetstopProfittarget(1.0, Pointstop); SetstopEndofday(140000+TimeDelay); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-12-17 17:38:08

안녕하세요 예스스탁입니다. If C > O Then Buy("Buy", AtMarket); If C < O Then Sell("Sell", AtMarket); If MarketPosition == -1 and EntryCount == 1 Then { If PositionProfit < -1.0 Then { Sell("피라미딩매도",Atstop,Highest(High,barsSinceEntry+1)-atr(30)*3); } } if MarketPosition != 0 Then{ if (IsEntryName("Buy") == true or IsEntryName("Sell") == true) Then{ SetStopProfittarget(2.0,PointStop); SetStopEndofday(120000); } if (IsEntryName("피라미딩") == true) Then{ SetStopProfittarget(1.0,PointStop); SetStopEndofday(140000+TimeDelay); } } Else { SetStopProfittarget(0); SetStopEndofday(0); } 즐거운 하루되세요 > 착한이 님이 쓴 글입니다. > 제목 : 피라미딩 문의드립니다. > 수고하십니다. 아래와 같은 피라미딩 전략에서 진입명이 "피라미딩매도"로 진입한 경우에는 기존의 청산로직이 아닌 수익1.0과 2시에 청산을 시킬려면 어떻게 수식을 바꾸어야 하는지 알려주세요. 먼저 진입한 진입명 "Sell"로 진입한 것은 기존대로 수익1.0과 12시에 청산되어야 합니다. 감사합니다. If C > O Then Buy("Buy", AtMarket); If C < O Then Sell("Sell", AtMarket); SetstopProfittarget(2.0, Pointstop); SetstopEndofday(120000); If MarketPosition == -1 and EntryCount == 1 Then { If PositionProfit < -1.0 Then { Sell("피라미딩매도",Atstop,Highest(High,barsSinceEntry+1)-atr(30)*3); } If MarketPosition == -1 and EntryName == "피라미딩매도" Then { SetstopProfittarget(1.0, Pointstop); SetstopEndofday(140000+TimeDelay); }