커뮤니티
재문의
2016-10-05 10:12:11
95
글번호 102509
49587 문의에 대한 답변글이
제가 올린식과 같은데요
확인 부탁드립니다
답변 1
예스스탁 예스스탁 답변
2016-10-05 13:48:54
안녕하세요
예스스탁입니다.
아래 답변에 올려드린식은 2번문의 내용에 대한 식입니다.
n틱의 배수만큼 진입하게 수정한 식입니다.
원본식에 위 내용이 추가되어 있는 식입니다.
수식 내용 확인하시기 바랍니다.
Input : Period(14),upsig(75),downsig(25),수익틱수(5),최대진입횟수(10),추가진입틱수(15);
var : RSIV(0);
RSIV = RSI(Period);
if MarketPosition <= 0 and CrossDown(RSIV,downsig) Then{
buy("1매수",OnClose,def,1);
}
if MarketPosition == 1 Then{
if CurrentEntries == 최대진입횟수 Then
ExitLong("도청",atlimit,AvgEntryPrice+PriceScale*수익틱수);
if CurrentEntries < 최대진입횟수 Then
buy("BB",atlimit,LatestEntryPrice(0)-(PriceScale*추가진입틱수)*MaxEntries,1);
if CurrentEntries == 최대진입횟수 Then
ExitLong("BStop",atstop,LatestEntryPrice(0)-(PriceScale*추가진입틱수)*MaxEntries);
}
if MarketPosition >= 0 and Crossup(RSIV,upsig) Then{
sell("1매도",OnClose,def,1);
}
if MarketPosition == -1 Then{
if CurrentEntries == 최대진입횟수 Then
ExitShort("수청",atlimit,AvgEntryPrice-PriceScale*수익틱수);
if CurrentEntries < 최대진입횟수 Then
sell("SS",atlimit,LatestEntryPrice(0)+(PriceScale*추가진입틱수)*MaxEntries,1);
if CurrentEntries == 최대진입횟수 Then
ExitShort("Sstop",atstop,LatestEntryPrice(0)+(PriceScale*추가진입틱수)*MaxEntries);
}
즐거운 하루되세요
> 쿠루드 님이 쓴 글입니다.
> 제목 : 재문의
> 49587 문의에 대한 답변글이
제가 올린식과 같은데요
확인 부탁드립니다
다음글
이전글