예스스탁
예스스탁 답변
2022-10-27 15:22:28
안녕하세요
예스스탁입니다.
후행스팬이 현재봉 종가를 과거 25개봉 전으로 이동한 선이므로
현재봉 종가가 25개봉전 볼밴값을 돌파하면 현재봉에 수직선이 표시되게 되어 있습니다.
기존과 같은 방식이면 1번식을 이용하시면 되고
만약 수직선을 25개봉 전에 표시하고자 하시면 2번식 이용하시면 됩니다.
1
input : Period(10);
input : midPeriod(26),BBperiod(20),d1(2);
var : bb(0);
var :AA(False),VV(False),bbdn(0),box1(0),box2(0),box3(0);
AA = crossup(C, max((highest(high,9)[25]+lowest(low,9)[25]+highest(high,26)[25]+lowest(low,26)[25])/4 , (highest(high,52)[25]+lowest(low,52)[25])/2));
VV = V>highest(V, Period)[1];
if AA and VV Then
{
box1 = Box_New(sDate,sTime,H,NextBarSdate,NextBarStime,L);
Box_SetColor(box1,Magenta);
Box_SetFill(box1,true);
Box_SetExtFill(box1,true);
}
bb = BollBandUp(BBperiod,d1);
if CrossUp(c,bb[midperiod-1]) Then
{
box2 = Box_New(sDate,sTime,H,NextBarSdate,NextBarStime,L);
Box_SetColor(box2,Cyan);
Box_SetFill(box2,true);
Box_SetExtFill(box2,true);
}
bbdn = BollBandDown(BBperiod,D1);
if CrossUp(C,bbdn[midPeriod-1]) Then
{
box3 = Box_New(sDate,sTime,H,NextBarSdate,NextBarStime,L);
Box_SetColor(box3,Lime);
Box_SetFill(box3,true);
Box_SetExtFill(box3,true);
}
Plot1(bb);
Plot2(bbdn);
Plot3(c);
2
input : Period(10);
input : midPeriod(26),BBperiod(20),d1(2);
var : bb(0);
var :AA(False),VV(False),bbdn(0),box1(0),box2(0),box3(0);
AA = crossup(C, max((highest(high,9)[25]+lowest(low,9)[25]+highest(high,26)[25]+lowest(low,26)[25])/4 , (highest(high,52)[25]+lowest(low,52)[25])/2));
VV = V>highest(V, Period)[1];
if AA and VV Then
{
box1 = Box_New(sDate,sTime,H,NextBarSdate,NextBarStime,L);
Box_SetColor(box1,Magenta);
Box_SetFill(box1,true);
Box_SetExtFill(box1,true);
}
bb = BollBandUp(BBperiod,d1);
if CrossUp(c,bb[midperiod-1]) Then
{
box2 = Box_New(sDate[midperiod-1],sTime[midperiod-1],H,sDate[midperiod-2],Stime[midperiod-2],L);
Box_SetColor(box2,Cyan);
Box_SetFill(box2,true);
Box_SetExtFill(box2,true);
}
bbdn = BollBandDown(BBperiod,D1);
if CrossUp(C,bbdn[midPeriod-1]) Then
{
box3 = Box_New(sDate[midperiod-1],sTime[midperiod-1],H,sDate[midperiod-2],Stime[midperiod-2],L);
Box_SetColor(box3,Lime);
Box_SetFill(box3,true);
Box_SetExtFill(box3,true);
}
Plot1(bb);
Plot2(bbdn);
Plot3(c);
즐거운 하루되세요
> 매치다는 님이 쓴 글입니다.
> 제목 : 감사합니다
> ### 일목후행스펜이 볼벤 하한선을 골드 하는
강조를 추가 부탁드리니다
input : Period(10);
input : midPeriod(26),BBperiod(20),d1(2);
var : bb(0);
var :AA(False),VV(False),box(0);
AA = crossup(C, max((highest(high,9)[25]+lowest(low,9)[25]+highest(high,26)[25]+lowest(low,26)[25])/4 , (highest(high,52)[25]+lowest(low,52)[25])/2));
VV=V>highest(V, Period)[1];
if AA and VV Then
{
box = Box_New(sDate,sTime,H,NextBarSdate,NextBarStime,L);
Box_SetColor(box,Magenta);
Box_SetFill(box,true);
Box_SetExtFill(box,true);
}
bb = BollBandUp(BBperiod,d1);
if CrossUp(c,bb[midperiod-1]) Then
{
box = Box_New(sDate,sTime,H,NextBarSdate,NextBarStime,L);
Box_SetColor(box,Cyan);
Box_SetFill(box,true);
Box_SetExtFill(box,true);
}
감사합니다 언제나 감사합니다