아래 수식
plot5(C,"현재가",iff(C>var2,red,blue));
신호 나오게 부탁 드립니다.
input : ST(0000),ET(0000);
if stime == ST or (stime > ST and stime[1] < ST) then{
Condition1 = true;
var1 = C;
var2 = C;
}
if stime == ET or (stime > ET and stime[1] < ET) then
Condition1 = false;
if Condition1 == true Then{
if C > var1 Then{
var1 = C;
}
if C < var2 Then{
var2 = C;
}
}
plot1(var1);
plot2(var2);
plot5(C,"현재가",iff(C>var2,red,blue));
var: 기본값(0),기준(0),Up(0),Down(0);
if dayindex()==0 then{
var1=H;
var2=L;
}
기준 = (var1+var2)/2;
Up = var1;
down = var2;
plot13(기준);
if ma(C,1) > ma(C,1)[1] then
plot14(ma(c,1),"이동평균1",RED);
else
plot15(ma(c,1),"이동평균2",BLUE);
답변 1
예스스탁
예스스탁 답변
2021-01-22 13:57:09
안녕하세요
예스스탁입니다.
input : ST(0000),ET(0000);
if stime == ST or (stime > ST and stime[1] < ST) then{
Condition1 = true;
var1 = C;
var2 = C;
}
if stime == ET or (stime > ET and stime[1] < ET) then
Condition1 = false;
if Condition1 == true Then{
if C > var1 Then{
var1 = C;
}
if C < var2 Then{
var2 = C;
}
}
if c > Var2 Then
buy();
Else
Sell();
즐거운 하루되세요
> 뚜벅뚜벅 님이 쓴 글입니다.
> 제목 : 안녕하세요
> 아래 수식
plot5(C,"현재가",iff(C>var2,red,blue));
신호 나오게 부탁 드립니다.
input : ST(0000),ET(0000);
if stime == ST or (stime > ST and stime[1] < ST) then{
Condition1 = true;
var1 = C;
var2 = C;
}
if stime == ET or (stime > ET and stime[1] < ET) then
Condition1 = false;
if Condition1 == true Then{
if C > var1 Then{
var1 = C;
}
if C < var2 Then{
var2 = C;
}
}
plot1(var1);
plot2(var2);
plot5(C,"현재가",iff(C>var2,red,blue));
var: 기본값(0),기준(0),Up(0),Down(0);
if dayindex()==0 then{
var1=H;
var2=L;
}
기준 = (var1+var2)/2;
Up = var1;
down = var2;
plot13(기준);
if ma(C,1) > ma(C,1)[1] then
plot14(ma(c,1),"이동평균1",RED);
else
plot15(ma(c,1),"이동평균2",BLUE);