답변완료
종목검색식 부탁드림니다.
안녕하세요?항상 노고에 감사드림니다.아래의 수식을 종목검색식으로 부탁드림니다.MA_OK = ma(C, 5, 단순) > ma(C, 20, 단순);RSI_OK = RSI(14) > 50;M = MACD(12, 26);MACD_OK = M > eavg(M, 9);BB_OK = C > BBandsC(20, 2.0);STOCH_OK = StochasticsFast(12) > 50;VOL_OK = V > ma(V, 20, 단순);DI_OK = DIPlus(14) > DIMinus(14);CCI_OK = CCI(14) > 0;Ob = OBV();OBV_OK = Ob > Ob(5);ADX_OK = ADX(14) > 25;Score = (MA_OK + RSI_OK + MACD_OK + BB_OK + STOCH_OK + VOL_OK + DI_OK + CCI_OK + OBV_OK + ADX_OK);Score1 = Score(1);Score >= 7 && Score1 < 7
답변완료
문의드립니다.
Input : Period(14), sigPeriod(9),수량(1);var : TRIXv(0),TRIXs(0);TRIXv = TRIX(Period);TRIXs = ema(TRIXv,sigPeriod);if MarketPosition <= 0 and CrossUp(TRIXv,TRIXs) and TRIXv < 0 Then Buy("B",OnClose,def,수량);위에 식에서 수량은 삭제해 주시고청산은 없이 매수만 계속되게 하고자 합니다.피라미딩 설정하는 방식은 알고 있습니다.청산은 제가 직접 하고자 합니다. 매도의 경우도 매수와 같은 방식으로 작성해 주시면 감사하겠습니다. 부탁드립니다.
답변완료
문의 드립니다.
안녕하세요 RSI(5)가 70 이상일때, 현재가격이 아래의 라인을 돌파하는 ( 또는 라인 위에 있는 ) 종목의 검색식을 부탁 드립니다.A=RSI(11);B=macd(9,18);D=macd(9,18)-eavg(macd(9,18),6);a1=crossup(A,30);a2=crossdown(A,70);b1=crossup(B,D);b2=crossdown(B,D);E=valuewhen(1,a1 or a2 or b1 or b2,o);wavg(e,2)*1.00382;감사합니다.
답변완료
조건검색문의드립니다
아래검색식 오류수정좀 부탁드립니다input : MA5_Period(25);input : MA20_Period(100);input : Vol_Period(20);input : Vol_Mult(1.5);var : cnt(0), sum(0);var : MA5(0), MA20(0);var : MA5_Prev(0);var : Vol_Avg(0);var : Vol_Sum(0);var : BodySize(0), CandleSize(0);var : PriceChange(0);var : UpMove(0), DownMove(0);var : AvgUp(0), AvgDown(0);var : RS(0), RSI_Val(0);var : Deviation(0), TradingValue(0);Array : MA5_Array[100](0);Array : Close_Array[100](0);Array : Vol_Array[100](0);if sDate != sDate[1] and DayOfWeek(sdate) <= DayOfWeek(sdate[1]) Then { for cnt = 99 downto 1 { Close_Array[cnt] = Close_Array[cnt-1]; MA5_Array[cnt] = MA5_Array[cnt-1]; } Close_Array[0] = C[1];}Close_Array[0] = C;sum = 0;for cnt = 0 to MA5_Period-1 { sum = sum + C[cnt];}MA5 = sum / MA5_Period;MA5_Prev = Average(C, MA5_Period)[1];sum = 0;for cnt = 0 to MA20_Period-1 { sum = sum + C[cnt];}MA20 = sum / MA20_Period;Vol_Sum = 0;for cnt = 0 to Vol_Period { Vol_Sum = Vol_Sum + V[cnt];}Vol_Avg = Vol_Sum / (Vol_Period + 1);AvgUp = 0;AvgDown = 0;for cnt = 0 to 13 { if C[cnt] > C[cnt+1] Then { UpMove = C[cnt] - C[cnt+1]; DownMove = 0; } else if C[cnt] < C[cnt+1] Then { UpMove = 0; DownMove = C[cnt+1] - C[cnt]; } else { UpMove = 0; DownMove = 0; } AvgUp = AvgUp + UpMove; AvgDown = AvgDown + DownMove;}AvgUp = AvgUp / 14;AvgDown = AvgDown / 14;if AvgDown > 0 Then { RS = AvgUp / AvgDown; RSI_Val = 100 - (100 / (1 + RS));} else { RSI_Val = 100;}Cond_Above_MA5 := C > MA5;Cond_Yesterday_Below := C[1] <= MA5_Prev;Cond_Bull_Candle := C > O;BodySize := AbsValue(C - O);CandleSize := H - L;if CandleSize > 0 Then { Cond_Strong_Bull := BodySize > CandleSize * 0.6;} else { Cond_Strong_Bull := False;}Cond_Volume_Basic := V > Vol_Avg * Vol_Mult;Cond_Volume_Max3 := (V > V[1]) and (V > V[2]);Cond_RSI := (RSI_Val > 50) and (RSI_Val < 70);Cond_Price_Rising := C > C[1];if C[1] > 0 Then { PriceChange := ((C - C[1]) / C[1]) * 100; Cond_Not_Overheated := PriceChange < 3;} else { Cond_Not_Overheated := False;}MA5_Rising := MA5 > Average(C, MA5_Period)[5];Cond_MA5_Above_MA20 := MA5 > MA20;if MA5 > 0 Then { Deviation := ((C - MA5) / MA5) * 100; Cond_Proper_Deviation := (Deviation >= -1) and (Deviation <= 3);} else { Cond_Proper_Deviation := False;}TradingValue := C * V;Cond_Liquidity := TradingValue >= 1000000000;Cond_Essential := Cond_Above_MA5 and Cond_Yesterday_Below and Cond_Bull_Candle and Cond_Volume_Basic;Cond_Enhanced := Cond_Strong_Bull and Cond_Volume_Max3 and Cond_RSI and Cond_Price_Rising;Cond_Optimized := Cond_Not_Overheated and MA5_Rising and Cond_MA5_Above_MA20 and Cond_Proper_Deviation and Cond_Liquidity;if Cond_Essential and Cond_Enhanced and Cond_Optimized Then Find(1);
답변완료
종목검색식 부탁드립니다
1. 일봉차트에서, 주봉 60이평선을 그어서(단순), 주봉 60이평선 상하 1%에 있는 종목검색식 부탁드립니다 (음봉 양봉 모두) (변수로 부탁드립니다)2. 일봉차트에서 , 주봉 60이평선을 그어서 (단순), 주봉 60이평선 상하1 %에 있는 0봉전-10봉전까지의 모든 종목검색식 부탁 드려요. (변수로 부탁드려요)3. 아래 수식을 참고하여, 수식1)이 수식2)를 골드크로스한 이후(전제조건입니다) 즉, 수식1) 이 수식2)를 돌파한 종목중에서, 수식1)이 전일보다 상승한 종목 검색식 부탁드려요. ---아래---- 수식1) A=(C-lowest(C,period))/C*110; max(A,0) 수식2) B=(highest(C,period)-C)/C*110; max(B,0) 지표변수 period 200
답변완료
수식 부탁드립니다
지표식, 시스템식 부탁 드립니다. //──────────────────────────────// INPUTS//──────────────────────────────length = input.int(12, "Trend Length")multATR = input.float(0.6, "ATR Multiplier", step = 0.1)//──────────────────────────────// MARKET BIAS FUNCTION//──────────────────────────────calc_mb_avg(len) => o = ta.ema(open, len) c = ta.ema(close, len) h = ta.ema(high, len) l = ta.ema(low, len) haclose = (o + h + l + c) / 4 haopen = na(haclose[1]) ? (o + c) / 2 : (haclose[1] + (o + c) / 2) / 2 hahigh = math.max(h, math.max(haopen, haclose)) halow = math.min(l, math.min(haopen, haclose)) h2 = ta.ema(hahigh, len) l2 = ta.ema(halow, len) (h2 + l2) / 2//──────────────────────────────// ATR//──────────────────────────────atr_value = ta.sma(ta.atr(200), 200) * multATR//──────────────────────────────// BAND//──────────────────────────────mb_avg = calc_mb_avg(length)sma_high = mb_avg + atr_valuesma_low = mb_avg - atr_value//──────────────────────────────// TREND LOGIC//──────────────────────────────var bool trend = naif ta.crossover(close, sma_high) and barstate.isconfirmed trend := trueif ta.crossunder(close, sma_low) and barstate.isconfirmed trend := falsetrend_value = trend ? sma_low : sma_high//──────────────────────────────// TREND LINE//──────────────────────────────plot(trend ? trend_value : na, title="UpTrend", style=plot.style_linebr, color=trend ? color.green : na, linewidth=2)plot(not trend ? trend_value : na, title="DownTrend", style=plot.style_linebr, color=not trend ? color.red : na, linewidth=2)//──────────────────────────────// SIGNAL MARKERS//──────────────────────────────signal_up = ta.change(trend) and not trend[1]signal_down = ta.change(trend) and trend[1]sigUp = signal_up ? low - atr_value * 2 : nasigDn = signal_down ? high + atr_value * 2 : naplotshape(sigUp, "", shape.triangleup, location.absolute, color.green, size=size.small)plotshape(sigDn, "", shape.triangledown, location.absolute, color.red, size=size.small)