예스스탁
예스스탁 답변
2020-09-11 14:31:16
안녕하세요
예스스탁입니다.
1
input : shortperiod(10),midperiod(20),longperiod(30),period(3),d1(10);
var : hc(0),f(0);
var1 = (Highest(high,shortperiod)+Lowest(low,shortperiod)+Highest(high,midperiod)+Lowest(low,midperiod))/4;
Var2 = (Highest(high,longperiod)+Lowest(low,longperiod))/2;
var3 = rsi(period);
if crossup(Var3,d1) Then
hc = c;
if hc > 0 and C > hc Then
hc = c;
if Bdate != Bdate[1] Then
F = 0;
if hc and c>var1 and C>Var2 Then
F = F+1;
if F[1] != 1 and F == 1 Then
var1 = c;
Plot1(var1);
2
input : 기간(5),D1(0.7),선행기간(2),K(5),P(2);
var1 = ma(C,기간+k*p);
if var1 >= var1[1] Then
value1 = var1;
if var1 < var1[1] Then
Value2 = var1;
Plot1(value1);
Plot2(value2);
FixPlotShift(1,선행기간-1);
FixPlotShift(2,선행기간-1);
즐거운 하루되세요
> 임진사댁원장 님이 쓴 글입니다.
> 제목 : 지표수식전환 요청
> 다음 수식을 예스로 전환부탁드립니다
<1>
A=(Highest(high,shortperiod)+Lowest(low,shortperiod)+Highest(high,midperiod)+Lowest(low,midperiod))/4;
B=(Highest(high,longperiod)+Lowest(low,longperiod))/2;
F=Countsince(date(1)!=date,highestsince(1,crossup(rsi(period),d1),c) and c>A and C>B);
valuewhen(1,F(1)!=1 and F==1,c)
추가설정
shortperiod 10
midperiod 20
longperiod 30
period 3
d1 10
<2>
수식1
m=BBandsC(기간+k*p,D1);
shift(if(m>=m(1),m,0),선행기간-1)
수식2
shift(if(m<m(1),m,0),선행기간-1)
추가설정
기간 5
D1 0.7
선행기간 2
K 5
P 2