답변완료
종목검색식 부탁드려요
* 3가지 검색식 문의드립니다.
1. 매수가 매도를 돌파할때의 종목을
예스트레이더 종목검색식 부탁드립니다.(일봉기준)
(수식1) 매수
AA=date/100%100;
대금=(H+O+L+C)/4*V/100000000;
A=IF(C>O,대금,0);
B=SUM(A);
D=ValueWhen(1,AA(1)!=AA,B(1));
B-D;
(수식2) 매도
AA=date/100%100;
대금=(H+O+L+C)/4*V/100000000;
A=IF(C<O,대금,0);
B=SUM(A);
D=ValueWhen(1,AA(1)!=AA,B(1));
B-D;
2. 기준선 0선위에 있는 종목을 예스트레이더 검색식으로 부탁드립니다.
C - C (기간)
지표변수
기간: 11
3. 매수가 매도를 돌파할때 예스트레이더 종목 검색식 부탁드립니다.(분, 일,주,월)
(수식1) 매수
if( (high==low), 0, volume*(close-low)/(high-low))
(수식2) 매도
if( (high==low), 0, volume*(high-close)/(high-low))
2024-05-09
880
글번호 179264
종목검색
답변완료
문의
#{ Heikin Ashi PaintBarStudy
# Heikin-Ashi technique for visualization
# of trend }
inputs: UpColor( RGB(0,255,0)),DnColor( RGB(255,0,0) );
vars: haClose(0),haOpen(0),haHigh(0),haLow(0),color(0);
if index == 1 then
begin
haOpen = open;
haClose = (O+H+L+C)/4;
haHigh = MaxList( high, haOpen, haClose);
haLow = MinList( low, haOpen,haClose);
end;
if index >= 1 then
begin
haClose = (O+H+L+C)/4;
haOpen = (haOpen [1] + haClose [1])/2 ;
haHigh = MaxList(High, haOpen, haClose) ;
haLow = MinList(Low, haOpen, haClose) ;
if haClose > haOpen then
color = DnColor;
else
color = UpColor;
PlotPaintBar(haOpen,haClose,"Ignore-ME-",color);
#SetPlotWidth(2,3);
#SetPlotColor(1,color);
end;
데이타2에 적용하도록 부탁드립니다
2024-05-08
797
글번호 179261
강조
답변완료
수식 변환 가능한지 문의 드립니다.
키움증권의 지표 수식을 예스 랭귀지 검색 수식으로 변환 가능한지 문의드립니다.
키움 증권 수식은 다음과 같습니다.
수식1
rsi(period1)
수식2
a=eavg(rsi(period1),period2);
avg(ma(a,1,단순),p)+d1*stdev(ma(a,1,단순),p)
수식3
a=eavg(rsi(period1),period2);
avg(ma(a,1,단순),p)
수식4
a=eavg(rsi(period1),period2);
avg(ma(a,1,단순),p)-d1*stdev(ma(a,1,단순),p)
2024-05-08
814
글번호 179260
종목검색
답변완료
ALMA Smoothed Gaussian Moving Average 수식 변경 요청 합니다
항상 감사 드립니다.
아래의 수식은 트레이딩뷰 사이트 에서 사용되는 수식 입니다.
이 수식을 예스트레이더에서 사용 할수 있도록 변경 부탁드립니다..
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © profitprotrading
//@version=5
indicator("ALMA Smoothed Gaussian Moving Average", shorttitle = "ASGMA", overlay=true)
//ALMA Smoothing
src = input(close, title='Source', group = "ALMA Smoothing")
smooth = input.int(1, title='Smoothing', minval=1, group = "ALMA Smoothing")
length1 = input.int(25, title='Lookback', minval=1, group = "ALMA Smoothing")
offset = 0.85
sigma1 = 7
pchange = ta.change(src, smooth) / src * 100
avpchange = ta.alma(pchange, length1, offset, sigma1)
//RSI
rsi = ta.rsi(close, 14)
rsiL = rsi > rsi[1]
rsiS = rsi < rsi[1]
//Chande Momentum
length11 = 9
src1 = close
momm = ta.change(src1)
f1(m) => m >= 0.0 ? m : 0.0
f2(m) => m >= 0.0 ? 0.0 : -m
m1 = f1(momm)
m2 = f2(momm)
sm1 = math.sum(m1, length11)
sm2 = math.sum(m2, length11)
percent(nom, div) => 100 * nom / div
chandeMO = percent(sm1-sm2, sm1+sm2)
cL = chandeMO > chandeMO[1]
cS = chandeMO < chandeMO[1]
//GAMA credit to author: © LeafAlgo https://www.tradingview.com/v/th7NZUPM/
length = input.int(14, minval=1, title="Length", group = "Gaussian Adaptive Moving Average")
adaptive = input.bool(true, title="Adaptive Parameters", group = "Gaussian Adaptive Moving Average")
volatilityPeriod = input.int(20, minval=1, title="Volatility Period", group = "Gaussian Adaptive Moving Average")
// Calculate Gaussian Moving Average
gma = 0.0
sumOfWeights = 0.0
sigma = adaptive ? ta.stdev(close, volatilityPeriod) : input.float(1.0, minval=0.1, title="Standard Deviation", group = "Gaussian Adaptive Moving Average")
for i = 0 to length - 1
weight = math.exp(-math.pow(((i - (length - 1)) / (2 * sigma)), 2) / 2)
value = ta.highest(avpchange, i + 1) + ta.lowest(avpchange, i + 1)
gma := gma + (value * weight)
sumOfWeights := sumOfWeights + weight
gma := (gma / sumOfWeights) / 2
gma:= ta.ema(gma, 7)
gmaColor = avpchange >= gma ? color.rgb(0, 161, 5) : color.rgb(215, 0, 0)
// Color bars based on signals until the next signal occurs
var int currentSignal = 0
currentSignal := avpchange >= gma ? 1 : -1//le_final ? -1 : currentSignal
var color barColor = na
if currentSignal == 1
barColor := color.rgb(0, 186, 6)
else if currentSignal == -1
barColor := color.rgb(176, 0, 0)
barcolor(barColor)
plotcandle(open, high, low, close, "Bar Color", barColor, barColor, bordercolor = barColor)
//Plotting
ema = ta.ema(close, 7)
plot(ema, color=gmaColor, linewidth=3, title="Gaussian Moving Average")
plotshape(ta.crossover(avpchange,gma) and barstate.isconfirmed, "Buy Signal", text = "B", textcolor = color.white, style = shape.labelup, location = location.belowbar, color = color.rgb(0, 161, 5), offset = -1)
plotshape(ta.crossunder(avpchange,gma) and barstate.isconfirmed, "Sell Signal", text = "S", textcolor = color.white, style = shape.labeldown, location = location.abovebar, color = color.rgb(215, 0, 0), offset = -1)
bgcolor(ta.crossover(avpchange,gma) and barstate.isconfirmed and rsiL and cL ? color.rgb(0, 162, 5, 85): na, offset = -1)
bgcolor(ta.crossunder(avpchange,gma) and barstate.isconfirmed and rsiS and cS ? color.rgb(207, 0, 0, 85): na, offset = -1)
barcolor(gmaColor)
alertcondition(ta.crossover(avpchange,gma) and barstate.isconfirmed, title="Buy Signal", message="Go Long! {{exchange}}:{{ticker}}")
alertcondition(ta.crossunder(avpchange,gma) and barstate.isconfirmed, title="Sell Signal", message="Go Short! {{exchange}}:{{ticker}}")
2024-05-08
1306
글번호 179256
강조