커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
1699
글번호 230811
답변완료
수식변경 부탁드립니다.
아래 TradingView 수식(Donchian Trend Ribbon) 변경부탁드립니다.
1. 지표와 전략 두개로 작성 부탁드립니다. 함수로 작성하여 분리해주셔도 감사하겠습니다.
매매기준은 색상변환시 입니다.
2. 추세색상(형광, 빨강) 이외에 추세전환전 옅게 색칠되는 부분이 잘 보였으면 좋겠습니다.
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © LonesomeTheBlue
//@version=4
study("Donchian Trend Ribbon")
dlen = input(defval = 20, title = "Donchian Channel Period", minval = 10)
dchannel(len)=>
float hh = highest(len)
float ll = lowest(len)
int trend = 0
trend := close > hh[1] ? 1 : close < ll[1] ? -1 : nz(trend[1])
trend
dchannelalt(len, maintrend)=>
float hh = highest(len)
float ll = lowest(len)
int trend = 0
trend := close > hh[1] ? 1 : close < ll[1] ? -1 : nz(trend[1])
trendcolor = maintrend == 1 ? trend == 1 ? #00FF00ff : #00FF009f :
maintrend == -1 ? trend == -1 ? #FF0000ff : #FF00009f :
na
trendcolor
maintrend = dchannel(dlen)
plot(05, color = dchannelalt(dlen - 0, maintrend), style = plot.style_columns, histbase=00)
plot(10, color = dchannelalt(dlen - 1, maintrend), style = plot.style_columns, histbase=05)
plot(15, color = dchannelalt(dlen - 2, maintrend), style = plot.style_columns, histbase=10)
plot(20, color = dchannelalt(dlen - 3, maintrend), style = plot.style_columns, histbase=15)
plot(25, color = dchannelalt(dlen - 4, maintrend), style = plot.style_columns, histbase=20)
plot(30, color = dchannelalt(dlen - 5, maintrend), style = plot.style_columns, histbase=25)
plot(35, color = dchannelalt(dlen - 6, maintrend), style = plot.style_columns, histbase=30)
plot(40, color = dchannelalt(dlen - 7, maintrend), style = plot.style_columns, histbase=35)
plot(45, color = dchannelalt(dlen - 8, maintrend), style = plot.style_columns, histbase=40)
plot(50, color = dchannelalt(dlen - 9, maintrend), style = plot.style_columns, histbase=45)
2021-04-27
1597
글번호 148426
답변완료
수식변경 부탁드립니다.
아래 TradingView 수식(SuperTrend MTF Heikin Ashi) 변경부탁드립니다.
1. 지표와 전략 두개로 작성 부탁드립니다. 함수로 작성하여 분리해주셔도 감사하겠습니다.
매매기준은 다음과 같습니다.
매수 : TimeFrame이 높은 것이 상승중일때, TimeFrame낮은것이 상승전환 시 매수
매도 : TimeFrame이 높은 것이 하락중일때, TimeFrame낮은것이 하락전환 시 매도
2. 지표에서 지정되는 High TimeFrame 은 굳이 Auto로 안해주셔도 되며, 직접 지정할 수 있었으면 좋겠습니다.
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © LonesomeTheBlue
//
// Author : LonesomeTheBlue
//
//@version=4
study("Supertrend MTF Heikin Ashi", overlay = true)
mode =input(title = "HTF Method", defval = 'Auto', options=['Auto', 'User Defined'])
//auto higher time frame
HTFo =timeframe.period == '1' ? '5' :
timeframe.period == '3' ? '15' :
timeframe.period == '5' ? '15' :
timeframe.period == '15' ? '60' :
timeframe.period == '30' ? '120' :
timeframe.period == '45' ? '120' :
timeframe.period == '60' ? '240' :
timeframe.period == '120' ? '240' :
timeframe.period == '180' ? '240' :
timeframe.period == '240' ? 'D' :
timeframe.period == 'D' ? 'W' :
'5W'
HTFm = input('5', title = "Time Frame (if HTF Method=User Defined)", type=input.resolution)
HTF = mode == 'Auto' ? HTFo : HTFm
Mult = input(defval = 2.0, title = "ATR Factor", minval = 0.5, maxval = 100, step = 0.1)
Period = input(defval = 7, title = "ATR Period", minval = 1,maxval = 100)
// current time frame
//Heikin Ashi high, low, close
h = security(heikinashi(syminfo.tickerid), timeframe.period, high)
l = security(heikinashi(syminfo.tickerid), timeframe.period, low)
c = security(heikinashi(syminfo.tickerid), timeframe.period, close)
//HeikinAshi atr
Atr = security(heikinashi(syminfo.tickerid), timeframe.period, atr(Period))
Up = (h + l) / 2 - (Mult * Atr)
Dn = (h + l) / 2 + (Mult * Atr)
float TUp = na
float TDown = na
Trend = 0
TUp := c[1] > TUp[1] ? max(Up,TUp[1]) : Up
TDown := c[1] < TDown[1] ? min(Dn,TDown[1]) : Dn
Trend := c > TDown[1] ? 1: c < TUp[1]? -1: nz(Trend[1],1)
Trailingsl = Trend == 1 ? TUp : TDown
linecolor = Trend == 1 and nz(Trend[1]) == 1 ? color.lime : Trend == -1 and nz(Trend[1]) == -1 ? color.red : na
plot(Trailingsl, color = linecolor , linewidth = 2, title = "SuperTrend")
// Higher Time Frame
////// HTF high, low, close
highhtf = security(heikinashi(syminfo.tickerid), HTF, high[1], lookahead = barmerge.lookahead_on)
lowhtf = security(heikinashi(syminfo.tickerid), HTF, low[1], lookahead = barmerge.lookahead_on)
closehtf = security(heikinashi(syminfo.tickerid), HTF, close[1], lookahead = barmerge.lookahead_on)
// ATR for HTF
HTfatr = security(heikinashi(syminfo.tickerid), HTF, atr(Period)[1], lookahead = barmerge.lookahead_on)
Uphtf = abs(highhtf + lowhtf) / 2 - (Mult * HTfatr)
Dnhtf = abs(highhtf + lowhtf) / 2 + (Mult * HTfatr)
float TUphtf = na
float TDownhtf = na
TrendHtf = 0
TUphtf := closehtf[1] > TUphtf[1] ? max(Uphtf, TUphtf[1]) : Uphtf
TDownhtf := closehtf[1] < TDownhtf[1] ? min(Dnhtf,TDownhtf[1]) : Dnhtf
TrendHtf := closehtf > TDownhtf[1] ? 1 : closehtf < TUphtf[1] ? -1: nz(TrendHtf[1], 1)
TrailingslHtf = TrendHtf == 1 ? TUphtf : TDownhtf
linecolorHtf = TrendHtf == 1 and nz(TrendHtf[1]) == 1 ? color.blue : TrendHtf == -1 and nz(TrendHtf[1]) == -1 ? color.red : na
st = plot(TrailingslHtf, color = linecolorHtf , linewidth = 3, title = "Supertrend HTF", transp = 0)
plot(TrendHtf == 1 and TrendHtf[1] == -1 ? TrailingslHtf : na, title="Supertrend HTF Trend Up", linewidth = 4, color=color.blue, transp=0, style = plot.style_circles)
plot(TrendHtf == -1 and TrendHtf[1] == 1 ? TrailingslHtf : na, title="Supertrend HTF Trend Down", linewidth = 4, color=color.red, transp=0, style = plot.style_circles)
//Alerts
alertcondition(Trend == 1 and Trend[1] == -1, title='Supertrend Trend Up', message='Supertrend Trend Up')
alertcondition(Trend == -1 and Trend[1] == 1, title='Supertrend Trend Down', message='Supertrend Trend Down')
alertcondition(TrendHtf == 1 and TrendHtf[1] == -1, title='Supertrend HTF Trend Up', message='Supertrend HTF Trend Upl')
alertcondition(TrendHtf == -1 and TrendHtf[1] == 1, title='Supertrend HTF Trend Down', message='Supertrend HTF Trend Down')
2021-04-27
1528
글번호 148425
답변완료
수식변경 부탁드립니다.
아래 TradingView 수식(Adaptive ATR-ADX Trend v2) 변경부탁드립니다.
1. 기존과 똑같이 ATR, ATR Multiplier(ADX Rising), ATR Multiplier(ADX Falling), Interval, ADX, BandPip, ADX Threshold 등 모든 변수들의 변경이 가능했으면 좋겠습니다.
2. Interval 옵션은 반드시 변경가능했으면 좋겠습니다.
3. Default옵션인 ADX Above Threshold uses ATR Falling Multiplier Even if Rising?도 항시 체크상태였으면 좋겠습니다.
4. 지표와 전략 두개로 작성 부탁드립니다. 함수로 작성하여 분리해주셔도 감사하겠습니다.
//@version=3
// Constructs the trailing ATR stop above or below the price, and switches
// directions when the source price breaks the ATR stop. Uses the Average
// Directional Index (ADX) to switch between ATR multipliers. The higher
// multiplier is used when the ADX is rising, and the lower ATR multiplier
// is used with the ADX is falling. This ADX criteria further widens the gap
// between the source price and the trailing ATR stop when the price is trending,
// and lessens the gap between the ATR and the price when then price is not
// trending.
//
// The ATR-ADX stop is effectively a double adapative stop that trails the price,
// by both adapting to the true range of the price, and the average directional
// change. When the stop is below the price (long trade) the value never decreases
// until the price intersects the stop, and it reverses to being above the price
// (short trade). When the stop is above the price it will never increase until
// it is intersected by the price. As the true range and ADX change, the stop
// will move more quickly or more slowly.
// http://www.fxtsp.com/1287-doubly-adaptive-profit-average-true-range-objectives/
study(title = "Adaptive ATR-ADX Trend Multi-Timeframe", shorttitle = "Adaptive ATR Multi", overlay = true)
//Mode
atrLen = input(title = "ATR", type = integer, defval = 14, minval = 1, maxval = 100)
m1 = input(title = "ATR Multiplier - ADX Rising", type = float, defval = 3.5, minval = 1, step = 0.1, maxval = 100)
m2 = input(title = "ATR Multiplier - ADX Falling", type = float, defval = 1.75, minval = 1, step = 0.1, maxval = 100)
dintval = input(title = "Inverval (i.e. 15, 60, 240, D, W)", defval = '60')
useIntval = input(false, title = "Use Chart Interval")
bandHalfWidth = input(1, title = "Band Pip/Tick Size Around Stop", minval = 0)
showBand = input(false, title = "Use Band Around Stop?")
adxLen = input(title = "ADX", type = integer, defval = 14, minval = 1, maxval = 100)
adxThresh = input(title = "ADX Threshold", type = integer, defval = 25, minval = 1)
aboveThresh = input(true, title = "ADX Above Threshold uses ATR Falling Multiplier Even if Rising?")
useHeikin = input(false, title = "Use Heikin-Ashi Bars (Source will be ohlc4)")
src = ohlc4
tk = syminfo.mintick
blockMult = tk < 0.1 and (tk != 0.01 or syminfo.pointvalue < 10 or syminfo.pointvalue * tk <= 1) and (tk != 0.001 or syminfo.pointvalue <= 1) and tk != 0.005 and tk != 0.0001 and tk != 0.0005 and tk != 0.03125 and tk != 0.015625 ? tk == 0.00005 or tk * 100 == 0.00005 ? 2 : 10 : 1
block = tk * blockMult
atrCalc() =>
// DI-Pos, DI-Neg, ADX
hR = change(high)
lR = -change(low)
dmPos = hR > lR ? max(hR, 0) : 0
dmNeg = lR > hR ? max(lR, 0) : 0
sTR = tr
sTR := nz(sTR[1]) - nz(sTR[1]) / adxLen + tr
sDMPos = tr
sDMPos := nz(sDMPos[1]) - nz(sDMPos[1]) / adxLen + dmPos
sDMNeg = tr
sDMNeg := nz(sDMNeg[1]) - nz(sDMNeg[1]) / adxLen + dmNeg
DIP = sDMPos / sTR * 100
DIN = sDMNeg / sTR * 100
DX = abs(DIP - DIN) / (DIP + DIN) * 100
adx = sma(DX, adxLen)
// Heikin-Ashi
xClose = ohlc4
xOpen = open
xOpen := (nz(xOpen[1]) + nz(xClose[1])) / 2
xHigh = max(high, max(xOpen, xClose))
xLow = min(low, min(xOpen, xClose))
// Trailing ATR
v1 = abs(xHigh - xClose[1])
v2 = abs(xLow - xClose[1])
v3 = xHigh - xLow
trueRange = max(v1, max(v2, v3))
atr = useHeikin ? rma(trueRange, atrLen) : atr(atrLen)
m = m1
m := rising(adx, 1) and (adx < adxThresh or not aboveThresh) ? m1 : falling(adx, 1) or (adx > adxThresh and aboveThresh) ? m2 : nz(m[1])
mUp = DIP >= DIN ? m : m2
mDn = DIN >= DIP ? m : m2
src_ = useHeikin ? (xOpen + xHigh + xLow + xClose) / 4 : src
c = useHeikin ? xClose : close
t = useHeikin ? (xHigh + xLow) / 2 : hl2
up = t - mUp * atr
dn = t + mDn * atr
TUp = close
TUp := max(src_[1], max(c[1], close[1])) > TUp[1] ? max(up, TUp[1]) : up
TDown = close
TDown := min(src_[1], min(c[1], close[1])) < TDown[1] ? min(dn, TDown[1]) : dn
trend = 1
trend := min(src_, min(c, close)) > TDown[1] ? 1 : max(src_, max(c, close)) < TUp[1]? -1 : nz(trend[1], 1)
// ceil positive trend to nearest pip/tick, floor negative trend to nearest pip/tick
stop = trend == 1 ? ceil(TUp / block) * block : floor(TDown / block) * block
trendChange = change(trend)
[adx, trend, stop, trendChange]
[adx, _trend, _stop, _trendChange] = atrCalc()
start = security(tickerid, dintval, time, lookahead = true)
newSession = iff(change(start), 1, 0)
sinceNew = barssince(newSession)
// Fixes intervals that are uneven, i.e. 120 on normal 6.5 hour NYSE day
// This will happen if a 2H interval closes at 4:00 EST but opened at 3:30
// EST. This is a new session candle. The 9:30 open the next day will also
// be a new session candle, which shouldn't happen. There should never be
// 2 consecutive candles that are new session candles, unless the indicator
// interval is less than or equal to the chart interval. If there are 3
// consecutive candles where each candle is a new session, then the chart
// interval is <= the declared indicator interval.
isChartIntval = sinceNew == 0 and sinceNew[1] == 0 and sinceNew[2] == 0
trend = useIntval or isChartIntval ? _trend : security(tickerid, dintval, _trend[1], lookahead = true)
stop = useIntval or isChartIntval ? _stop : security(tickerid, dintval, _stop[1], lookahead = true)
trendChange = useIntval or isChartIntval ? _trendChange : security(tickerid, dintval, _trendChange[1], lookahead = true)
// Plot
upC = #00FF00DD
dnC = #FF0000DD
upC2 = #00FF0037
dnC2 = #FF000037
trans = #00000000
lineColor = not(trendChange) or trendChange[1] ? trend > 0 ? upC : dnC : trans
fillColor = not(trendChange) or trendChange[1] ? trend > 0 ? upC2 : dnC2 : trans
// Can't figure out any other way to solve this issue for fixing a problem where
// the indicator interval is greater than the chart interval, and the indicator is
// not divisible by the chart interval without a remainder.
oddIntervalTest = (lineColor[1] == upC and lineColor[0] == dnC) or (lineColor[1] == dnC and lineColor[0] == upC)
stopColor = oddIntervalTest ? trans : lineColor
trendChangeReal = stopColor == trans
shapeColor = trendChangeReal ? trend > 0 ? #00FF00F8 : #FF0000F8 : trans
upperBand = stop + bandHalfWidth * block
lowerBand = stop - bandHalfWidth * block
stopPlot = plot(stop, color = stopColor, title = "ATR-ADX Trend")
upper = plot(showBand ? upperBand : na, color = oddIntervalTest ? trans : lineColor, style = circles)
lower = plot(showBand ? lowerBand : na, color = oddIntervalTest ? trans : lineColor, style = circles)
fill(upper, stopPlot, title = "ATR Band Fill - Upper", color = fillColor)
fill(lower, stopPlot, title = "ATR Band Fill - Lower", color = fillColor)
plotshape(trendChangeReal ? stop : na, style = shape.circle, size = size.tiny, location = location.absolute, color = shapeColor, title = "Trend Change")
// alerts
alertcondition(trendChangeReal and trend > 0, "Adaptive ATR-ADX Trend Change Up", "Adaptive ATR-ADX Trend Change Up")
alertcondition(trendChangeReal and trend < 0, "Adaptive ATR-ADX Trend Change Down", "Adaptive ATR-ADX Trend Change Down")
alertcondition(not trendChangeReal and ((crossunder(low, stop) and trend > 0) or (crossover(high, stop) and trend < 0)), "Adaptive ATR-ADX Trend Retest", "Adaptive ATR-ADX Trend Retest")
// end
2021-04-27
1761
글번호 148424
답변완료
Rsi 지표를,,,
직접 만들어서 적용해 보려 하는데요,,,
만드는 공식 좀 알려주시면 감사하겠습니다.
2021-04-27
1213
글번호 148423
답변완료
수식수정부탁드립니다
안녕하세요
어제 매수조건과 로스컷 요청사항을 잘 반영해 주셔서 감사합니다
1. 매도조건의 상세설명이 부족한 탓에 오늘 상세한 설명과 함께 매도조건 수정 재문의 드립니다
매도조건 : sum값이 '-2' -> '-2' 매도
예) '-2' -> '-2' -> 진입과 청산 -> 매매정지 -> '-2'인 봉에서 재진입
예과 같이 '-2'가 연속 두번 나오면 진입하도록 수정 부탁드립니다
2. 아래와 같은 일일손실한도 수식이 잘 작동하지 않습니다
if bdate != bdate[1] Then
var1 = NetProfit[1];
누적수익 = NetProfit-var1+PositionProfit;
if (sTime > starttime or sTime < Endtime) and marketposition == 0 and 누적수익 > -일일손실한도 Then
{
매매식
}
부탁드립니다
감사합니다
if bdate != bdate[1] Then
var1 = NetProfit[1];
누적수익 = NetProfit-var1+PositionProfit;
if (sTime > starttime or sTime < Endtime) and marketposition == 0 and 누적수익 > -일일손실한도 Then
{
----
input : N(4),손절(0),StartTime(070000),EndTime(070000),매매정지(20),lb(0),lp(2),sb(-2),sp(-2);
var : LL(0),HH(0),cnt(0),sum(0),CL(0),CS(0),Lss(0),B(False),S(False);
Array : VV[20](0);
var : Tcond(false),S1(0),D1(0),TM(0),b_vv(0),Condition4(False),최고점(0),최저점(0),remember_vv(0),누적수익(0);
Condition1 = L[4]>L[3] and L[3] >L[2] and H>H[1] and H[1]>H[2];
Condition2 = H[4]<H[3] and H[3]<H[2] and L<L[1] and L[1]<L[2];
if ( ( var2 == 0 and C > CS and vv[0] == -1 ) or LL == 0 or C > CL ) and condition1 == true and Condition1[1] == False Then
{
var1 = var1+1;
LL = L[2];
CL = C;
VV[0] = 1;
For cnt = 1 to 19
{
VV[cnt] = VV[cnt-1][1];
}
if VV[N-1] != 0 Then
{
sum = 0;
For cnt = 0 to N-1
{
sum = sum + VV[cnt];
}
}
}
else
{
if L < LL Then
{
var1 = 0;
}
}
if (( var1 == 0 and C < CL and vv[0] ==1) or hh == 0 or C < CS) and condition2 == true and Condition2[1] == False Then
{
var2 = var2+1;
HH = H[2];
CS = C;
VV[0] = -1;
For cnt = 1 to 19
{
VV[cnt] = VV[cnt-1][1];
}
if VV[N-1] != 0 Then
{
sum = 0;
For cnt = 0 to N-1
{
sum = sum + VV[cnt];
}
}
}
Else
{
if H > HH Then
{
var2 = 0;
}
}
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
Condition4 = False;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
}
if TotalTrades > TotalTrades[1] Then
{
Condition4 = False;
if PositionProfit(1) < 0 Then
Lss = Lss+1;
Else
Lss = 0;
if lss == 3 Then
{
Condition4 = true;
Lss = 0;
}
}
if remember_vv != vv[0] Then
{
B = true;
remember_vv = 0;
}
if (sTime > starttime or sTime < Endtime) and marketposition == 0 Then
{
if vv[1] != vv[2] and vv[0] == 1 and vv[1] == 1 Then
{
if B == true and condition4 == False Then
{
Buy("b");
B = False;
remember_vv = vv[0];
}
if B == true and condition4 == true and TM >= TM[BarsSinceExit(1)]+매매정지 Then
{
Buy("b1");
B = False;
remember_vv = vv[0];
}
}
if vv[1] != vv[2] and vv[0] == -1 and vv[1] == -1 Then
{
if b == true and condition4 == False Then
{
Sell("s");
S = False;
remember_vv = vv[0];
}
if b == true and condition4 == true and TM >= TM[BarsSinceExit(1)]+매매정지 Then
{
Sell("s1");
S = False;
remember_vv = vv[0];
}
}
}
if MarketPosition(0) > 0 and sum == 0 and vv[0] == -1 Then
{
ExitLong("xl");
b = false;
}
if MarketPosition(0) < 0 and sum == 0 and vv[0] == 1 Then
{
ExitShort("xs");
b = false;
}
#타겟청산
SetStopLoss( 손절 ,PointStop);
2021-04-27
1174
글번호 148422
답변완료
재문의
아래에 적성해 주신 수식으로 적용해 보면
여러 종목들이 나오는데 3분봉에서 실제 적용해 보면 .
겝싱승은 맞는데요. 9시 3분이 되었을 때 음봉이 아니고
양봉인 것들이 있습니다.
수식을 수정해 주시기 부탁드립니다.
1 .원하는 것은 3분봉에서 갭상승하고 최초의 3분봉이 음봉인 종목들을
검색하는 것입니다.
2 추가로 3분봉에서 전날 종가에서 위 1번 처럼 갭상승하고
최초 3분봉이 1번과 반대로 양봉이 나오고 그 이후에 발생하는 3개봉안에서
음봉이 발생하고 음봉의 종가가 최초 3분봉의 종가 아래로 되는 종목들을 검색하는 것입니다.
즉 일종 시가가 3% ~ 8% 사이로 갭상승하며 최초 9시 3분봉은 양봉이며
9시 12분 까지 발생되는 4개봉 중의 음봉 종가가 있다면 음봉 종가 < 최초 3분봉 종가.
성립되는 종목들을 검색하는 수식도 별도로 부탁드립니다.
안녕하세요
예스스탁입니다.
if sDate != sDate[1] Then
{
Condition1 = False;
if DayOpen(0) >= DayClose(1)*1.03 and
DayOpen(0) <= DayClose(1)*1.08 and
C < O then
{
Condition1 = true;
}
}
if Condition1 == true Then
Find(1);
즐거운 하루되세요
> 종호 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 안녕하세요.
주식 검색식 입니다.
3 분봉에서
전날 일봉의 종가 대비 9시 최초 시가가 3% 이상 갭상승 ~ 8% 이하로 갭상승한 종목 중에서
분봉에서 최초 3분봉이 하락 음봉일 때
즉 9시 3분일때의 최초 3분봉이 하락 음봉인 주식 종목들을 검색식으로 검색하고 싶습니다.
2021-04-26
1587
글번호 148421
답변완료
분봉에서 봉 개수 구하는 지표
안녕하세요.
첨부된 이미지의 녹색 박스 안에 분봉처럼 변동성이 줄어든 날을 파악하기 위해서
다음과 같은 지표를 구하고자 합니다.
1. 전일 분봉 중에서 시가와 종가가 같은 분봉을 제외하고,
시가와 종가가 차이가 있는 분봉의 개수 만을 구하는 지표
2. 1번 지표의 전일까지의 10일간 평균
항상 감사합니다.
2021-04-26
1290
글번호 148420
답변완료
문의 드립니다.
지표 겹치기는 어떻게 하는건가요?
그리고 트레이딩뷰 시큐리티 함수랑 같은게 예스언어에도 있나요?
2021-04-26
1321
글번호 148419
답변완료
지표 부탁드립니다.
안녕하세요?
분봉에서
1. 양봉 거래량은 거래량 누적변수에 “+”를 음봉 거래량은 거래량 누적변수에 “-”를 해서 실 매수거래량 라인을(RGB컬러로) 그리고자 합니다.
기준선은 "0"이 되겠죠.
2. 상기와 같이 전일 실매수거래량 라인을 당일 같은 시간에 같이 그려나가도록 해주세요.
자꾸 부탁만 드려서 죄송합니다.
꼭 부탁드립니다.
오늘도 좋은하루 되세요.
2021-04-26
1253
글번호 148418