예스스탁
예스스탁 답변
2024-10-28 11:27:58
안녕하세요
예스스탁입니다.
input : P(2),n(7),틱(2), 굵기(1);
var : TX(0);
var : cnt(0),LL(0),HH(0),HH1(0),HH2(0),LL1(0),LL2(0);
Array : LTL[10](0),HTL[10](0);
var : LTL1(0),LTL2(0),LTL3(0),LTL4(0),LTL5(0),LTL6(0);
var : HTL1(0),HTL2(0),HTL3(0),HTL4(0),HTL5(0),HTL6(0);
if L < Lowest(L,P)[1] and (LL == 0 or (LL > 0 and abs(L-LL) >= PriceScale*틱)) Then
{
LL = L+0.04;
LL1 = LL[1];
LL2 = LL[1];
For cnt = 9 DownTo 1
{
LTL[cnt] = LTL[cnt-1];
}
LTL[0] = TL_new(sDate,sTime,LL,NextBarSdate,NextBarStime,LL);
TL_SetColor(LTL[0],LGreen);
TL_SetSize(LTL[0],굵기);
TL_Delete(LTL[n]);
}
Else
{
TL_SetEnd(LTL[0],sDate,sTime,LL);
}
if H > highest(H,P)[1] and (HH == 0 or (HH > 0 and abs(H-HH) >= PriceScale*틱)) Then
{
HH = H-0.04;
HH1 = HH[1];
HH2 = HH1[1];
For cnt = 9 DownTo 1
{
HTL[cnt] = HTL[cnt-1];
}
HTL[0] = TL_new(sDate,sTime,HH,NextBarSdate,NextBarStime,HH);
TL_SetColor(HTL[0],Red);
TL_SetSize(HTL[0],굵기);
TL_Delete(HTL[n]);
}
Else
{
TL_SetEnd(HTL[0],sDate,sTime,HH);
}
if H >= L+PriceScale*20 and C > O and CrossUp((H+L)/2,max(HH,HH1,HH2)) Then
PlotPaintBar(H,L,"강조",Red);
if H >= L+PriceScale*20 and C < O and CrossDown((H+L)/2, min(LL,LL1,Ll2)) Then
PlotPaintBar(H,L,"강조",Blue);
즐거운 하루되세요
> 요타 님이 쓴 글입니다.
> 제목 : 89647 글 확인좀 요청 드림니다.
> * 좋은 한주 되십시요
* 아래글이 안되는데 수정 좀 요청 드림니다.
* 요청 사항: 고가선 3번째 크로스업 되면 봉 강조
저가선 3번째 크로스 다운 되면 봉강조.
즉 봉 중간값이(h+l)/2 이전에 고가선 3개를 크로스업 되면 봉강조
봉 중간값이(h+l)/2 이전에 저가선 3개를 크로스다운 되면 봉강조
## 아래
input : P(2),n(7),틱(2), 굵기(1);
var : TX(0);
var : cnt(0),LL(0),HH(0);
Array : LTL[10](0),HTL[10](0);
var : LTL1(0),LTL2(0),LTL3(0),LTL4(0),LTL5(0),LTL6(0);
var : HTL1(0),HTL2(0),HTL3(0),HTL4(0),HTL5(0),HTL6(0);
if L < Lowest(L,P)[1] and (LL == 0 or (LL > 0 and abs(L-LL) >= PriceScale*틱)) Then
{
LL = L+0.04;
For cnt = 9 DownTo 1
{
LTL[cnt] = LTL[cnt-1];
}
LTL[0] = TL_new(sDate,sTime,LL,NextBarSdate,NextBarStime,LL);
TL_SetColor(LTL[0],LGreen);
TL_SetSize(LTL[0],굵기);
TL_Delete(LTL[n]);
}
Else
{
TL_SetEnd(LTL[0],sDate,sTime,LL);
}
if H > highest(H,P)[1] and (HH == 0 or (HH > 0 and abs(H-HH) >= PriceScale*틱)) Then
{
HH = H-0.04;
For cnt = 9 DownTo 1
{
HTL[cnt] = HTL[cnt-1];
}
HTL[0] = TL_new(sDate,sTime,HH,NextBarSdate,NextBarStime,HH);
TL_SetColor(HTL[0],Red);
TL_SetSize(HTL[0],굵기);
TL_Delete(HTL[n]);
}
Else
{
TL_SetEnd(HTL[0],sDate,sTime,HH);
}
if H >= L+PriceScale*20 and C > O and CrossUp((H+L)/2,HH) Then
PlotPaintBar(H,L,"강조",Red);
if H >= L+PriceScale*20 and C < O and CrossDown((H+L)/2,LL) Then
PlotPaintBar(H,L,"강조",Blue);
수고하십시요.