답변완료
부탁드립니다
수고하십니다
아래수식에서 신호색이 다똑같이 나와서 전체적으로수식수정부탁드립니다
input : 기간(14);
var : S(0),R(0),u40(0),u30(0),순번조건(False),u50(0),u140(0);
var : cs(Nan),조건(False),조건1(False),조건2(False),tx1(0),tx2(0);
var : tx11(0),tx22(0);
S=Accum(1);
R=Rsi(기간);//14
if CrossDown(R,40) Then
u40 = S;
if CrossDown(R,30) Then
u30 = S;
순번조건=U40<u30 ;
if 순번조건 && 순번조건[1] == False Then
cs = 0;
if CrossUp(R,30) Then
cs = cs+1;
조건= cs==1;
조건1= cs==2;
조건2= cs==3;
if 조건 and 조건[1] ==False Then
{
tx1 = Text_new(sdate,sTime,L-PriceScale*3,"▲");
Text_SetStyle(tx1,2,0);
Text_SetColor(tx1,darkRed);
Text_SetBold(Tx1,4);
Text_SetSize(tx1,15);
tx2 = Text_new_Self(sdate,sTime,R,"▲");
Text_SetStyle(tx2,2,0);
Text_SetColor(tx2,darkRed);
}
if 조건1 and 조건1[1] ==False Then
{
tx1 = Text_new(sdate,sTime,L-PriceScale*3,"▲");
Text_SetStyle(tx1,2,0);
Text_SetColor(tx1,darkRed);
Text_SetBold(Tx1,4);
Text_SetSize(tx1,15);
tx2 = Text_new_Self(sdate,sTime,R,"▲");
Text_SetStyle(tx2,2,0);
Text_SetColor(tx2,darkRed);
}
if 조건2 and 조건2[1] ==False Then
{
tx1 = Text_new(sdate,sTime,L-PriceScale*3,"▲");
Text_SetStyle(tx1,2,0);
Text_SetColor(tx1,darkRed);
Text_SetBold(Tx1,4);
Text_SetSize(tx1,15);
tx2 = Text_new_Self(sdate,sTime,R,"▲");
Text_SetStyle(tx2,2,0);
Text_SetColor(tx2,darkRed);
}
//========================================================
if CrossDown(R,50) Then
u50 = S;
if CrossDown(R,40) Then
u140 = S;
순번조건=U50<u140 ;
if 순번조건 && 순번조건[1] == False Then
cs = 0;
if CrossUp(R,40) Then
cs = cs+1;
조건= cs==1;
조건1= cs==2;
조건2= cs==3;
if 조건 and 조건[1] ==False Then
{
tx11 = Text_new(sdate,sTime,L-PriceScale*3,"▲");
Text_SetStyle(tx11,2,0);
Text_SetColor(tx11,Red);
Text_SetBold(Tx11,4);
Text_SetSize(tx11,15);
tx22 = Text_new_Self(sdate,sTime,R,"▲");
Text_SetStyle(tx22,2,0);
Text_SetColor(tx22,Red);
}
if 조건1 and 조건1[1] ==False Then
{
tx11 = Text_new(sdate,sTime,L-PriceScale*3,"▲");
Text_SetStyle(tx11,2,0);
Text_SetColor(tx11,Red);
Text_SetBold(Tx11,4);
Text_SetSize(tx11,15);
tx22 = Text_new_Self(sdate,sTime,R,"▲");
Text_SetStyle(tx22,2,0);
Text_SetColor(tx22,Red);
}
if 조건2 and 조건2[1] ==False Then
{
tx11 = Text_new(sdate,sTime,L-PriceScale*3,"▲");
Text_SetStyle(tx11,2,0);
Text_SetColor(tx11,Red);
Text_SetBold(Tx11,4);
Text_SetSize(tx11,15);
tx22= Text_new_Self(sdate,sTime,R,"▲");
Text_SetStyle(tx22,2,0);
Text_SetColor(tx22,Red);
}