커뮤니티

체크 부탁드립니다.

프로필 이미지
포보스
2026-01-26 20:57:39
81
글번호 230098
답변완료

안녕하세요?

아래 글은 230002 게시글입니다.

요청드린 수식은 plot7에 구현된 50%의 기준 즉 (ll+(hh-ll)*0.500,"50.0%") 를 기준으로 색상변경되게 수정을 원하는데 그렇게 구현이 되지 않습니다. 다시한번 더 체크해주시면 감사하겠습니다.

그리고

Plot23 과 Plot24에

(ll+(hh-ll)*0.500,"25.0%")

(ll+(hh-ll)*0.500,"75.0%")

기준으로 각각 색상변경되게 추가해 주시면 감사하겠습니다.

늘 행복하세요.

=====================


안녕하세요?

아래 수식중  Plot1, Plot17 "당일매수거래량을 0을 기준으로 RGB를 표기하도록 되어있는데요

이것을 피보나티비울 50% 기준으로 추가하거나 수정해 주세요

늘 도와주심에 감사드립니다.

오늘 남은시간도 즐거운시간되세요

===========================


input : Change(500), 캔들수(-12);

var : HH(0),LL(0);

var : HD(0),HT(0),HV(0);

var : LD(0),LT(0),LV(0);

var : UpTrend(false),DownTrend(False),Trend(0);

var : TX1(0),TX2(0),TX3(0),TX4(0);


if Bdate != Bdate[1] Then

{

      var1 = 0;

      Var2 = Upvol-DownVol;

}

var1 = var1 + (Upvol-DownVol);



if Bdate != Bdate[1] Then

{

      HD = sDate;

      HT = sTime;

      HV = var1;


      LD = sDate;

      LT = sTime;

      LV = var1;


      trend = 0;


      if CurrentDate == sDate Then

      {

            tx1 = Text_New_Self(HD,HT,HV,"----------------");

            Text_SetStyle(tx1,2,0);

            Text_SetColor(tx1,Magenta);


            tx3 = Text_New(HD,HT,H,"고----------------");

            Text_SetStyle(tx3,2,0);

            Text_SetColor(tx3,Magenta);


            tx2 = Text_New_Self(LD,LT,LV,"----------------");

            Text_SetStyle(tx2,2,0);

            Text_SetColor(tx2,blue);


            tx4 = Text_New(LD,LT,L,"저----------------");

            Text_SetStyle(tx4,2,0);

            Text_SetColor(tx4,blue);

      }


      hh = var1;

      ll = var1;

}

Else

{

      if var1 > hh Then

            hh = var1;


      if var1 < ll Then

            ll = var1;


      UpTrend   = var1 >= LV[0]+Change;

      DownTrend = var1 <= HV[0]-Change;


      if trend <= 0 and UpTrend == true Then

      {

            trend = 1;

            HD = sDate;

            HT = sTime;

            HV = var1;


            if CurrentDate == sDate Then

            {

                  tx1 = Text_New_Self(HD,HT,HV,"----------------");

                  Text_SetStyle(tx1,2,0);

                  Text_SetColor(tx1,Magenta);

      

                  tx3 = Text_New(HD,HT,H,"----------------");

                  Text_SetStyle(tx3,2,0);

                  Text_SetColor(tx3,Magenta);

            }

      }

      Else if trend >= 0 and DownTrend Then

      {

            trend = -1;

            

            LD = sDate;

            LT = sTime;

            LV = var1;


            if CurrentDate == sDate Then

            {

                  tx2 = Text_New_Self(LD,LT,LV,"----------------");

                  Text_SetStyle(tx2,2,0);

                  Text_SetColor(tx2,blue);


                  tx4 = Text_New(LD,LT,L,"----------------");

                  Text_SetStyle(tx4,2,0);

                  Text_SetColor(tx4,blue);

            }

      }

      Else

      {

            if trend == 1 Then

            {

                  if var1 > HV Then

                  {

                        HD = sDate;

                        HT = sTime;

                        HV = var1;


                        if CurrentDate == sDate Then

                        {

                              Text_SetLocation(TX1,HD,HT,HV);

                              Text_SetLocation(TX3,HD,HT,H);

                        }

                  }

            }

            if trend == -1 Then

            {

                  if var1 < LV Then

                  {

                        LD = sDate;

                        LT = sTime;

                        LV = var1;


                        if CurrentDate == sDate Then

                        {

                              Text_SetLocation(TX2,LD,LT,LV);

                              Text_SetLocation(TX4,LD,LT,L);

                        }

                  }

            }

      if trend == 0 Then

      {

            if var1 > HV Then

            {

                  HD = sDate;

                  HT = sTime;

                  HV = var1;


                 if CurrentDate == sDate Then

                  {

                        Text_SetLocation(TX1,HD,HT,HV);

                        Text_SetLocation(TX3,HD,HT,H);

                  }

            }


            if var1 < LV Then

            {

                  LD = sDate;

                  LT = sTime;

                  LV = var1;


                  if CurrentDate == sDate Then

                  {

                        Text_SetLocation(TX2,LD,LT,LV);

                        Text_SetLocation(TX4,LD,LT,L);

                  }

            }

      }

      }

}



   if CurrentDate == sDate Then


{

      Plot1(var1,"당일실매수거래량",iff(var1 > 0,RGB(200,0,0),RGB(0,0,0)));

FixPlotShift(1,캔들수);

      Plot17(var1,"당일실매수거래량2",iff(var1 > 0,RGB(255,0,0),RGB(0,0,255)));



      Plot3(hh,"최고");

      plot4(ll,"최저");

      plot5(ll+(hh-ll)*0.25,"25.0%");

      plot6(ll+(hh-ll)*0.382,"38.2%");

      plot7(ll+(hh-ll)*0.500,"50.0%");

      plot8(ll+(hh-ll)*0.505,"50.05%");

      plot9(ll+(hh-ll)*0.515,"51.5%");

  plot10(ll+(hh-ll)*0.495,"49.5%");

  plot13(ll+(hh-ll)*0.485,"48.5%");

      plot14(ll+(hh-ll)*0.618,"61.8%");

      plot15(ll+(hh-ll)*0.75,"75.0%");

      plot18(ll+(hh-ll)*0.125,"12.5%");

  plot19(ll+(hh-ll)*0.875,"87.5%");


  plot20(ll+(hh-ll)*0.127,"12.7%");

      plot21(ll+(hh-ll)*0.877,"87.7%");

      plot22(ll+(hh-ll)*0.755,"75.5%");

      plot23(ll+(hh-ll)*0.255,"25.5%");



      plot40((Var2/2),"첫봉종가50%");

}





   if CurrentDate == sDate Then


{


      PlotBaseLine2(1000);

  PlotBaseLine3(500);

      PlotBaseLine4(100);


  }

      PlotBaseLine1(0);



================================================

답변 1

예스스탁 예스스탁 답변

2026-01-23 13:26:06

안녕하세요

예스스탁입니다.

당일 최고-최저의 50%를 기준으로 색상변경되게 수정해 드립니다.


input : Change(500), 캔들수(-12);

var : HH(0),LL(0);

var : HD(0),HT(0),HV(0);

var : LD(0),LT(0),LV(0);

var : UpTrend(false),DownTrend(False),Trend(0);

var : TX1(0),TX2(0),TX3(0),TX4(0);

if Bdate != Bdate[1] Then

{

var1 = 0;

Var2 = Upvol-DownVol;

}

var1 = var1 + (Upvol-DownVol);


if Bdate != Bdate[1] Then

{

      HD = sDate;

      HT = sTime;

      HV = var1;

      LD = sDate;

      LT = sTime;

      LV = var1;

      trend = 0;

      if CurrentDate == sDate Then

      {

            tx1 = Text_New_Self(HD,HT,HV,"----------------");

            Text_SetStyle(tx1,2,0);

            Text_SetColor(tx1,Magenta);

            tx3 = Text_New(HD,HT,H,"고----------------");

            Text_SetStyle(tx3,2,0);

            Text_SetColor(tx3,Magenta);

            tx2 = Text_New_Self(LD,LT,LV,"----------------");

            Text_SetStyle(tx2,2,0);

            Text_SetColor(tx2,blue);

            tx4 = Text_New(LD,LT,L,"저----------------");

            Text_SetStyle(tx4,2,0);

            Text_SetColor(tx4,blue);

      }

      hh = var1;

      ll = var1;

}

Else

{

      if var1 > hh Then

            hh = var1;

      if var1 < ll Then

            ll = var1;

      UpTrend   = var1 >= LV[0]+Change;

      DownTrend = var1 <= HV[0]-Change;

      if trend <= 0 and UpTrend == true Then

      {

            trend = 1;

            HD = sDate;

            HT = sTime;

            HV = var1;

            if CurrentDate == sDate Then

            {

                  tx1 = Text_New_Self(HD,HT,HV,"----------------");

                  Text_SetStyle(tx1,2,0);

                  Text_SetColor(tx1,Magenta);

      

                  tx3 = Text_New(HD,HT,H,"----------------");

                  Text_SetStyle(tx3,2,0);

                  Text_SetColor(tx3,Magenta);

            }

      }

      Else if trend >= 0 and DownTrend Then

      {

            trend = -1;

            

            LD = sDate;

            LT = sTime;

            LV = var1;

            if CurrentDate == sDate Then

            {

                  tx2 = Text_New_Self(LD,LT,LV,"----------------");

                  Text_SetStyle(tx2,2,0);

                  Text_SetColor(tx2,blue);

                  tx4 = Text_New(LD,LT,L,"----------------");

                  Text_SetStyle(tx4,2,0);

                  Text_SetColor(tx4,blue);

            }

      }

      Else

      {

            if trend == 1 Then

            {

                  if var1 > HV Then

                  {

                        HD = sDate;

                        HT = sTime;

                        HV = var1;

                        if CurrentDate == sDate Then

                        {

                              Text_SetLocation(TX1,HD,HT,HV);

                              Text_SetLocation(TX3,HD,HT,H);

                        }

                  }

            }

            if trend == -1 Then

            {

                  if var1 < LV Then

                  {

                        LD = sDate;

                        LT = sTime;

                        LV = var1;

                        if CurrentDate == sDate Then

                        {

                              Text_SetLocation(TX2,LD,LT,LV);

                              Text_SetLocation(TX4,LD,LT,L);

                        }

                  }

            }

      if trend == 0 Then

      {

            if var1 > HV Then

            {

                  HD = sDate;

                  HT = sTime;

                  HV = var1;

                 if CurrentDate == sDate Then

                  {

                        Text_SetLocation(TX1,HD,HT,HV);

                        Text_SetLocation(TX3,HD,HT,H);

                  }

            }

            if var1 < LV Then

            {

                  LD = sDate;

                  LT = sTime;

                  LV = var1;

                  if CurrentDate == sDate Then

                  {

                        Text_SetLocation(TX2,LD,LT,LV);

                        Text_SetLocation(TX4,LD,LT,L);

                  }

            }

      }

      }

}


if CurrentDate == sDate Then

{

Plot1(var1,"당일실매수거래량",iff(var1 > (Hv+Lv)/2,RGB(200,0,0),RGB(0,0,0)));

FixPlotShift(1,캔들수);

Plot17(var1,"당일실매수거래량2",iff(var1 > (Hv+Lv)/2,RGB(255,0,0),RGB(0,0,255)));


Plot3(hh,"최고");

plot4(ll,"최저");

plot5(ll+(hh-ll)*0.25,"25.0%");

plot6(ll+(hh-ll)*0.382,"38.2%");

plot7(ll+(hh-ll)*0.500,"50.0%");

plot8(ll+(hh-ll)*0.505,"50.05%");

plot9(ll+(hh-ll)*0.515,"51.5%");

plot10(ll+(hh-ll)*0.495,"49.5%");

plot13(ll+(hh-ll)*0.485,"48.5%");

plot14(ll+(hh-ll)*0.618,"61.8%");

plot15(ll+(hh-ll)*0.75,"75.0%");

plot18(ll+(hh-ll)*0.125,"12.5%");

plot19(ll+(hh-ll)*0.875,"87.5%");


plot20(ll+(hh-ll)*0.127,"12.7%");

plot21(ll+(hh-ll)*0.877,"87.7%");

plot22(ll+(hh-ll)*0.755,"75.5%");

plot23(ll+(hh-ll)*0.255,"25.5%");


    plot40((Var2/2),"첫봉종가50%");

}



   if CurrentDate == sDate Then

{

      PlotBaseLine2(1000);

  PlotBaseLine3(500);

      PlotBaseLine4(100);

  }

      PlotBaseLine1(0);


즐거운 하루되세요

지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2026-01-27 16:55:44

안녕하세요 예스스탁입니다. hv와 lv의 중간으로 지정했었는데 ll+(hh-ll)*0.500 기준으로 변경해 드립니다/ input : Change(500), 캔들수(-12); var : HH(0),LL(0); var : HD(0),HT(0),HV(0); var : LD(0),LT(0),LV(0); var : UpTrend(false),DownTrend(False),Trend(0); var : TX1(0),TX2(0),TX3(0),TX4(0); if Bdate != Bdate[1] Then { var1 = 0; Var2 = Upvol-DownVol; } var1 = var1 + (Upvol-DownVol); if Bdate != Bdate[1] Then { HD = sDate; HT = sTime; HV = var1; LD = sDate; LT = sTime; LV = var1; trend = 0; if CurrentDate == sDate Then { tx1 = Text_New_Self(HD,HT,HV,"----------------"); Text_SetStyle(tx1,2,0); Text_SetColor(tx1,Magenta); tx3 = Text_New(HD,HT,H,"고----------------"); Text_SetStyle(tx3,2,0); Text_SetColor(tx3,Magenta); tx2 = Text_New_Self(LD,LT,LV,"----------------"); Text_SetStyle(tx2,2,0); Text_SetColor(tx2,blue); tx4 = Text_New(LD,LT,L,"저----------------"); Text_SetStyle(tx4,2,0); Text_SetColor(tx4,blue); } hh = var1; ll = var1; } Else { if var1 > hh Then hh = var1; if var1 < ll Then ll = var1; UpTrend = var1 >= LV[0]+Change; DownTrend = var1 <= HV[0]-Change; if trend <= 0 and UpTrend == true Then { trend = 1; HD = sDate; HT = sTime; HV = var1; if CurrentDate == sDate Then { tx1 = Text_New_Self(HD,HT,HV,"----------------"); Text_SetStyle(tx1,2,0); Text_SetColor(tx1,Magenta); tx3 = Text_New(HD,HT,H,"----------------"); Text_SetStyle(tx3,2,0); Text_SetColor(tx3,Magenta); } } Else if trend >= 0 and DownTrend Then { trend = -1; LD = sDate; LT = sTime; LV = var1; if CurrentDate == sDate Then { tx2 = Text_New_Self(LD,LT,LV,"----------------"); Text_SetStyle(tx2,2,0); Text_SetColor(tx2,blue); tx4 = Text_New(LD,LT,L,"----------------"); Text_SetStyle(tx4,2,0); Text_SetColor(tx4,blue); } } Else { if trend == 1 Then { if var1 > HV Then { HD = sDate; HT = sTime; HV = var1; if CurrentDate == sDate Then { Text_SetLocation(TX1,HD,HT,HV); Text_SetLocation(TX3,HD,HT,H); } } } if trend == -1 Then { if var1 < LV Then { LD = sDate; LT = sTime; LV = var1; if CurrentDate == sDate Then { Text_SetLocation(TX2,LD,LT,LV); Text_SetLocation(TX4,LD,LT,L); } } } if trend == 0 Then { if var1 > HV Then { HD = sDate; HT = sTime; HV = var1; if CurrentDate == sDate Then { Text_SetLocation(TX1,HD,HT,HV); Text_SetLocation(TX3,HD,HT,H); } } if var1 < LV Then { LD = sDate; LT = sTime; LV = var1; if CurrentDate == sDate Then { Text_SetLocation(TX2,LD,LT,LV); Text_SetLocation(TX4,LD,LT,L); } } } } } if CurrentDate == sDate Then { Plot1(var1,"당일실매수거래량",iff(var1 > ll+(hh-ll)*0.500,RGB(200,0,0),RGB(0,0,0))); FixPlotShift(1,캔들수); Plot17(var1,"당일실매수거래량2",iff(var1 > ll+(hh-ll)*0.500,RGB(255,0,0),RGB(0,0,255))); Plot3(hh,"최고"); plot4(ll,"최저"); plot5(ll+(hh-ll)*0.25,"25.0%"); plot6(ll+(hh-ll)*0.382,"38.2%"); plot7(ll+(hh-ll)*0.500,"50.0%"); plot8(ll+(hh-ll)*0.505,"50.05%"); plot9(ll+(hh-ll)*0.515,"51.5%"); plot10(ll+(hh-ll)*0.495,"49.5%"); plot13(ll+(hh-ll)*0.485,"48.5%"); plot14(ll+(hh-ll)*0.618,"61.8%"); plot15(ll+(hh-ll)*0.75,"75.0%"); plot18(ll+(hh-ll)*0.125,"12.5%"); plot19(ll+(hh-ll)*0.875,"87.5%"); plot20(ll+(hh-ll)*0.127,"12.7%"); plot21(ll+(hh-ll)*0.877,"87.7%"); plot22(ll+(hh-ll)*0.755,"75.5%"); plot23(ll+(hh-ll)*0.255,"25.5%"); plot40((Var2/2),"첫봉종가50%"); } if CurrentDate == sDate Then { PlotBaseLine2(1000); PlotBaseLine3(500); PlotBaseLine4(100); } PlotBaseLine1(0); 즐거운 하루되세요