답변완료
지표 변환 문의드립니다.
트레이딩뷰 지표입니다만 변환 가능할까요??
// This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) https://creativecommons.org/licenses/by-nc-sa/4.0/
// © LuxAlgo
//@version=5
indicator("QQE Weighted Oscillator [LuxAlgo]", "LuxAlgo - QQE Weighted Oscillator")
//------------------------------------------------------------------------------
//Settings
//-----------------------------------------------------------------------------{
length = input.int(14, minval = 1)
factor = input.float(4.236, minval = 0)
smooth = input.int(5, minval = 1)
weight = input.float(2)
src = input(close)
//Style
rsiCss = input(#3179f5, 'RSI', group = 'Style')
tsBearCss = input(color.red, 'Trailing Stop', group = 'Style', inline = 'inline1')
tsBullCss = input(color.teal, '', group = 'Style', inline = 'inline1')
//-----------------------------------------------------------------------------}
//Weighted QQE
//-----------------------------------------------------------------------------{
var ts = 0.
var rsi = 0.
delta = src - src[1]
w = nz(delta * (rsi - ts) > 0 ? weight : 1, 1)
//Rsi
num = ta.rma(delta * w, length)
den = ta.rma(math.abs(delta * w), length)
rsi := 50 * ta.ema(num / den, smooth) + 50
//Trailing stop
diff = ta.rma(math.abs(rsi - rsi[1]), length)
crossover = ta.crossover(rsi, ts)
crossunder = ta.crossunder(rsi, ts)
ts := nz(crossover ? rsi - diff * factor
: crossunder ? rsi + diff * factor
: rsi > ts ? math.max(rsi - diff * factor, ts)
: math.min(rsi + diff * factor, ts), rsi)
//-----------------------------------------------------------------------------}
//Plots
//-----------------------------------------------------------------------------{
css = rsi > ts ? tsBullCss : tsBearCss
plot_rsi = plot(rsi, 'RSI', rsiCss)
plot_ts = plot(ts, 'Traling Stop', css)
fill(plot_rsi, plot_ts, rsi, ts, color.new(rsiCss, 50), color.new(css, 50))
hline(70)
hline(30)
//-----------------------------------------------------------------------------}
2023-11-20
1095
글번호 174231
지표
답변완료
예스트레이더 종목검색식으로 작성요청합니다.
기 아래 수식으로 예스에서 강조로 질물해서 답변잘 받았습니다..
아래 신호검색은 키움에서 작성된 것입니다..
이것을 예스트레이더 종목검색으로 변환요청합니다.
항상 도움을 주셔서 감사합니다..
A1=MA(C,5);
A2=MA(C,10);
A3=MA(C,20);
A4=MA(C,40);
A5=MA(C,60);
A6=MA(C,120);
A=Lowest(L, 260, 1)*1.25;
B=sar(0.02,0.2);
조건=A1(1)<A1 && A2(1)>A2 && A3(1)>A3 &&
A4(1)>A4 && A5(1)>A5 && A6(1)>A6;
조건 && !조건(1) && B<=C && A>=A1 && C>O
2023-11-20
1223
글번호 174230
검색
답변완료
문의 드립니다
if L ==lowest(L,1) and highest(H,3) >= lowest(L,2)+PriceScale*1 Then
{
Buy("b",AtStop,(highest(H,3)+lowest(L,1))/2);
}
if MarketPosition == 1 and BarsSinceEntry == 9 Then
Sell();
}
if H == highest(H,1) and lowest(L,3) <= highest(H,2)+PriceScale*1 Then
{
Sell("s",AtStop,(lowest(L,3)+highest(H,1))/2);
}
if MarketPosition == -1 and BarsSinceEntry == 9 Then
Buy();
위 수식어 풀이를 부탁드립니다.
2023-11-21
748
글번호 174210
시스템