해외선물 오일 10분봉 매매를 하고 있는데요
아래식을 적용하니 신고가발생시 진입하는 수식은 맞는데...
보니까 최고가가 신고가일때 다음봉에 진입하더라고요...
실제로 보면 신고가 돌파하지 않는 상태에서도 진입하네요...
신고가를 종가로 돌파시 다음봉에 진입하는 수식으로 변경이 가능할가요?
input :신고가평균봉수(100);
input : 신고가거래제한봉수(50);
input : 거래량(1000);
#청산 조건
input : 청산이평(50);
input : 손절이평(100);
input : 터치익절(1.5),즉시손절(0.7);
var : hi1(0),hi2(0),mav1(0),mav2(0);
mav1 = ma(C,청산이평);
mav2 = ma(C,손절이평);
Condition1 = H > highest(H,신고가평균봉수)[1];
if Condition1 == true Then
{
hi1 = index;
hi2 = hi1[1];
if (hi2 == 0 or (hi2 > 0 and hi1 > hi2+신고가거래제한봉수)) and V >= 거래량 Then
buy("매수진입",AtMarket);
}
if MarketPosition == 1 then
{
if c < EntryPrice and CrossDown(c,mav2) Then
exitlong("손절");
if c > EntryPrice and CrossDown(c,mav1) Then
exitlong("이익실현");
}
SetStopLoss(즉시손절 , PercentStop);
SetStopProfittarget(터치익절 , PercentStop);
답변 1
예스스탁
예스스탁 답변
2020-06-05 11:10:01
안녕하세요
예스스탁입니다.
input :신고가평균봉수(100);
input : 신고가거래제한봉수(50);
input : 거래량(1000);
#청산 조건
input : 청산이평(50);
input : 손절이평(100);
input : 터치익절(1.5),즉시손절(0.7);
var : hi1(0),hi2(0),mav1(0),mav2(0);
mav1 = ma(C,청산이평);
mav2 = ma(C,손절이평);
Condition1 = C > highest(H,신고가평균봉수)[1];
if Condition1 == true Then
{
hi1 = index;
hi2 = hi1[1];
if (hi2 == 0 or (hi2 > 0 and hi1 > hi2+신고가거래제한봉수)) and V >= 거래량 Then
buy("매수진입",AtMarket);
}
if MarketPosition == 1 then
{
if c < EntryPrice and CrossDown(c,mav2) Then
exitlong("손절");
if c > EntryPrice and CrossDown(c,mav1) Then
exitlong("이익실현");
}
SetStopLoss(즉시손절 , PercentStop);
SetStopProfittarget(터치익절 , PercentStop);
즐거운 하루되세요
> 이형지 님이 쓴 글입니다.
> 제목 : 신고가 돌파후 매수 진입인데요.. 신고가를 종가기준으로 돌파했을때 진입하는 수식으