Force Index(5,20) 에서
매수 : fvalfast 가 0을 1 상향시 즉시 매수
매수 : fvalfast 가 fvalslow를 1 상향시 즉시 매수
매도 : fvalfast 가 0을 1 하향시 즉시 매도
매도 : fvalfast 가 fvalslow를 1 하향시 즉시 매도
답변 1
예스스탁
예스스탁 답변
2023-06-05 10:38:09
안녕하세요
예스스탁입니다.
Inputs: ShortPeriod(5),LongPeriod(20);
Variables: Fval(0),FvalFast(0),FvalSlow(0);
Fval = ((Close - Close[1]) * Volume) ;
FvalFast = Ema(Fval, ShortPeriod);
FvalSlow = Ema(Fval, LongPeriod);
if CrossUp(FvalFast,1) Then
Buy();
if CrossUp(FvalFast,FvalSlow+1) Then
Buy();
if CrossDown(FvalFast,-1) Then
Sell();
if CrossUp(FvalFast,FvalSlow-1) Then
Sell();
즐거운 하루되세요
> 기관장 님이 쓴 글입니다.
> 제목 : 수식 문의 드립니다.
> Force Index(5,20) 에서
매수 : fvalfast 가 0을 1 상향시 즉시 매수
매수 : fvalfast 가 fvalslow를 1 상향시 즉시 매수
매도 : fvalfast 가 0을 1 하향시 즉시 매도
매도 : fvalfast 가 fvalslow를 1 하향시 즉시 매도