수식부탁드립니다.
if crossup(c,dayopen()) && dayindex()>0 then buy("1");
if c > dayopen()*1.1 then exitlong("11");
if crossup(c,dayopen()*1.1) && dayindex()>0 then buy("2");
if c > dayopen()*1.2 then exitlong("22");
위수식과 같이 시뮬레이션하면
매수1이 발생하고 청산11이 발생하고 이후
매수2가 발생하고 청산22가 아닌 청산11이 발생하는데
수정부탁드립니다.
위와 별도로
당일 특정시간이후 최저가 구현식도 부탁드립니다.
감사합니다.
답변 1
예스스탁
예스스탁 답변
2023-03-13 11:32:53
안녕하세요
예스스탁입니다.
1
진입별로 청산하고자 하시면 아래와 같이 수정하시면 됩니다.
if crossup(c,dayopen()) && dayindex()>0 then buy("1");
if c > dayopen()*1.1 then exitlong("11",OnClose,DeF,"1");
if crossup(c,dayopen()*1.1) && dayindex()>0 then buy("2");
if c > dayopen()*1.2 then exitlong("22",OnClose,DeF,"2");
2
input : ntime(110000);
var : ll(0);
if Bdate != Bdate[1] Then
ll = 0;
if sTime >= ntime Then
{
if ll == 0 or (ll > 0 and l < ll) Then
ll = l;
Plot1(ll);
}
Else
NoPlot(1);
즐거운 하루되세요
> 베스트시스템 님이 쓴 글입니다.
> 제목 : 수식부탁드립니다
> 수식부탁드립니다.
if crossup(c,dayopen()) && dayindex()>0 then buy("1");
if c > dayopen()*1.1 then exitlong("11");
if crossup(c,dayopen()*1.1) && dayindex()>0 then buy("2");
if c > dayopen()*1.2 then exitlong("22");
위수식과 같이 시뮬레이션하면
매수1이 발생하고 청산11이 발생하고 이후
매수2가 발생하고 청산22가 아닌 청산11이 발생하는데
수정부탁드립니다.
위와 별도로
당일 특정시간이후 최저가 구현식도 부탁드립니다.
감사합니다.