예스스탁
예스스탁 답변
2024-09-20 10:57:40
안녕하세요
예스스탁입니다.
1
input : short(9),Long(26),sig(10);
var : MC(0),MS(0);
MC = Ema((H+L+C)/3,short)-Ema((H+L+C)/3,long);
MS = Ema(MC,sig);
if CrossUp(MC,MS) Then
var1 = MC;
if CountIf(MC > MS,4) == 4 and
MC[3] > MC[2] && MC[2] > MC[1] && MC[1] < MC and
MC[1] > var1 Then
Find(1);
2
input:curtaLength(3);
input:mediaLength(8);
input:longaLength(20);
var : src(0),media(0),curta(0),longa(0),tx(0);
src = close;
media = ma(src, mediaLength);
curta = ma(src, curtaLength);
longa = ma(src, longaLength);
plot1(curta, "Curta", green);
plot2(media, "Media", black);
plot3(longa, "Longa", red);
if CrossUp(curta, longa) Then
{
tx = Text_New(sDate,sTime,L,"●");
Text_SetStyle(tx,2,0);
Text_SetColor(tx,Green);
}
if CrossDown(curta, longa) Then
{
tx = Text_New(sDate,sTime,H,"●");
Text_SetStyle(tx,2,1);
Text_SetColor(tx,Red);
}
즐거운 하루되세요
> 파생돌이 님이 쓴 글입니다.
> 제목 : 부틱드립니다
> 수고하십니다
트레이딩 뷰 수식입니다.
예스로적용가능하도록 부탁 드립니다.
//@version=3
study(title="Kijun-Sen+", shorttitle="Kijun-Sen+", overlay=true)
basePeriods = input(26, minval=1, title="Period")
donchian(len) => avg(lowest(len), highest(len))
baseLine = donchian(basePeriods)
plot(baseLine, color=#991515, title="Kijun-Sen")
//@version=3
// Copyright (c) 2018-present, Alex Orekhov (everget)
// Didi Index may be freely distributed under the MIT license.
study("Didi Index")
curtaLength = input(title="Curta (Short) Length", type=integer, defval=3)
mediaLength = input(title="Media (Medium) Length", type=integer, defval=8)
longaLength = input(title="Longa (Long) Length", type=integer, defval=20)
src = input(title="Source", type=source, defval=close)
applyFilling = input(title="Apply Ribbon Filling ?", type=bool, defval=true)
highlightCrossovers = input(title="Highlight Crossovers ?", type=bool, defval=true)
media = sma(src, mediaLength)
curta = sma(src, curtaLength) / media
longa = sma(src, longaLength) / media
curtaPlot = plot(curta, title="Curta", color=green)
plot(1, title="Media", color=black, transp=0)
longaPlot = plot(longa, title="Longa", color=red)
fillColor = applyFilling ? (curta > longa ? #0ebb23 : red) : color(white, 100)
fill(curtaPlot, longaPlot, color=fillColor, transp=80)
plotshape(crossover(curta, longa) and highlightCrossovers ? avg(longa, longa[1]) : na, title="Crossover", location=location.absolute, style=shape.circle, size=size.tiny, color=green, transp=20)
plotshape(crossunder(curta, longa) and highlightCrossovers ? avg(longa, longa[1]) : na, title="Crossunder", location=location.absolute, style=shape.circle, size=size.tiny, color=red, transp=20)