아래 수식을 예스 수식으로 변환하고 싶습니다.
부탁 좀 드리겠습니다.. 감사합니다.
/PRC_ZigZag Average | indicator
//30.05.2018
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
//--- settings
Percentage = 1
mmPeriod = 30
//--- end of settings
peak = ZigZag[Percentage](high)
trough = ZigZag[Percentage](low)
if peak<peak[1] and peak[1]>peak[2] then
last=1
endif
if trough>trough[1] and trough[1]<trough[2] then
last=-1
endif
if last>0 then
mm=average[mmPeriod](high)
else
mm=average[mmPeriod](low)
endif
if mm>mm[1] then
r=0
g=128
b=196
else
r=255
g=0
b=0
endif
return mm coloured(r,g,b) style(line,2)
답변 1
예스스탁
예스스탁 답변
2022-06-02 14:38:54
안녕하세요
예스스탁입니다.
올려주신 내용은 변환을 해드릴수 없습니다.
peak = ZigZag[Percentage](high)
trough = ZigZag[Percentage](low)
위 함수의 내용을 알 수 없습니다.
변환하기 위해서는 위 내용에 대한 수식이 필요합니다.
즐거운 하루되세요
> 부똘이 님이 쓴 글입니다.
> 제목 : 수식 문의
> 아래 수식을 예스 수식으로 변환하고 싶습니다.
부탁 좀 드리겠습니다.. 감사합니다.
/PRC_ZigZag Average | indicator
//30.05.2018
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
//--- settings
Percentage = 1
mmPeriod = 30
//--- end of settings
peak = ZigZag[Percentage](high)
trough = ZigZag[Percentage](low)
if peak<peak[1] and peak[1]>peak[2] then
last=1
endif
if trough>trough[1] and trough[1]<trough[2] then
last=-1
endif
if last>0 then
mm=average[mmPeriod](high)
else
mm=average[mmPeriod](low)
endif
if mm>mm[1] then
r=0
g=128
b=196
else
r=255
g=0
b=0
endif
return mm coloured(r,g,b) style(line,2)