답변완료
검색식 부탁 드립니다
a=avg(c,5);
b=avg(c,20);
d=avg(c,60);
매수=valuewhen(1,a>b&&b>d&&a>d,c);
라인=valuewhen(1,매수(2)<매수(1)&&매수(1)>매수,매수(1));
valuewhen(1,crossup(a,라인),a)
분봉에서 돌파 첫캔들 검색식 부탁 드립니다
2024-08-23
654
글번호 182782
종목검색
답변완료
지표설정
1)최근260일중 고가와 저가의 변동폭이 35% 미만일때의 지표설정을 차트에 색으로 구현하고 싶습니다
2)최근260일중 고가와 저가의 변동폭이 20% 미만일때의 지표설정을 차트에 색으로 구현하고 싶습니다
3)최근260일중 고가와 저가의 변동폭이 10% 미만일때의 지표설정을 차트에 색으로 구현하고 싶습니다
그대로 복사=>붙이기=>검증하면
이미선언된 이름을 다시 선언하고 있습니다.이선언은 무시....
이렇게 나오는데 이상없는건지요??
1번파트만 붙이기후 검증시는 이상없는것으로 나옵니다.
1
input : P(260),Per(35);
var : HH(0),LL(0),box(0);
HH = highest(H,P);
LL = lowest(L,P);
Condition1 = hh <= ll*(1+per/100);
if Condition1 == true Then
{
if Condition1[1] == False Then
{
box = Box_New(sDate,sTime,h,NextBarSdate,NextBarStime,l);
Box_SetColor(box,Magenta);
Box_SetFill(box,true);
Box_SetExtFill(box,true);
}
Else
{
Box_SetEnd(box,NextBarSdate,NextBarStime,l);
}
}
2
input : P(260),Per(20);
var : HH(0),LL(0),box(0);
HH = highest(H,P);
LL = lowest(L,P);
Condition1 = hh <= ll*(1+per/100);
if Condition1 == true Then
{
if Condition1[1] == False Then
{
box = Box_New(sDate,sTime,h,NextBarSdate,NextBarStime,l);
Box_SetColor(box,Magenta);
Box_SetFill(box,true);
Box_SetExtFill(box,true);
}
Else
{
Box_SetEnd(box,NextBarSdate,NextBarStime,l);
}
}
3
input : P(260),Per(10);
var : HH(0),LL(0),box(0);
HH = highest(H,P);
LL = lowest(L,P);
Condition1 = hh <= ll*(1+per/100);
if Condition1 == true Then
{
if Condition1[1] == False Then
{
box = Box_New(sDate,sTime,h,NextBarSdate,NextBarStime,l);
Box_SetColor(box,Magenta);
Box_SetFill(box,true);
Box_SetExtFill(box,true);
}
Else
{
Box_SetEnd(box,NextBarSdate,NextBarStime,l);
}
}
2024-08-23
651
글번호 182777
지표
답변완료
수고하십니다
항상 저희를 위해 수고해주시는데 감사하며
아래식을 캔들에 색을입혀 구분하게 강조로 부탁드립니다
input : source(close);
input : per1(27);
input : mult1(1.6);
input : per2(55);
input : mult2(2);
var : wper1(0),avrng1(0),smrng1(0);
var : wper2(0),avrng2(0),smrng2(0);
var : smrng(0),filt(0);
var : upward(0),downward(0);
var : hband(0),lband(0);
var : longCond(False),shortcond(False),CondIni(0);
var : long(False),short(False),tx(0);
wper1 = per1 * 2 - 1;
avrng1 = ema(abs(source - source[1]), per1);
smrng1 = ema(avrng1, wper1) * mult1;
wper2 = per2 * 2 - 1;
avrng2 = ema(abs(source - source[1]), per2);
smrng2 = ema(avrng2, wper2) * mult2;
smrng = (smrng1 + smrng2) / 2;
// Range Filter
#rngfilt(source, smrng) =>
var1 = iff(IsNaN(filt[1])==true,0,filt[1]);
filt = source;
filt = iff(source > var1,
iff(source - smrng < var1 , var1 , source - smrng),
iff(source + smrng > var1 , var1 , source + smrng));
var2 = iff(IsNaN(upward[1])==true,0,upward[1]);
upward = 0.0;
upward = iff(filt > filt[1] , Var2 + 1 ,IFf(filt < filt[1] , 0 , Var2));
var3 = iff(IsNaN(downward[1])==true,0,downward[1]);
downward = 0.0;
downward = iff(filt < filt[1] , Var3 + 1 , iff(filt > filt[1] , 0 , Var3));
hband = filt + smrng;
lband = filt - smrng;
longCond = source > filt and source > source[1] and upward > 0 or source > filt and source < source[1] and upward > 0;
shortCond = source < filt and source < source[1] and downward > 0 or source < filt and source > source[1] and downward > 0;
CondIni = IFf(longCond , 1 , IFf(shortCond , -1 , CondIni[1]));
long = longCond and CondIni[1] == -1;
short = shortCond and CondIni[1] == 1;
if long Then
{
tx = Text_New(sDate,sTime,L,"매수");
Text_SetStyle(tx,2,0);
Text_SetColor(tx,Lime);
Text_setsize(tx,20);
}
if short Then
{
tx = Text_New(sDate,sTime,H,"매도");
Text_SetStyle(tx,2,1);
Text_SetColor(tx,Black);
Text_setsize(tx,20);
}
2024-08-22
665
글번호 182776
강조