커뮤니티
수식 부탁드립니다
2019-03-11 11:39:35
331
글번호 126913
안녕하세요!
아래는 제가 사용했던 키움 수식입니다!
예스로 변환 부탁드립니다!
장이 시작되면 가격선이 나타나고 저가 또는 고가라는 텍스트와 가격텍스트가 같이 출력되게 부탁드립니다!
예): 저가 275.40 >>>>> 이런식으로 라인과 텍스트가 같이 출력되도록 부탁드립니다.
항상 정말 감사드립니다!
------------------------------------------------------------------
저가1 :
(PredayLow()-Predayhigh())+Predayclose()
저가2 :
(PredayLow()-Predayhigh())+PredayLow()
저가3 :
(PredayLow()-Predayclose())+Predayhigh()
저가4 :
(PredayLow()-Predayclose())+Predayclose()
저가5 :
A1 = (PredayLow()-Predayhigh())+Predayclose();
A2 = (PredayLow()-Predayhigh())+PredayLow();
A3 = (PredayLow()-Predayclose())+Predayhigh();
A4 = (PredayLow()-Predayclose())+Predayclose();
(A1+A2+A3+A4)/4
저가6 :
PredayLow()-0.65
고가1 :
(Predayhigh()-Predaylow())+Predayclose()
고가2 :
(Predayhigh()-Predaylow())+Predayhigh()
고가3 :
(Predayhigh()-Predayclose())+Predayhigh()
고가4 :
(Predayhigh()-Predayclose())+Predayclose()
고가5 :
A1 = (Predayhigh()-Predaylow())+Predayclose();
A2 = (Predayhigh()-Predaylow())+Predayhigh();
A3 = (Predayhigh()-Predayclose())+Predayhigh();
A4 = (Predayhigh()-Predayclose())+Predayclose();
(A1+A2+A3+A4)/4
고가6 :
Predayhigh()-0.65
답변 1
예스스탁 예스스탁 답변
2019-03-12 09:25:14
안녕하세요
예스스탁입니다.
var : tx1(0),tx2(0),tx3(0),tx4(0),tx5(0),tx6(0);
var : tx7(0),tx8(0),tx9(0),tx10(0),tx11(0),tx12(0);
var1 = (daylow(1)-dayhigh(1))+dayclose(1);
var2 = (daylow(1)-dayhigh(1))+daylow(1);
var3 = (daylow(1)-dayclose(1))+dayhigh(1);
var4 = (daylow(1)-dayclose(1))+dayclose(1);
var5 = (var1+var2+var3+var4)/4;
var6 = daylow(1)-0.65;
value1 = (dayhigh(1)-daylow(1))+dayclose(1);
value2 = (dayhigh(1)-daylow(1))+dayhigh(1);
value3 = (dayhigh(1)-dayclose(1))+dayhigh(1);
value4 = (dayhigh(1)-dayclose(1))+dayclose(1);
value5 = (value1+value2+value3+value4)/4;
value6 = dayhigh(1)-0.65;
plot1(var1,"저가1");
plot2(var2,"저가2");
plot3(var3,"저가3");
plot4(var4,"저가4");
plot5(var5,"저가5");
plot6(var6,"저가6");
plot7(value1,"고가1");
plot8(value2,"고가2");
plot9(value3,"고가3");
plot10(value4,"고가4");
plot11(value5,"고가5");
plot12(value6,"고가6");
if bdate != bdate[1] then
{
Text_Delete(tx1);
Text_Delete(tx2);
Text_Delete(tx3);
Text_Delete(tx4);
Text_Delete(tx5);
Text_Delete(tx6);
Text_Delete(tx7);
Text_Delete(tx8);
Text_Delete(tx9);
Text_Delete(tx10);
Text_Delete(tx11);
Text_Delete(tx12);
tx1 = Text_New(sdate,stime,var1,"저가1: "+NumToStr(var1,2));
tx2 = Text_New(sdate,stime,var2,"저가2: "+NumToStr(var2,2));
tx3 = Text_New(sdate,stime,var3,"저가3: "+NumToStr(var3,2));
tx4 = Text_New(sdate,stime,var4,"저가4: "+NumToStr(var4,2));
tx5 = Text_New(sdate,stime,var5,"저가5: "+NumToStr(var5,2));
tx6 = Text_New(sdate,stime,var6,"저가6: "+NumToStr(var6,2));
tx7 = Text_New(sdate,stime,value1,"고가1: "+NumToStr(value1,2));
tx8 = Text_New(sdate,stime,value2,"고가2: "+NumToStr(value2,2));
tx9 = Text_New(sdate,stime,value3,"고가3: "+NumToStr(value3,2));
tx10 = Text_New(sdate,stime,value4,"고가4: "+NumToStr(value4,2));
tx11 = Text_New(sdate,stime,value5,"고가5: "+NumToStr(value5,2));
tx12 = Text_New(sdate,stime,value6,"고가6: "+NumToStr(value6,2));
Text_SetStyle(tx1,2,1);
Text_SetStyle(tx2,2,1);
Text_SetStyle(tx3,2,1);
Text_SetStyle(tx4,2,1);
Text_SetStyle(tx5,2,1);
Text_SetStyle(tx6,2,1);
Text_SetStyle(tx7,2,1);
Text_SetStyle(tx8,2,1);
Text_SetStyle(tx9,2,1);
Text_SetStyle(tx10,2,1);
Text_SetStyle(tx11,2,1);
Text_SetStyle(tx12,2,1);
}
Else
{
Text_SetLocation(tx1,sdate,stime,var1);
Text_SetLocation(tx2,sdate,stime,var2);
Text_SetLocation(tx3,sdate,stime,var3);
Text_SetLocation(tx4,sdate,stime,var4);
Text_SetLocation(tx5,sdate,stime,var5);
Text_SetLocation(tx6,sdate,stime,var6);
Text_SetLocation(tx7,sdate,stime,value1);
Text_SetLocation(tx8,sdate,stime,value2);
Text_SetLocation(tx9,sdate,stime,value3);
Text_SetLocation(tx10,sdate,stime,value4);
Text_SetLocation(tx11,sdate,stime,value5);
Text_SetLocation(tx12,sdate,stime,value6);
}
즐거운 하루되세요
> qha71 님이 쓴 글입니다.
> 제목 : 수식 부탁드립니다
> 안녕하세요!
아래는 제가 사용했던 키움 수식입니다!
예스로 변환 부탁드립니다!
장이 시작되면 가격선이 나타나고 저가 또는 고가라는 텍스트와 가격텍스트가 같이 출력되게 부탁드립니다!
예): 저가 275.40 >>>>> 이런식으로 라인과 텍스트가 같이 출력되도록 부탁드립니다.
항상 정말 감사드립니다!
------------------------------------------------------------------
저가1 :
(PredayLow()-Predayhigh())+Predayclose()
저가2 :
(PredayLow()-Predayhigh())+PredayLow()
저가3 :
(PredayLow()-Predayclose())+Predayhigh()
저가4 :
(PredayLow()-Predayclose())+Predayclose()
저가5 :
A1 = (PredayLow()-Predayhigh())+Predayclose();
A2 = (PredayLow()-Predayhigh())+PredayLow();
A3 = (PredayLow()-Predayclose())+Predayhigh();
A4 = (PredayLow()-Predayclose())+Predayclose();
(A1+A2+A3+A4)/4
저가6 :
PredayLow()-0.65
고가1 :
(Predayhigh()-Predaylow())+Predayclose()
고가2 :
(Predayhigh()-Predaylow())+Predayhigh()
고가3 :
(Predayhigh()-Predayclose())+Predayhigh()
고가4 :
(Predayhigh()-Predayclose())+Predayclose()
고가5 :
A1 = (Predayhigh()-Predaylow())+Predayclose();
A2 = (Predayhigh()-Predaylow())+Predayhigh();
A3 = (Predayhigh()-Predayclose())+Predayhigh();
A4 = (Predayhigh()-Predayclose())+Predayclose();
(A1+A2+A3+A4)/4
고가6 :
Predayhigh()-0.65