예스스탁
예스스탁 답변
2024-12-24 13:56:00
안녕하세요
예스스탁입니다.
Input : 기준(-10),p(5);
var : Vpower(0),Upper(0),Lower(0),mav(0),T(0);
var : hh(0),ll(0),rr(0),dd(0),tt(0),box(0),tx(0);
Vpower = upVol/(upVol+downVol)*100-50;
If Vpower > 0 Then
Upper = Vpower;
Else
Upper = 0;
If Vpower <= 0 Then
lower = Vpower;
Else
lower = 0;
mav = ma(Vpower,p);
if CrossUp(기준,mav) Then
{
T = 1;
hh = h;
ll = l;
dd = sDate;
tt = sTime;
box = Box_New(sDate,sTime,hh,NextBarSdate,NextBarStime,ll);
Box_SetColor(box,Blue);
Box_SetFill(box,true,100,true);
rr = hh-ll;
tx = Text_New(sDate,sTime,hh,NumToStr(rr,2));
Text_SetStyle(tx,2,1);
}
if CrossDown(기준,mav) Then
T = -1;
if T == 1 Then
{
if h > hh Then
hh = h;
if l < ll Then
ll = l;
Box_SetBegin(box,dd,tt,hh);
Box_SetEnd(box,NextBarSdate,NextBarStime,ll);
rr = hh-ll;
Text_SetString(tx,NumToStr(rr,2));
Text_SetLocation(tx,sDate,sTime,hh);
}
즐거운 크리스마스 보내세요
> 팔보채 님이 쓴 글입니다.
> 제목 : 박스 높이(위-아래)
> 아래 박스 수식의 위 아래의 높이를 구하는 수식 부탁합니다(위-아래)
=================================================================
Input : 기준(-10),p(5);
var : Vpower(0),Upper(0),Lower(0),mav(0),T(0);
var : hh(0),ll(0),dd(0),tt(0),box(0);
Vpower = upVol/(upVol+downVol)*100-50;
If Vpower > 0 Then
Upper = Vpower;
Else
Upper = 0;
If Vpower <= 0 Then
lower = Vpower;
Else
lower = 0;
mav = ma(Vpower,p);
if CrossUp(기준,mav) Then
{
T = 1;
hh = h;
ll = l;
dd = sDate;
tt = sTime;
box = Box_New(sDate,sTime,hh,NextBarSdate,NextBarStime,ll);
Box_SetColor(box,Blue);
Box_SetFill(box,true,100,true);
}
if CrossDown(기준,mav) Then
T = -1;
if T == 1 Then
{
if h > hh Then
hh = h;
if l < ll Then
ll = l;
Box_SetBegin(box,dd,tt,hh);
Box_SetEnd(box,NextBarSdate,NextBarStime,ll);
}