답변완료
지표 변환 부탁드립니다.
키움에서 쓰던 신호 지표이며, 일전에 한 번 도움을 청한 적 있는 지표입니다.
다름이 아니라, 당일 포착 포함 5일이내 포착 된 적 있으면 검색을 할 수 있는 검색식 부탁드립니다.
A=bbandsup(17,2);
B=bbandsup(40,2);
M=EnvelopeUp(20,2);
IF((c>ma(h,5) and CrossUp(A,M)) or
(c>ma(h,5) and B>M and CrossUp(A,B))
or (A>B and B>M and CrossUP(C,A))
or (CrossUP(C,A) and CrossUP(C,B) and CrossUP(C,M)),1,0)
2025-05-07
314
글번호 190625
검색
답변완료
부탁드립니다.
indicator("K's Reversal Indicator I", overlay = true)
fast = input(defval = 12, title = 'Fast')
slow = input(defval = 26, title = 'Slow')
signal = input(defval = 9, title = 'Signal')
length = input(defval = 100, title = 'Bollinger Lookback')
multiplier = input(defval = 2, title = 'Multiplier')
// MACD
macd_line = ta.ema(close, fast) - ta.ema(close, slow)
signal_line = ta.ema(macd_line, signal)
// Bollinger
lower_boll = ta.sma(close, length) - (multiplier * ta.stdev(close, length))
upper_boll = ta.sma(close, length) + (multiplier * ta.stdev(close, length))
mid_line = ta.sma(close, length)
// Signal
buy_signal = math.min(open[1], close[1]) <= lower_boll[1] and math.max(open[1], close[1]) <= mid_line and macd_line[1] > signal_line[1] and macd_line[2] < signal_line[2]
sell_signal = math.max(open[1], close[1]) >= upper_boll[1] and math.min(open[1], close[1]) >= mid_line and macd_line[1] < signal_line[1] and macd_line[2] > signal_line[2]
// Plotting
plotshape(buy_signal, style = shape.triangleup, color = color.green, location = location.belowbar, size = size.small)
plotshape(sell_signal, style = shape.triangledown, color = color.red, location = location.abovebar, size = size.small)
bar_size = timeframe.multiplier * (timeframe.isdaily?1440:timeframe.isweekly?7*1440:timeframe.ismonthly?30*1440:1) * 60*1000
if buy_signal == true
line.new(time, low[1] - (high[1] - low[1]) * 2, time + bar_size * 20, low[1] - (high[1] - low[1]) * 2, xloc.bar_time, color = color.green, width = 2)
line.new(time, open, time + bar_size * 20, open, xloc.bar_time, color = color.blue, width = 2)
if sell_signal == true
line.new(time, high[1] + (high[1] - low[1]) * 2, time + bar_size * 20, high[1] + (high[1] - low[1]) * 2, xloc.bar_time, color = color.red, width = 2)
line.new(time, open, time + bar_size * 20, open, xloc.bar_time, color = color.blue, width = 2)
2025-05-07
263
글번호 190624
지표
답변완료
수식 수정 부탁 드립니다
아래 지표는 1분 6분에 세로선이 생성됩니다
0분 5분에 세로선이 생성되도록 변경 부탁 드립니다
//시간세로선
input : ntime(5);
var : S1(0),D1(0),TM(0),TF(0),TL(0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%ntime;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or
(Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or
(Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then
{
TL = TL_New(sDate,sTime,0,sDate,sTime,99999999);
TL_SetColor(TL,Green);
}
}
2025-05-07
283
글번호 190601
지표