답변완료
문의드립니다
CrossUp(c,shift((highest(high,shortPeriod)+highest(low,shortPeriod)
+highest(high,midPeriod)+highest(low,midPeriod))/4,midPeriod-1))
and
CrossUp(c,shift(UpperBand=highest(H,n),midPeriod-1))
shortperiod 9
midperiod 26
n 26
수식으로 검색식 부탁드립니다
2024-08-30
556
글번호 182987
종목검색
답변완료
종목검색식 부탁 합니다.
안녕하세요.
아래 수식 종목검색식으로 변환 부탁 합니다.
green 신호가 발생 했을때 종목 검색 되도록 요청 드립니다.
수고하세요.
input : Periods(10);
input : Multiplier(3.0);
input : changeATR(true);
input : showsignals(true);
input : highlighting(true);
var : src(0),alpha(0),atr1(0),atr2(0),atrv(0);
var : up(0),up1(0),dn(0),dn1(0);
var : trend(0),tx(0);
src = (h+l)/2;
alpha = 1/Periods;
atr1 = iff(IsNan(atr1[1]) == true,ma(TrueRange, Periods), alpha * TrueRange + (1 - alpha) * iff(IsNan(atr1[1])==true,0,atr1[1]));
atr2 = ma(TrueRange, Periods);
atrv = iff(changeATR ==true,atr1, atr2);
up = src-(Multiplier*atrv);
up1 = iff(isnan(up[1])==true,up,up[1]);
up = iff(close[1] > up1 , max(up,up1), up);
dn = src+(Multiplier*atrv);
dn1 = iff(isnan(dn[1])==true,dn,dn[1]);
dn = iff(close[1] < dn1 , min(dn, dn1) , dn);
trend = 1;
trend = iff(isnan(trend[1])==true,trend,trend[1]);
trend = iff(trend == -1 and close > dn1 , 1 , iff(trend == 1 and close < up1 , -1 , trend));
if trend == 1 Then
{
plot1(up,"Up Trend",green);
NoPlot(2);
}
Else
{
NoPlot(1);
plot2(dn,"Down Trend",Red);
}
if trend == 1 and trend[1] == -1 Then
{
tx = Text_New(sDate,sTime,up,"●");
Text_SetColor(tx,Green);
Text_SetStyle(tx,2,2);
}
if trend == -1 and trend[1] == 1 Then
{
tx = Text_New(sDate,sTime,dn,"●");
Text_SetColor(tx,Red);
Text_SetStyle(tx,2,2);
}
2024-08-30
523
글번호 182983
종목검색