커뮤니티
하이킨아시스무스 실시간
현재 쌍바닥 조건을 참고로, 쌍바닥 바로 직전을 표시하고 싶습니다.
반등하다 하락전환한 후 직전 저점의 -0.5 ~ +0.5 사이에 들어오면 봉 하단에 네모 표시.
이후 -0.5 아래로 추가 하락하거나, 위로 양전환되면 네모 삭제.
쌍봉 직전은 반대.
LL1 > 0 은 무슨 의미이며,꼭 필요한가요? 감사합니다.
input : MaPeriod(2),MaPeriod2(1);
var : maOpen(0),maClose(0),maLow(0),maHigh(0);
var : haOpen(0),haClose(0),haLow(0),haHigh(0);
var : ExtMapBuffer1(0),ExtMapBuffer2(0),ExtMapBuffer3(0),ExtMapBuffer4(0);
var : ExtMapBuffer5(0),ExtMapBuffer6(0),ExtMapBuffer7(0),ExtMapBuffer8(0);
var : r(0),g(0),b(0), TL(0),t(0),tx(0);
var : HH(0),LL(0),HH1(0),LL1(0),HH2(0),LL2(0);
if Index == 0 Then
{
maOpen=Open;
maClose=Close;
maLow=Low;
maHigh=High;
}
Else
{
maOpen=(maOpen[1]*(MAperiod-1)+Open)/MAPeriod;
maClose=(maClose[1]*(MAperiod-1)+Close)/MAPeriod;
maLow=(maLow[1]*(MAperiod-1)+Low)/MAPeriod;
maHigh=(maHigh[1]*(MAperiod-1)+High)/MAPeriod;
haOpen=(ExtMapBuffer5[1]+ExtMapBuffer6[1])/2;
haClose=(maOpen+maHigh+maLow+maClose)/4;
haHigh=Max(maHigh, Max(haOpen, haClose));
haLow=Min(maLow, Min(haOpen, haClose));
if (haOpen<haClose) then
{
r=255;
g=10;
b=0;
ExtMapBuffer7=haLow;
ExtMapBuffer8=haHigh;
t = 1;
}
else
{
r=0;
g=191;
b=255;
ExtMapBuffer7=haHigh;
ExtMapBuffer8=haLow;
t = -1;
}
ExtMapBuffer5=haOpen;
ExtMapBuffer6=haClose;
ExtMapBuffer1=WMA(ExtMapBuffer7,MAperiod2);
ExtMapBuffer2=WMA(ExtMapBuffer8,MAperiod2);
ExtMapBuffer3=WMA(ExtMapBuffer5,MAperiod2);
ExtMapBuffer4=WMA(ExtMapBuffer6,MAperiod2);
}
PlotPaintBar(ExtMapBuffer2,ExtMapBuffer1,ExtMapBuffer3,ExtMapBuffer4,"강조",Rgb(r,g,b));
if T == 1 Then
{
if T != T[1] Then
{
HH = haHigh;
HH1 = HH[1];
HH2 = HH1[1];
if LL2 > 0 and max(LL,LL1,LL2) <= min(LL, LL1,LL2)+0.8
and haclose < highest(hahigh,200)-9 and haclose < lowest(halow,100)+2 Then
{
tx = Text_New(sDate,sTime,L-1,"■");
Text_SetStyle(tx,2,2);
Text_SetColor(tx,Black);
Text_SetSize(tx,25);
}
if LL1 > 0 and max(LL,LL1) <= min(LL, LL1)+0.5
and haclose < highest(hahigh,200)-9 and haclose < lowest(halow,100)+2 Then
{
tx = Text_New(sDate,sTime,L-1,"●");
Text_SetStyle(tx,2,2);
Text_SetColor(tx,Red);
Text_SetSize(tx,15);
}
}
Else
{
if haHigh > HH Then
HH = haHigh;
}
}
if T == -1 Then
{
if T != T[1] Then
{
LL = haLow;
LL1 = LL[1];
LL2 = LL1[1];
if HH2 > 0 and max(HH,HH1,HH2) <= min(HH, HH1,HH2)+0.8
and haclose > lowest(halow,200)+9 and haclose > highest(hahigh,100)-2 Then
{
tx = Text_New(sDate,sTime,H+1,"■");
Text_SetStyle(tx,2,2);
Text_SetColor(tx,Red);
Text_SetSize(tx,25);
}
if HH1 > 0 and max(HH,HH1) <= min(HH, HH1)+0.5
and haclose > lowest(halow,200)+9 and haclose > highest(hahigh,100)-2 Then
{
tx = Text_New(sDate,sTime,H+1,"●");
Text_SetStyle(tx,2,2);
Text_SetColor(tx,Blue);
Text_SetSize(tx,15);
}
}
Else
{
if haLow < LL Then
LL = haLow;
}
}
답변 1
예스스탁 예스스탁 답변
2026-09-08 13:15:03