답변완료
부틱드립니다
수고하십니
아래 키움수식을 예스수식로 부탁드립니다
수식1
A1 =MA(C,5,이평종류);
A2 =MA(C,20,이평종류);
A3 =MA(C,40,이평종류);
B1 = A3>A1 && A1>A2;
조건 = valuewhen(1,B1, o);
조건 && ! 조건(1)
수식2
A1 =MA(C,5,이평종류);
A2 =MA(C,20,이평종류);
A3 =MA(C,40,이평종류);
B2 = A1>A3 && A3>A2;
조건 = valuewhen(1,B2, o);
조건 && ! 조건(1)
수식3
A1 =MA(C,5,이평종류);
A2 =MA(C,20,이평종류);
A3 =MA(C,40,이평종류);
B3 = A1>A2 && A2>A3;
조건 = valuewhen(1,B3, o);
조건 && ! 조건(1)
2024-09-08
643
글번호 183259
지표
답변완료
수식전환
수고많으십니다 아래수식을 예스로 변환시켜 보았으나 연산자 앞뒤 두데이타의 형태가 같아야 한다면서 안되네요 ㅠ클리닉 좀 부탁드립니다^^
AA=DAYCLOSE[1]*가격1<=DAYHIGH() AND DAYLOW()*가격2<=DAYHIGH() AND
DAYOPEN()*가격3<=DAYCLOSE();
A=(DAYHIGH()+DAYLOW())*0.5;
Valuewhen(1,AA,A);
B=DAYLOW()+((DAYHIGH()-DAYLOW())*0.382);
Valuewhen(1,AA,B);
BB=DAYLOW()+((DAYHIGH()-DAYLOW())*0.618);
Valuewhen(1,AA,BB);
위를 변환시킨식은 아래와 같습니다 뭣이가 잘못인지요?
VAR:AA(0),A(0),B(0),BB(0),가격1(1.12),가격2(1.12),가격3(1.07);
AA=DAYCLOSE[1]*가격1<=DAYHIGH() AND DAYLOW()*가격2<=DAYHIGH() AND
DAYOPEN()*가격3<=DAYCLOSE();
A=(DAYHIGH()+DAYLOW())*0.5;
B=DAYLOW()+((DAYHIGH()-DAYLOW())*0.382);
BB=DAYLOW()+((DAYHIGH()-DAYLOW())*0.618);
IF DAYCLOSE[1]*가격1<=DAYHIGH() AND DAYLOW()*가격2<=DAYHIGH() AND
DAYOPEN()*가격3<=DAYCLOSE() TheN
VAR1=A;
IF DAYCLOSE[1]*가격1<=DAYHIGH() AND DAYLOW()*가격2<=DAYHIGH() AND
DAYOPEN()*가격3<=DAYCLOSE() TheN
Var2=B;
IF DAYCLOSE[1]*가격1<=DAYHIGH() AND DAYLOW()*가격2<=DAYHIGH() AND
DAYOPEN()*가격3<=DAYCLOSE() TheN
Var3=BB;
Plot1(VAR1);
PLOT2(Var2);
PLOT3(Var3);
2024-09-08
707
글번호 183257
지표
답변완료
수식변환요청
수고하십니다.
아래 수식을 예스로 변환부탁드립니다.
===============================
study("[blackcat] L3 Banker Fund Flow Trend Oscillator", overlay=false)
//functions
xrf(values, length) =>
r_val = float(na)
if length >= 1
for i = 0 to length by 1
if na(r_val) or not na(values[i])
r_val := values[i]
r_val
r_val
xsa(src,len,wei) =>
sumf = 0.0
ma = 0.0
out = 0.0
sumf := nz(sumf[1]) - nz(src[len]) + src
ma := na(src[len]) ? na : sumf/len
out := na(out[1]) ? ma : (src*wei+out[1]*(len-wei))/len
out
//set up a simple model of banker fund flow trend
fundtrend = ((3*xsa((close- lowest(low,27))/(highest(high,27)-lowest(low,27))*100,5,1)-2*xsa(xsa((close-lowest(low,27))/(highest(high,27)-lowest(low,27))*100,5,1),3,1)-50)*1.032+50)
//define typical price for banker fund
typ = (2*close+high+low+open)/5
//lowest low with mid term fib # 34
lol = lowest(low,34)
//highest high with mid term fib # 34
hoh = highest(high,34)
//define banker fund flow bull bear line
bullbearline = ema((typ-lol)/(hoh-lol)*100,13)
//define banker entry signal
bankerentry = crossover(fundtrend,bullbearline) and bullbearline<25
//banker fund entry with yellow candle
plotcandle(0,50,0,50,color=bankerentry ? color.new(color.yellow,0):na)
//banker increase position with green candle
plotcandle(fundtrend,bullbearline,fundtrend,bullbearline,color=fundtrend>bullbearline ? color.new(color.green,0):na)
//banker decrease position with white candle
plotcandle(fundtrend,bullbearline,fundtrend,bullbearline,color=fundtrend<(xrf(fundtrend*0.95,1)) ? color.new(color.white,0):na)
//banker fund exit/quit with red candle
plotcandle(fundtrend,bullbearline,fundtrend,bullbearline,color=fundtrend<bullbearline ? color.new(color.red,0):na)
//banker fund Weak rebound with blue candle
plotcandle(fundtrend,bullbearline,fundtrend,bullbearline,color=fundtrend<bullbearline and fundtrend>(xrf(fundtrend*0.95,1)) ? color.new(color.blue,0):na)
//overbought and oversold threshold lines
h1 = hline(80,color=color.red, linestyle=hline.style_dotted)
h2 = hline(20, color=color.yellow, linestyle=hline.style_dotted)
h3 = hline(10,color=color.lime, linestyle=hline.style_dotted)
h4 = hline(90, color=color.fuchsia, linestyle=hline.style_dotted)
fill(h2,h3,color=color.yellow,transp=70)
fill(h1,h4,color=color.fuchsia,transp=70)
alertcondition(bankerentry, title='Alert on Yellow Candle', message='Yellow Candle!')
alertcondition(fundtrend>bullbearline, title='Alert on Green Candle', message='Green Candle!')
alertcondition(fundtrend<(xrf(fundtrend*0.95,1)), title='Alert on White Candle', message='White Candle!')
alertcondition(fundtrend<bullbearline, title='Alert on Red Candle', message='Red Candle!')
alertcondition(fundtrend<bullbearline and fundtrend>(xrf(fundtrend*0.95,1)), title='Alert on Blue Candle', message='Blue Candle!')
2024-09-07
654
글번호 183253
지표