커뮤니티
재문의
2016-02-19 11:41:15
132
글번호 95554
var : D1(0),T1(0);
var : TL1(0),TL2(0),TL3(0);
var : Tx1(0),Tx2(0),Tx3(0);
var : TL4(0),TL5(0),TL6(0);
var : Tx4(0),Tx5(0),Tx6(0);
if date != date[1] Then{
D1 = sdate;
T1 = stime;
TL_Delete(TL1);
TL_Delete(Tx1);
TL_Delete(TL2);
TL_Delete(Tx2);
TL_Delete(TL3);
TL_Delete(Tx3);
TL_Delete(TL4);
TL_Delete(Tx4);
TL_Delete(TL5);
TL_Delete(Tx5);
TL_Delete(TL6);
TL_Delete(Tx6);
}
if L == daylow Then{
Condition1 = false;
Condition2 = false;
Condition3 = false;
}
if Condition1 == false and H >= daylow+PriceScale*20 Then{
Condition1 = true;
TL_Delete(TL1);
text_Delete(Tx1);
TL1 = TL_New(D1,T1,daylow+PriceScale*20,sdate,stime,daylow+PriceScale*20);
tx1 = Text_New(Sdate,stime,daylow+PriceScale*20,"+20");
TL_SetExtRight(TL1,true);
TL_SetColor(TL1,RED);
Text_SetColor(Tx1,red);
}
if Condition2 == false and H >= daylow+PriceScale*30 Then{
Condition2 = true;
TL_Delete(TL2);
text_Delete(Tx2);
TL2 = TL_New(D1,T1,daylow+PriceScale*30,sdate,stime,daylow+PriceScale*30);
tx2 = Text_New(Sdate,stime,daylow+PriceScale*30,"+30");
TL_SetExtRight(TL2,true);
TL_SetColor(TL2,RED);
Text_SetColor(Tx2,red);
}
if Condition3 == false and H >= daylow+PriceScale*40 Then{
Condition3 = true;
TL_Delete(TL3);
text_Delete(Tx3);
TL3 = TL_New(D1,T1,daylow+PriceScale*40,sdate,stime,daylow+PriceScale*40);
tx3 = Text_New(Sdate,stime,daylow+PriceScale*40,"+40");
TL_SetExtRight(TL3,true);
TL_SetColor(TL3,RED);
Text_SetColor(Tx3,red);
}
if H == DayHigh Then{
Condition4 = false;
Condition5 = false;
Condition6 = false;
}
if Condition4 == false and L <= DayHigh-PriceScale*20 Then{
Condition4 = true;
TL_Delete(TL4);
text_Delete(Tx4);
TL4 = TL_New(D1,T1,dayhigh-PriceScale*20,sdate,stime,dayhigh-PriceScale*20);
tx4 = Text_New(Sdate,stime,DayHigh-PriceScale*20,"-20");
TL_SetExtRight(TL4,true);
TL_SetColor(TL4,BLUE);
Text_SetColor(Tx4,BLUE);
}
if Condition5 == false and L <= DayHigh-PriceScale*30 Then{
Condition5 = true;
TL_Delete(TL5);
text_Delete(Tx5);
TL5 = TL_New(D1,T1,dayhigh-PriceScale*30,sdate,stime,dayhigh-PriceScale*30);
tx5 = Text_New(Sdate,stime,DayHigh-PriceScale*30,"-30");
TL_SetExtRight(TL5,true);
TL_SetColor(TL5,BLUE);
Text_SetColor(Tx5,BLUE);
}
if Condition6 == false and L <= DayHigh-PriceScale*40 Then{
Condition6 = true;
TL_Delete(TL6);
text_Delete(Tx6);
TL6 = TL_New(D1,T1,dayhigh-PriceScale*40,sdate,stime,dayhigh-PriceScale*40);
tx6 = Text_New(Sdate,stime,DayHigh-PriceScale*40,"-40");
TL_SetExtRight(TL6,true);
TL_SetColor(TL6,BLUE);
Text_SetColor(Tx6,BLUE);
}
즐거운 하루되세요
> 레전드 님이 쓴 글입니다.
> 제목 : 문의
> 저가에서 20틱 30틱 40틱 올라올때 선이나타나고 그선 위나 아래또는 옆에 20 30 40이라는 글자가 나오고
고가에서 20틱 30틱 40틱 내려갈때 선이나타나고 그선 위나 아래또는 옆에 -20 -30 -40이라는 글자가 나오게 부탁드릴게요
그대로 하니까, 선이 나올때도 있고고 안나올때도 있는데 왜그런가요.
만약에 선이 나오는게 어렵다면 글만 나오게 하도록 부탁드릴게요
그리고 크루드 오일의 경우는 밤12시부터 다음날 밤12시 까지 적용되어서 나옵니다,
아침 8시부터 다음날 아침7시까지가 적용되어야 되는데, 이럴때는 어떻게 보정하나요?
답변 1
예스스탁 예스스탁 답변
2016-02-19 13:27:58
안녕하세요
예스스탁입니다.
우선 해외선물기준으로 변경한 식입니다.
당일저가/고가에서 지정한 포인트까지 상승/하락하면 그때부터
해당 선들이 출력되게 됩니다.
당일 지정한 값까지 상승하락이 없으면 선이 나타나지 않습니다.
var : D1(0),T1(0);
var : TL1(0),TL2(0),TL3(0);
var : Tx1(0),Tx2(0),Tx3(0);
var : TL4(0),TL5(0),TL6(0);
var : Tx4(0),Tx5(0),Tx6(0);
if bdate != bdate[1] Then{
D1 = sdate;
T1 = stime;
TL_Delete(TL1);
TL_Delete(Tx1);
TL_Delete(TL2);
TL_Delete(Tx2);
TL_Delete(TL3);
TL_Delete(Tx3);
TL_Delete(TL4);
TL_Delete(Tx4);
TL_Delete(TL5);
TL_Delete(Tx5);
TL_Delete(TL6);
TL_Delete(Tx6);
}
if L == daylow Then{
Condition1 = false;
Condition2 = false;
Condition3 = false;
}
if Condition1 == false and H >= daylow+PriceScale*20 Then{
Condition1 = true;
TL_Delete(TL1);
text_Delete(Tx1);
TL1 = TL_New(D1,T1,daylow+PriceScale*20,sdate,stime,daylow+PriceScale*20);
tx1 = Text_New(Sdate,stime,daylow+PriceScale*20,"+20");
TL_SetExtRight(TL1,true);
TL_SetColor(TL1,RED);
Text_SetColor(Tx1,red);
}
if Condition2 == false and H >= daylow+PriceScale*30 Then{
Condition2 = true;
TL_Delete(TL2);
text_Delete(Tx2);
TL2 = TL_New(D1,T1,daylow+PriceScale*30,sdate,stime,daylow+PriceScale*30);
tx2 = Text_New(Sdate,stime,daylow+PriceScale*30,"+30");
TL_SetExtRight(TL2,true);
TL_SetColor(TL2,RED);
Text_SetColor(Tx2,red);
}
if Condition3 == false and H >= daylow+PriceScale*40 Then{
Condition3 = true;
TL_Delete(TL3);
text_Delete(Tx3);
TL3 = TL_New(D1,T1,daylow+PriceScale*40,sdate,stime,daylow+PriceScale*40);
tx3 = Text_New(Sdate,stime,daylow+PriceScale*40,"+40");
TL_SetExtRight(TL3,true);
TL_SetColor(TL3,RED);
Text_SetColor(Tx3,red);
}
if H == DayHigh Then{
Condition4 = false;
Condition5 = false;
Condition6 = false;
}
if Condition4 == false and L <= DayHigh-PriceScale*20 Then{
Condition4 = true;
TL_Delete(TL4);
text_Delete(Tx4);
TL4 = TL_New(D1,T1,dayhigh-PriceScale*20,sdate,stime,dayhigh-PriceScale*20);
tx4 = Text_New(Sdate,stime,DayHigh-PriceScale*20,"-20");
TL_SetExtRight(TL4,true);
TL_SetColor(TL4,BLUE);
Text_SetColor(Tx4,BLUE);
}
if Condition5 == false and L <= DayHigh-PriceScale*30 Then{
Condition5 = true;
TL_Delete(TL5);
text_Delete(Tx5);
TL5 = TL_New(D1,T1,dayhigh-PriceScale*30,sdate,stime,dayhigh-PriceScale*30);
tx5 = Text_New(Sdate,stime,DayHigh-PriceScale*30,"-30");
TL_SetExtRight(TL5,true);
TL_SetColor(TL5,BLUE);
Text_SetColor(Tx5,BLUE);
}
if Condition6 == false and L <= DayHigh-PriceScale*40 Then{
Condition6 = true;
TL_Delete(TL6);
text_Delete(Tx6);
TL6 = TL_New(D1,T1,dayhigh-PriceScale*40,sdate,stime,dayhigh-PriceScale*40);
tx6 = Text_New(Sdate,stime,DayHigh-PriceScale*40,"-40");
TL_SetExtRight(TL6,true);
TL_SetColor(TL6,BLUE);
Text_SetColor(Tx6,BLUE);
}
만약 가격 도달과 관계없이
단순히 당일 저가에서 +20틱 +30틱 +40틱
고가에서 -20틱 -30틱 -40틱선을 그어보신다면
아래식 이용하시면 됩니다.
var : D1(0),T1(0);
var : TL1(0),TL2(0),TL3(0);
var : Tx1(0),Tx2(0),Tx3(0);
var : TL4(0),TL5(0),TL6(0);
var : Tx4(0),Tx5(0),Tx6(0);
if bdate != bdate[1] Then{
D1 = sdate;
T1 = stime;
}
TL_Delete(TL1);
text_Delete(Tx1);
TL1 = TL_New(D1,T1,daylow+PriceScale*20,sdate,stime,daylow+PriceScale*20);
tx1 = Text_New(Sdate,stime,daylow+PriceScale*20,"+20");
TL_SetExtRight(TL1,true);
TL_SetColor(TL1,RED);
Text_SetColor(Tx1,red);
TL_Delete(TL2);
text_Delete(Tx2);
TL2 = TL_New(D1,T1,daylow+PriceScale*30,sdate,stime,daylow+PriceScale*30);
tx2 = Text_New(Sdate,stime,daylow+PriceScale*30,"+30");
TL_SetExtRight(TL2,true);
TL_SetColor(TL2,RED);
Text_SetColor(Tx2,red);
TL_Delete(TL3);
text_Delete(Tx3);
TL3 = TL_New(D1,T1,daylow+PriceScale*40,sdate,stime,daylow+PriceScale*40);
tx3 = Text_New(Sdate,stime,daylow+PriceScale*40,"+40");
TL_SetExtRight(TL3,true);
TL_SetColor(TL3,RED);
Text_SetColor(Tx3,red);
TL_Delete(TL4);
text_Delete(Tx4);
TL4 = TL_New(D1,T1,dayhigh-PriceScale*20,sdate,stime,dayhigh-PriceScale*20);
tx4 = Text_New(Sdate,stime,DayHigh-PriceScale*20,"-20");
TL_SetExtRight(TL4,true);
TL_SetColor(TL4,BLUE);
Text_SetColor(Tx4,BLUE);
TL_Delete(TL5);
text_Delete(Tx5);
TL5 = TL_New(D1,T1,dayhigh-PriceScale*30,sdate,stime,dayhigh-PriceScale*30);
tx5 = Text_New(Sdate,stime,DayHigh-PriceScale*30,"-30");
TL_SetExtRight(TL5,true);
TL_SetColor(TL5,BLUE);
Text_SetColor(Tx5,BLUE);
TL_Delete(TL6);
text_Delete(Tx6);
TL6 = TL_New(D1,T1,dayhigh-PriceScale*40,sdate,stime,dayhigh-PriceScale*40);
tx6 = Text_New(Sdate,stime,DayHigh-PriceScale*40,"-40");
TL_SetExtRight(TL6,true);
TL_SetColor(TL6,BLUE);
Text_SetColor(Tx6,BLUE);
즐거운 하루되세요
> 레전드 님이 쓴 글입니다.
> 제목 : 재문의
> var : D1(0),T1(0);
var : TL1(0),TL2(0),TL3(0);
var : Tx1(0),Tx2(0),Tx3(0);
var : TL4(0),TL5(0),TL6(0);
var : Tx4(0),Tx5(0),Tx6(0);
if date != date[1] Then{
D1 = sdate;
T1 = stime;
TL_Delete(TL1);
TL_Delete(Tx1);
TL_Delete(TL2);
TL_Delete(Tx2);
TL_Delete(TL3);
TL_Delete(Tx3);
TL_Delete(TL4);
TL_Delete(Tx4);
TL_Delete(TL5);
TL_Delete(Tx5);
TL_Delete(TL6);
TL_Delete(Tx6);
}
if L == daylow Then{
Condition1 = false;
Condition2 = false;
Condition3 = false;
}
if Condition1 == false and H >= daylow+PriceScale*20 Then{
Condition1 = true;
TL_Delete(TL1);
text_Delete(Tx1);
TL1 = TL_New(D1,T1,daylow+PriceScale*20,sdate,stime,daylow+PriceScale*20);
tx1 = Text_New(Sdate,stime,daylow+PriceScale*20,"+20");
TL_SetExtRight(TL1,true);
TL_SetColor(TL1,RED);
Text_SetColor(Tx1,red);
}
if Condition2 == false and H >= daylow+PriceScale*30 Then{
Condition2 = true;
TL_Delete(TL2);
text_Delete(Tx2);
TL2 = TL_New(D1,T1,daylow+PriceScale*30,sdate,stime,daylow+PriceScale*30);
tx2 = Text_New(Sdate,stime,daylow+PriceScale*30,"+30");
TL_SetExtRight(TL2,true);
TL_SetColor(TL2,RED);
Text_SetColor(Tx2,red);
}
if Condition3 == false and H >= daylow+PriceScale*40 Then{
Condition3 = true;
TL_Delete(TL3);
text_Delete(Tx3);
TL3 = TL_New(D1,T1,daylow+PriceScale*40,sdate,stime,daylow+PriceScale*40);
tx3 = Text_New(Sdate,stime,daylow+PriceScale*40,"+40");
TL_SetExtRight(TL3,true);
TL_SetColor(TL3,RED);
Text_SetColor(Tx3,red);
}
if H == DayHigh Then{
Condition4 = false;
Condition5 = false;
Condition6 = false;
}
if Condition4 == false and L <= DayHigh-PriceScale*20 Then{
Condition4 = true;
TL_Delete(TL4);
text_Delete(Tx4);
TL4 = TL_New(D1,T1,dayhigh-PriceScale*20,sdate,stime,dayhigh-PriceScale*20);
tx4 = Text_New(Sdate,stime,DayHigh-PriceScale*20,"-20");
TL_SetExtRight(TL4,true);
TL_SetColor(TL4,BLUE);
Text_SetColor(Tx4,BLUE);
}
if Condition5 == false and L <= DayHigh-PriceScale*30 Then{
Condition5 = true;
TL_Delete(TL5);
text_Delete(Tx5);
TL5 = TL_New(D1,T1,dayhigh-PriceScale*30,sdate,stime,dayhigh-PriceScale*30);
tx5 = Text_New(Sdate,stime,DayHigh-PriceScale*30,"-30");
TL_SetExtRight(TL5,true);
TL_SetColor(TL5,BLUE);
Text_SetColor(Tx5,BLUE);
}
if Condition6 == false and L <= DayHigh-PriceScale*40 Then{
Condition6 = true;
TL_Delete(TL6);
text_Delete(Tx6);
TL6 = TL_New(D1,T1,dayhigh-PriceScale*40,sdate,stime,dayhigh-PriceScale*40);
tx6 = Text_New(Sdate,stime,DayHigh-PriceScale*40,"-40");
TL_SetExtRight(TL6,true);
TL_SetColor(TL6,BLUE);
Text_SetColor(Tx6,BLUE);
}
즐거운 하루되세요
> 레전드 님이 쓴 글입니다.
> 제목 : 문의
> 저가에서 20틱 30틱 40틱 올라올때 선이나타나고 그선 위나 아래또는 옆에 20 30 40이라는 글자가 나오고
고가에서 20틱 30틱 40틱 내려갈때 선이나타나고 그선 위나 아래또는 옆에 -20 -30 -40이라는 글자가 나오게 부탁드릴게요
그대로 하니까, 선이 나올때도 있고고 안나올때도 있는데 왜그런가요.
만약에 선이 나오는게 어렵다면 글만 나오게 하도록 부탁드릴게요
그리고 크루드 오일의 경우는 밤12시부터 다음날 밤12시 까지 적용되어서 나옵니다,
아침 8시부터 다음날 아침7시까지가 적용되어야 되는데, 이럴때는 어떻게 보정하나요?