커뮤니티
이 세 가지 식의 차이점이 궁금합니다.
2017-10-10 21:19:20
129
글번호 113266
1.
if MarketPosition == 1 and c >= entryprice+profitpoint then exitlong();
if MarketPosition == -1 and c <= entryprice-profitpoint then ExitShort();
2.
if MarketPosition == 1 Then ExitLong("매수청산2",AtLimit,EntryPrice+ProfitPoint); //AtLimit
if MarketPosition == -1 Then ExitShort("매도청산2",AtLimit,EntryPrice-ProfitPoint); //AtLimit
3.
if MarketPosition == 1 and c > entryprice+profitpoint then exitlong("매수청산2",AtStop,entryprice+profitpoint);
if MarketPosition == -1 and c < entryprice-profitpoint then ExitShort("매도청산2",AtStop,EntryPrice-ProfitPoint);
1번과 2번,3번 모두 진입가가 목표가(entry+profit)에 도달한 경우 청산하는 식으로 알고 있는데요. 구체적인 차이점이 궁금합니다.
감사합니다.
답변 1
예스스탁 예스스탁 답변
2017-10-11 15:12:48
안녕하세요
예스스탁입니다.
1번
봉완성시 종가기준으로 수익판단해 청산하는 수식입니다.
매수진입후 종가가 진입가+profitpoint보다 크거나 같으면 청산
매도진입후 종가가 진입가+profitpoint보다 작거나 같으면 청산
2번
봉미완성시에 지정한 수익조건이 되면 즉시 청산하는 수식입니다.
매수진입후 진입가+profitpoint보다 크거나 같은 시세가 발생하면 즉시 청산
매도진입후 진입가+profitpoint보다 낮거나 같은 시세가 발생하면 즉시 청산
3번
종가상 지정한 수익이 발생하고 이후에 수익이 감소하면 즉시 청산하는 방법입니다.
매수진입후 봉완성시 종가가 진입가+profitpoint보다 크거나 같은 봉이 발생하고
그 다음봉에서 진입가+profitpoint보다 작거나 같은 시세가 발생하면 즉시 청산
매도진입후 봉완성시 종가가 진입가-profitpoint보다 작거나 같은 봉이 발생하고
그 다음봉에서 진입가+profitpoint보다 크거나 같은 시세가 발생하면 즉시 청산
즐거운 하루되세요
> 가치투자꾼 님이 쓴 글입니다.
> 제목 : 이 세 가지 식의 차이점이 궁금합니다.
> 1.
if MarketPosition == 1 and c >= entryprice+profitpoint then exitlong();
if MarketPosition == -1 and c <= entryprice-profitpoint then ExitShort();
2.
if MarketPosition == 1 Then ExitLong("매수청산2",AtLimit,EntryPrice+ProfitPoint); //AtLimit
if MarketPosition == -1 Then ExitShort("매도청산2",AtLimit,EntryPrice-ProfitPoint); //AtLimit
3.
if MarketPosition == 1 and c > entryprice+profitpoint then exitlong("매수청산2",AtStop,entryprice+profitpoint);
if MarketPosition == -1 and c < entryprice-profitpoint then ExitShort("매도청산2",AtStop,EntryPrice-ProfitPoint);
1번과 2번,3번 모두 진입가가 목표가(entry+profit)에 도달한 경우 청산하는 식으로 알고 있는데요. 구체적인 차이점이 궁금합니다.
감사합니다.
다음글
이전글