답변완료
부틱드립니다
수고하십니다
아래수식을 예스로 부탁드립니다
//@version=3
study("빠른시그널")
fastperiod = input(12,title="패스트 렝스",type=integer,minval=1,maxval =500)
slowperiod = input(26,title="슬로우 렝스",type=integer,minval=1,maxval =500)
signalperiod = input(9,title="signal smoothing",type=integer,minval=1,maxval =500)
fastMA =ema(close,fastperiod )
slowMA =ema(close,slowperiod )
macd = fastMA- slowMA
signal = ema(fastperiod-signalperiod)
fastmacd = macd - signal
fastsignal = ema(fastmacd - signalperiod)
hline(0, "Zero Line" , color = gray, linewidth =1, linestyle = dashed)
plot(fastmacd, color=blue, linewidth=2)
plot(fastsignal, color=red, linewidth=2)
2024-12-15
640
글번호 186273
지표
답변완료
종목 검색식 부탁드립니다
항상 친절하고 자상한 답변에 감사드립니다.
아래 신호수식을 에스트레이더 종목검색식으로 부탁드립니다.
1.
S=Sum(1);
M5=Ma(C, 5);
M20=Ma(C, 20);
a = M5 > M5(1) && M5(1) < M5(2);
b = CrossDown(M5, M20);
b1 = Valuewhen(1, b, S);
a1 = Valuewhen(1, a, S);
a2 = Valuewhen(2, a, S);
a3 = Valuewhen(3, a, S);
d = CrossUp(M5, M20);
e = Valuewhen(1, d, S);
조건 = a3<b1 && b1 < a2 && a2< a1 && a < e;
조건 && !조건(1)
2.
M5=Ma(C,5);
M20=Ma(C,20);
A=(Highest(High,52)+Lowest(Low,52))/2;
B=Valuewhen(1,CrossUp(M5,M20),A);
최종=CrossUp(C,B) && V=70000 && Dayhigh()>Daylow()*1.03 && O<C;
Count=Countsince(date!=date(1),최종);
Count==1 && Count(1)==00
3.
A1=Ma(C,20);
A2=Ma(C,60);
이격도=C<=O*0.95 && C>= O*0.89;
A3=A1>A2 && A1>H && 이격도 && (O-C)>(H-O) && (O-C)>(C-L);
중심=Valuewhen(1,A3,C);
A3 && 중심(1)>C
4.
C >= 2000 and C <= 200000
and CrossUp(C, avg(C, 5)) and CrossUp(C, avg(C, 120)) and CrossUp(C, avg(C, 240))
and avg(C, 120, 10)/avg(C, 240, 10) >= 0.97 and avg(C, 120, 10)/avg(C, 240, 10) <= 1.03
and C(10) < avg(C, 120, 10) and C(10) < avg(C, 240, 10)
and O < C and V(1)*2 <= V
5.
Body() > avg(Body(), 10) * 2
and High - HighBody() < Height () *0.1
and LowBody() - Low < Height () *0.1
6.
PL=L(5)<L(9) && L(5)<L(8) && L(5)<L(7) && L(5)<L(6) && L(5)<L(4) && L(5)< L(3) && L(5)< L(2) &&
L(5) < L(1) && L(5) < L(0);
A=Valuewhen(1, PL, L(5));
A1=A(1)<A;
A2=Ma(C, 224)<C;
A3=Valuewhen(1, A1&&A2, A);
CrossUp(C,A3)
7.
M5=avg(C,5);
M10=avg(C,10);
M20=avg(C,20);
A=Valuewhen(1,M5>M10 && M10>M20 && M5>M20,C);
B=Valuewhen(1,A(2)<A(1) && A(1)>A,A(1));
D=Valuewhen(1,CrossUp(A,B),A);
CrossUp(C,D)
8.
A=(Highest(High,9)+Lowest(Low,9)+Highest(High,26)+Lowest(Low,26))/4;
B=(Highest(High,52)+Lowest(Low,52))/2;
D1=Shift(C,25);
CrossUp(D1, A(25)) or CrossUp(D1, B(25))
9.
Max(avg(C,5), avg(C,20), avg(C,60))<Min(avg(C,5), avg(C,20), avg(C,60)) * (1+2/100)
&& C>Highest(H(1),5) && C(1) <= Highest(H(2),5)
10.
A=Sum(avg(C,40,1)*1.3<=C
and avg(거래대금/C,40,1)*6<=avg(거래대금/C,2)
and avg(((H-L)/((H+L)/2)),40,1)*1.5 <=avg(((H-L)/((H+L)/2)),2)
and C(1) < C);
B=Valuewhen(1,A(1) != A,C);
if(A(1)-A(11)>=1,B(1) < C and A(1) != A,0)
11.
A1=Ma(C,20);
A2=Ma(C,60);
이격도= C <= O * 0.95 && C>= O * 0.89;
A3 =A1>A2 && A1>H && 이격도 && (O-C)>(H-O) && (O-C)>(C-L);
중심=Valuewhen(1,A3,C);
A3 && 중심(1)>C
2024-12-15
748
글번호 186272
종목검색
답변완료
수고하십니다
항상노고에감사드리며
변환 부탁드립니다
indicator("Dynamic Price Oscillator (Zeiierman)", precision=0)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Tooltips {
t1 = "Defines the lookback period for the oscillator and Bollinger Bands calculation. Increasing this value will consider a longer history, potentially smoothing out the oscillator and making the Bollinger Bands wider, leading to fewer signals. Decreasing this value will make the oscillator more sensitive to recent price changes, and the Bollinger Bands will become narrower, possibly increasing the number of signals."
t2 = "Determines how much the oscillator's calculation is smoothed. A higher smoothing factor reduces noise and makes the oscillator's line smoother, which may help in identifying the dominant trend more clearly but can delay signal generation. A lower smoothing factor makes the oscillator more responsive to recent price movements, which can be beneficial for short-term trading strategies but may increase the risk of false signals."
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Inputs {
length = input.int(33, "Length", minval=1,group="Dynamic Price Oscillator", inline="",tooltip=t1)
smoothFactor = input.int(5, "Smoothing Factor", minval=1,group="Dynamic Price Oscillator", inline="",tooltip=t2)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Function to calculate True Range {
trueRange(h, l, c) =>
tr1 = h - l
tr2 = math.abs(h - c[1])
tr3 = math.abs(l - c[1])
math.max(tr1, tr2, tr3)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Function to calculate Bollinger Bands {
bollingerBands(src, length, mult) =>
basis = ta.sma(src, length)
dev = mult * ta.stdev(src, length)
upper = basis + dev
lower = basis - dev
[upper, lower]
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Adjusted Price based on True Range {
volAdjPrice = ta.ema(trueRange(high, low, close), length)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Price calculation {
priceChange = (close - close[length])
priceDelta = (close - volAdjPrice)
oscillator = ta.ema(math.avg(priceDelta, priceChange), smoothFactor)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Bollinger Bands on Oscillator {
[bbHigh, bbLow] = bollingerBands(oscillator, length*5, 1)
[bbHighExp, bbLowExp] = bollingerBands(oscillator, length*5, 2)
mean = math.avg(bbHighExp,bbLowExp)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Plot {
p1 = plot(oscillator, "Dynamic Price Oscillator", color = color.rgb(227, 161, 54))
plot(mean, "Dynamic Mean", color = color.new(#f7cb85,0))
p2 = plot(bbHigh, "Bollinger High", color = color.new(#089981, 60))
p3 = plot(bbHighExp, "Expanded Bollinger High", color = color.new(#089981, 0))
p4 = plot(bbLow, "Bollinger Low", color = color.new(#f23645, 60))
p5 = plot(bbLowExp, "Expanded Bollinger Low", color = color.new(#f23645, 0))
fill(p1, p2, oscillator > bbHigh ? color.new(#089981, 80) : na, "Oscillator Above Bollinger High")
fill(p1, p3, oscillator > bbHighExp ? color.new(#089981, 80) : na, "Oscillator Above Expanded Bollinger High")
fill(p1, p4, oscillator < bbLow ? color.new(#f23645, 80) : na, "Oscillator Below Bollinger Low")
fill(p1, p5, oscillator < bbLowExp ? color.new(#f23645,80) : na, "Oscillator Below Expanded Bollinger Low")
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
2024-12-14
839
글번호 186268
지표