수식1
A=EAvg(C, 20) > EAvg(C, 60) and Eavg(C, 60) > EAvg(C, 120);
ValueWhen(1, A(1) and Crossdown(EAvg(C, 20),
EAvg(C, 60)) and EAvg(C, 60) > EAvg(C, 120), EAvg(C, 120))
수식2
A=EAvg(C, 20) < EAvg(C, 60) and Eavg(C, 60) < EAvg(C, 120);
ValueWhen(1, A(1) and CrossUP(EAvg(C, 20),
EAvg(C, 60)) and EAvg(C, 60) < EAvg(C, 120), EAvg(C, 120))
위 수식을 변환 부탁드립니다
답변 1
예스스탁
예스스탁 답변
2024-09-04 15:00:39
안녕하세요
예스스탁입니다.
var : A(False),B(False);
var1 = Ema(c,20);
var2 = Ema(c,60);
var3 = Ema(c,120);
A=var1 > Var2 and Var2 > Var3;
B=var1 < Var2 and Var2 < Var3;
if A[1] == true and CrossDown(var1,Var2) and var2 > Var3 Then
value1 = Var3;
if B[1] == true and CrossUp(var1,Var2) and var2 < Var3 Then
value2 = Var3;
if value1 > 0 Then
Plot1(value1);
if Value2 > 0 Then
Plot2(value2);
즐거운 하루되세요
> 팔보채 님이 쓴 글입니다.
> 제목 : 수식 변환 부탁드립니다
> 수식1
A=EAvg(C, 20) > EAvg(C, 60) and Eavg(C, 60) > EAvg(C, 120);
ValueWhen(1, A(1) and Crossdown(EAvg(C, 20),
EAvg(C, 60)) and EAvg(C, 60) > EAvg(C, 120), EAvg(C, 120))
수식2
A=EAvg(C, 20) < EAvg(C, 60) and Eavg(C, 60) < EAvg(C, 120);
ValueWhen(1, A(1) and CrossUP(EAvg(C, 20),
EAvg(C, 60)) and EAvg(C, 60) < EAvg(C, 120), EAvg(C, 120))
위 수식을 변환 부탁드립니다