항시 수고 많습니다. 아래 수식의 변환을 부탁드립니다.
L = input(title="Lenght", type=input.integer, defval=29)
short_prd = input(title="Short Period", type=input.integer, defval=27)
long_prd = input(title="Long Period", type=input.integer, defval=81)
hsp_short = ema(((close - ema(close,L)) / ema(close,L))*100,short_prd)
hsp_long =  ema(((close - ema(close,L)) / ema(close,L))*100,long_prd)
plot(hsp_short,"short period",color.blue,linewidth=2)
plot(hsp_long,"long period",color.green,linewidth=2)
답변 1
예스스탁
예스스탁 답변
2024-02-26 15:35:23
안녕하세요
예스스탁입니다.
input : Length(29);
input : short_prd(27);
input : long_prd(81);
var : price(0),hsp_short(0),hsp_long(0);
price = Ema(Close,length);
hsp_short = ema(((close - price) / price)*100,short_prd);
hsp_long = ema(((close - price) / price)*100,long_prd);
plot1(hsp_short,"short period",blue);
plot2(hsp_long,"long period",green);
즐거운 하루되세요
> 이큐 님이 쓴 글입니다.
> 제목 : 수식 도움 요청드립니다
> 항시 수고 많습니다. 아래 수식의 변환을 부탁드립니다.
L = input(title="Lenght", type=input.integer, defval=29)
short_prd = input(title="Short Period", type=input.integer, defval=27)
long_prd = input(title="Long Period", type=input.integer, defval=81)
hsp_short = ema(((close - ema(close,L)) / ema(close,L))*100,short_prd)
hsp_long =  ema(((close - ema(close,L)) / ema(close,L))*100,long_prd)
plot(hsp_short,"short period",color.blue,linewidth=2)
plot(hsp_long,"long period",color.green,linewidth=2)