커뮤니티

공통부분 바탕색 표시

프로필 이미지
황금소나무
2025-01-09 21:34:24
469
글번호 187068
답변완료
1,호가잔량 상승하락 바탕색 표시 수식 var :value(0), T(0,Data1),box(0),dd(0),tt(0),hh(0),ll(0); Inputs:단기(5),중기(20); var5 = bids-asks;#잔량차(매수호가잔량-매도호가잔량) Var1 = ma(var5,단기)[1]; Var2 = ma(var5,중기)[1]; if CrossUp(var1,Var2) Then { T = 1; dd = sDate; tt = sTime; HH = L; LL = L; box = box_new(sDate,sTime,hh,NextBarSdate,NextBarStime,ll); Box_SetColor(box,Yellow); Box_SetFill(box,true,50,true); Box_SetExtFill(box,true); } if CrossDown(var1,Var2) Then { T = -1; dd = sDate; tt = sTime; HH = L; LL = L; box = box_new(sDate,sTime,hh,NextBarSdate,NextBarStime,ll); Box_SetColor(box,Gray); Box_SetFill(box,true,50,true); Box_SetExtFill(box,true); } 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); } 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); } 2,20 이평 상승하락 바탕색 표시 input : P(20); var : T(0),box(0),value(0),dd(0),tt(0),hh(0),ll(0);; var1 = ma(c,P); if var1 > var1[1] Then T = 1; if var1 < var1[1] Then T = -1; if var1>Var1[1] Then { T = 1; dd = sDate; tt = sTime; HH = L; LL = L; box = box_new(sDate,sTime,hh,NextBarSdate,NextBarStime,ll); Box_SetColor(box,Yellow); Box_SetFill(box,true,50,true); Box_SetExtFill(box,true); } if var1<Var1[1] Then { T = -1; dd = sDate; tt = sTime; HH = L; LL = L; box = box_new(sDate,sTime,hh,NextBarSdate,NextBarStime,ll); Box_SetColor(box,lightBlue); Box_SetFill(box,true,50,true); Box_SetExtFill(box,true); } 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); } 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); } 3,1번과 2번 공통부분바탕색을 표시 부탁드립니다
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-01-10 14:44:09

안녕하세요 예스스탁입니다. Inputs:단기(5),중기(20),P(20); var :value(0), T(0),box(0),dd(0),tt(0),hh(0),ll(0); var5 = bids-asks;#잔량차(매수호가잔량-매도호가잔량) Var1 = ma(var5,단기)[1]; Var2 = ma(var5,중기)[1]; value1 = ma(c,P); if value1 > value1[1] and var1 > var2 Then T = 1; else if value1 < value1[1] and var1 < var2 Then T = -1; Else T = 0; if T == 1 Then { if T != T[1] Then { dd = sDate; tt = sTime; HH = L; LL = L; box = box_new(sDate,sTime,hh,NextBarSdate,NextBarStime,ll); Box_SetColor(box,Yellow); Box_SetFill(box,true,50,true); Box_SetExtFill(box,true); } Else { if H > hh Then hh = h; if l < ll Then ll = l; Box_SetBegin(box,dd,tt,hh); Box_SetEnd(box,NextBarSdate,NextBarStime,ll); } } if T == -1 Then { if T != T[1] Then { dd = sDate; tt = sTime; HH = L; LL = L; box = box_new(sDate,sTime,hh,NextBarSdate,NextBarStime,ll); Box_SetColor(box,Gray); Box_SetFill(box,true,50,true); Box_SetExtFill(box,true); } Else { if H > hh Then hh = h; if l < ll Then ll = l; Box_SetBegin(box,dd,tt,hh); Box_SetEnd(box,NextBarSdate,NextBarStime,ll); } } 즐거운 하루되세요 > 황금소나무 님이 쓴 글입니다. > 제목 : 공통부분 바탕색 표시 > 1,호가잔량 상승하락 바탕색 표시 수식 var :value(0), T(0,Data1),box(0),dd(0),tt(0),hh(0),ll(0); Inputs:단기(5),중기(20); var5 = bids-asks;#잔량차(매수호가잔량-매도호가잔량) Var1 = ma(var5,단기)[1]; Var2 = ma(var5,중기)[1]; if CrossUp(var1,Var2) Then { T = 1; dd = sDate; tt = sTime; HH = L; LL = L; box = box_new(sDate,sTime,hh,NextBarSdate,NextBarStime,ll); Box_SetColor(box,Yellow); Box_SetFill(box,true,50,true); Box_SetExtFill(box,true); } if CrossDown(var1,Var2) Then { T = -1; dd = sDate; tt = sTime; HH = L; LL = L; box = box_new(sDate,sTime,hh,NextBarSdate,NextBarStime,ll); Box_SetColor(box,Gray); Box_SetFill(box,true,50,true); Box_SetExtFill(box,true); } 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); } 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); } 2,20 이평 상승하락 바탕색 표시 input : P(20); var : T(0),box(0),value(0),dd(0),tt(0),hh(0),ll(0);; var1 = ma(c,P); if var1 > var1[1] Then T = 1; if var1 < var1[1] Then T = -1; if var1>Var1[1] Then { T = 1; dd = sDate; tt = sTime; HH = L; LL = L; box = box_new(sDate,sTime,hh,NextBarSdate,NextBarStime,ll); Box_SetColor(box,Yellow); Box_SetFill(box,true,50,true); Box_SetExtFill(box,true); } if var1<Var1[1] Then { T = -1; dd = sDate; tt = sTime; HH = L; LL = L; box = box_new(sDate,sTime,hh,NextBarSdate,NextBarStime,ll); Box_SetColor(box,lightBlue); Box_SetFill(box,true,50,true); Box_SetExtFill(box,true); } 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); } 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); } 3,1번과 2번 공통부분바탕색을 표시 부탁드립니다