답변완료
수식수정
var : A(0), B(0), D(0), AA(0),BB(0),MM(0), R(0);
A=ma(C,5);
B=ma(C,20);
D=ma(C,40);
AA=BollBandUp(17,2);
BB=BollBandUp(40,2);
MM=EnvelopeUp(20,6);
R = RSI(20);
var1 = Disparity(120);
if ((c>ma(h,5) and Crossup(AA,MM)) or
(c>ma(h,5) and BB>MM and Crossup(AA,BB)) or
(AA>BB and BB>MM and Crossup(C,AA)) or
(Crossup(C,AA))and
Crossup(C,BB) and Crossup(C,MM)) and var1 <= 115
and C<=C[1]*1.1
and R>60
and (A>B>D or A>D>B)
and (B>B[1]>B[2] or D>D[1]>D[2])
and V>V[1]*2 Then
Find(1);
위 수식은 88455번에서 작성해주신 것에 다음조건을 추가하여 작성해본 것인데
밑에서 4번째줄에(and (A>B>D or A>D>B)) '>'가 올수 없다고 검증에 나옵니다.
추가조건: 종가등락 10%미만
rsi(20)>60
5일선>20일선>40일선 또는 5>40>20
20일선 또는 40일선 상승추세 2회이상
전일거래량 대비 200%이상
어떨게 수정해야 하나요?
그리고 이 신호가 발생하는 날에 동시에
선행스팬(9,26,52일)1이 2를 상향돌파하는 종목을 검색하는 수식으로 수정/추가 바랍니다.
2024-08-05
1074
글번호 182247
종목검색
답변완료
문의 드립니다
안녕하세요
다음지표을 예스로 전환부탁드립니다
//@version = 4
study(title=" Support and Resistance Levels with Breaks",shorttitle = " Support and Resistance Levels with Breaks [LuxAlgo]", overlay = true , max_bars_back=1000)
//
toggleBreaks = input(true, title = "Show Breaks" )
leftBars = input(15, title = "Left Bars ")
rightBars = input(15, title = "Right Bars")
volumeThresh = input(20, title = "Volume Threshold")
//
highUsePivot = fixnan(pivothigh(leftBars, rightBars)[1])
lowUsePivot = fixnan(pivotlow(leftBars, rightBars)[1])
r1 = plot(highUsePivot, color=change(highUsePivot) ? na : #FF0000, linewidth=3, offset=-(rightBars+1), title="Resistance")
s1 = plot(lowUsePivot, color=change(lowUsePivot) ? na : #233dee, linewidth=3, offset=-(rightBars+1), title="Support")
//Volume %
short = ema(volume, 5)
long = ema(volume, 10)
osc = 100 * (short - long) / long
//For breaks with volume
plotshape(toggleBreaks and crossunder(close,lowUsePivot) and not (open - close < high - open) and osc > volumeThresh, title = "Break", text = 'B', style = shape.labeldown, location = location.abovebar, color= color.red,textcolor = color.white, transp = 0, size = size.tiny)
plotshape(toggleBreaks and crossover(close,highUsePivot ) and not(open - low > close - open) and osc > volumeThresh, title = "Break", text = 'B', style = shape.labelup, location = location.belowbar, color= color.green,textcolor = color.white, transp = 0, size = size.tiny)
//For bull / bear wicks
plotshape(toggleBreaks and crossover(close,highUsePivot ) and open - low > close - open , title = "Break", text = 'Bull Wick', style = shape.labelup, location = location.belowbar, color= color.green,textcolor = color.white, transp = 0, size = size.tiny)
plotshape(toggleBreaks and crossunder(close,lowUsePivot) and open - close < high - open , title = "Break", text = 'Bear Wick', style = shape.labeldown, location = location.abovebar, color= color.red,textcolor = color.white, transp = 0, size = size.tiny)
alertcondition(crossunder(close,lowUsePivot) and osc > volumeThresh , title = "Support Broken" , message = "Support Broken")
alertcondition(crossover(close,highUsePivot) and osc > volumeThresh, title = "Resistance Broken" , message = "Resistance Broken")
감사합니다
2024-08-04
918
글번호 182246
지표