커뮤니티
2개의 지표부탁드립니다 합처서 하나의지표로
2018-04-02 08:39:06
317
글번호 117827
1번지표 2지표는 하나의지표로 구현 부탁드려요
## 3번 은 이평을 60 120 이평을 추가 부탁드려요
1, 1번지표
Input : P1(11),P2(12),P3(13),P4(14),P5(15),P6(16),P7(17),P8(18),P9(19),P10(20),P11(21),P12(22),P13(23),P14(24),P15(25);
if ema(c,p1)>ema(c,p1)[1] Then
Plot1(Ema(C,P1), "이동평균1",rgb(242,115,60));
Else
Plot1(Ema(C,P1), "이동평균1",rgb(119,108,217));
if ema(c,p2)>ema(c,p2)[1] Then
Plot2(Ema(C,P2), "이동평균2",rgb(242,115,60));
Else
Plot2(Ema(C,P2), "이동평균2",rgb(119,108,217));
if ema(c,p3)>ema(c,p3)[1] Then
Plot3(Ema(C,P3), "이동평균3",rgb(242,115,60));
Else
Plot3(Ema(C,P3), "이동평균3",rgb(119,108,217));
if ema(c,p4)>ema(c,p4)[1] Then
Plot4(Ema(C,P4), "이동평균4",rgb(242,115,60));
Else
Plot4(Ema(C,P4), "이동평균4",rgb(119,108,217));
if ema(c,p5)>ema(c,p5)[1] Then
Plot5(Ema(C,P5), "이동평균5",rgb(242,115,60));
Else
Plot5(Ema(C,P5), "이동평균5",rgb(119,108,217));
if ema(c,p6)>ema(c,p6)[1] Then
Plot6(Ema(C,P6), "이동평균6",rgb(242,115,60));
Else
Plot6(Ema(C,P6), "이동평균6",rgb(119,108,217));
if ema(c,p7)>ema(c,p7)[1] Then
Plot7(Ema(C,P7), "이동평균7",rgb(242,115,60));
Else
Plot7(Ema(C,P7), "이동평균7",rgb(119,108,217));
if ema(c,p8)>ema(c,p8)[1] Then
Plot8(Ema(C,P8), "이동평균8",rgb(242,115,60));
Else
Plot8(Ema(C,P8), "이동평균8",rgb(119,108,217));
if ema(c,p9)>ema(c,p9)[1] Then
Plot9(Ema(C,P9), "이동평균9",rgb(242,115,60));
Else
Plot9(Ema(C,P9), "이동평균9",rgb(119,108,217));
if ema(c,p10)>ema(c,p10)[1] Then
Plot10(Ema(C,P10), "이동평균10",rgb(242,115,60));
Else
Plot10(Ema(C,P10), "이동평균10",rgb(119,108,217));
if ema(c,p11)>ema(c,p11)[1] Then
Plot11(Ema(C,P11), "이동평균11",rgb(242,115,60));
Else
Plot11(Ema(C,P11), "이동평균11",rgb(119,108,217));
if ema(c,p12)>ema(c,p12)[1] Then
Plot12(Ema(C,P12), "이동평균12",rgb(242,115,60));
Else
Plot12(Ema(C,P12), "이동평균12",rgb(119,108,217));
if ema(c,p13)>ema(c,p13)[1] Then
Plot13(Ema(C,P13), "이동평균13",rgb(242,115,60));
Else
Plot13(Ema(C,P13), "이동평균13",rgb(119,108,217));
if ema(c,p14)>ema(c,p14)[1] Then
Plot14(Ema(C,P14), "이동평균14",rgb(242,115,60));
Else
Plot14(Ema(C,P14), "이동평균14",rgb(119,108,217));
if ema(c,p15)>ema(c,p15)[1] Then
Plot15(Ema(C,P15), "이동평균15",rgb(242,115,60));
Else
Plot15(Ema(C,P15), "이동평균15",rgb(119,108,217));
2,2번지표
input : P1(10),P2(20),P3(60),P4(120),P5(240);
var1 = ma(C,P1);
var2 = ma(C,P2);
var3 = ma(C,P3);
var4 = ma(C,P4);
var5 = ma(C,P5);
value1 = max(var1,var2,var3,var4,var5);
value2 = min(var1,var2,var3,var4,var5);
if value1 <= value2*1.10 then{
plot1(var1,"이평1",BLACK);
plot2(var2,"이평2",BLACK);
plot3(var3,"이평3",BLACK);
plot4(var4,"이평4",BLACK);
plot5(var5,"이평5",BLACK);
}
Else
{
plot1(var1,"이평1",iff(var1>var1[1],red,blue));
plot2(var2,"이평2",iff(var2>var2[1],red,blue));
plot3(var3,"이평3",iff(var3>var3[1],red,blue));
plot4(var4,"이평4",iff(var4>var4[1],red,blue));
plot5(var5,"이평5",iff(var5>var5[1],red,blue));
}
3번, 60이평 120 이평 두
이평은 상승은 레드 하락은 블루 선으로 표현 부탁 드려요
60 ,120 이평을 추가 하여 부탁드려요
input : P(20);
var1 = ma(C,P);
var2 = var1-var1[1];
if var2 > 0 Then
plot1(var2,"등락",RED);
Else
plot1(var2,"등락",blue);
답변 1
예스스탁 예스스탁 답변
2018-04-02 11:31:02
안녕하세요
예스스탁입니다.
1
Input : P1(11),P2(12),P3(13),P4(14),P5(15),P6(16),P7(17),P8(18),P9(19),P10(20),P11(21),P12(22),P13(23),P14(24),P15(25);
if ema(c,p1)>ema(c,p1)[1] Then
Plot1(Ema(C,P1), "이동평균1",rgb(242,115,60));
Else
Plot1(Ema(C,P1), "이동평균1",rgb(119,108,217));
if ema(c,p2)>ema(c,p2)[1] Then
Plot2(Ema(C,P2), "이동평균2",rgb(242,115,60));
Else
Plot2(Ema(C,P2), "이동평균2",rgb(119,108,217));
if ema(c,p3)>ema(c,p3)[1] Then
Plot3(Ema(C,P3), "이동평균3",rgb(242,115,60));
Else
Plot3(Ema(C,P3), "이동평균3",rgb(119,108,217));
if ema(c,p4)>ema(c,p4)[1] Then
Plot4(Ema(C,P4), "이동평균4",rgb(242,115,60));
Else
Plot4(Ema(C,P4), "이동평균4",rgb(119,108,217));
if ema(c,p5)>ema(c,p5)[1] Then
Plot5(Ema(C,P5), "이동평균5",rgb(242,115,60));
Else
Plot5(Ema(C,P5), "이동평균5",rgb(119,108,217));
if ema(c,p6)>ema(c,p6)[1] Then
Plot6(Ema(C,P6), "이동평균6",rgb(242,115,60));
Else
Plot6(Ema(C,P6), "이동평균6",rgb(119,108,217));
if ema(c,p7)>ema(c,p7)[1] Then
Plot7(Ema(C,P7), "이동평균7",rgb(242,115,60));
Else
Plot7(Ema(C,P7), "이동평균7",rgb(119,108,217));
if ema(c,p8)>ema(c,p8)[1] Then
Plot8(Ema(C,P8), "이동평균8",rgb(242,115,60));
Else
Plot8(Ema(C,P8), "이동평균8",rgb(119,108,217));
if ema(c,p9)>ema(c,p9)[1] Then
Plot9(Ema(C,P9), "이동평균9",rgb(242,115,60));
Else
Plot9(Ema(C,P9), "이동평균9",rgb(119,108,217));
if ema(c,p10)>ema(c,p10)[1] Then
Plot10(Ema(C,P10), "이동평균10",rgb(242,115,60));
Else
Plot10(Ema(C,P10), "이동평균10",rgb(119,108,217));
if ema(c,p11)>ema(c,p11)[1] Then
Plot11(Ema(C,P11), "이동평균11",rgb(242,115,60));
Else
Plot11(Ema(C,P11), "이동평균11",rgb(119,108,217));
if ema(c,p12)>ema(c,p12)[1] Then
Plot12(Ema(C,P12), "이동평균12",rgb(242,115,60));
Else
Plot12(Ema(C,P12), "이동평균12",rgb(119,108,217));
if ema(c,p13)>ema(c,p13)[1] Then
Plot13(Ema(C,P13), "이동평균13",rgb(242,115,60));
Else
Plot13(Ema(C,P13), "이동평균13",rgb(119,108,217));
if ema(c,p14)>ema(c,p14)[1] Then
Plot14(Ema(C,P14), "이동평균14",rgb(242,115,60));
Else
Plot14(Ema(C,P14), "이동평균14",rgb(119,108,217));
if ema(c,p15)>ema(c,p15)[1] Then
Plot15(Ema(C,P15), "이동평균15",rgb(242,115,60));
Else
Plot15(Ema(C,P15), "이동평균15",rgb(119,108,217));
input : Period1(10),Period2(20),Period3(60),Period4(120),Period5(240);
var1 = ma(C,Period1);
var2 = ma(C,Period2);
var3 = ma(C,Period3);
var4 = ma(C,Period4);
var5 = ma(C,Period5);
value1 = max(var1,var2,var3,var4,var5);
value2 = min(var1,var2,var3,var4,var5);
if value1 <= value2*1.10 then{
plot21(var1,"이평1",BLACK);
plot22(var2,"이평2",BLACK);
plot23(var3,"이평3",BLACK);
plot24(var4,"이평4",BLACK);
plot25(var5,"이평5",BLACK);
}
Else
{
plot21(var1,"이평1",iff(var1>var1[1],red,blue));
plot22(var2,"이평2",iff(var2>var2[1],red,blue));
plot23(var3,"이평3",iff(var3>var3[1],red,blue));
plot24(var4,"이평4",iff(var4>var4[1],red,blue));
plot25(var5,"이평5",iff(var5>var5[1],red,blue));
}
2
input : P1(20),P2(60),P3(120);
var1 = ma(C,P1);
var2 = var1-var1[1];
if var2 > 0 Then
plot1(var2,"등락",RED);
Else
plot1(var2,"등락",blue);
var3 = ma(C,P2);
var4 = var3-var3[1];
if var4 > 0 Then
plot2(var4,"등락",RED);
Else
plot2(var4,"등락",blue);
var5 = ma(C,P2);
var6 = var5-var5[1];
if var6 > 0 Then
plot3(var6,"등락",RED);
Else
plot3(var6,"등락",blue);
즐거운 하루되세요
> 매치다는 님이 쓴 글입니다.
> 제목 : 2개의 지표부탁드립니다 합처서 하나의지표로
> 1번지표 2지표는 하나의지표로 구현 부탁드려요
## 3번 은 이평을 60 120 이평을 추가 부탁드려요
1, 1번지표
Input : P1(11),P2(12),P3(13),P4(14),P5(15),P6(16),P7(17),P8(18),P9(19),P10(20),P11(21),P12(22),P13(23),P14(24),P15(25);
if ema(c,p1)>ema(c,p1)[1] Then
Plot1(Ema(C,P1), "이동평균1",rgb(242,115,60));
Else
Plot1(Ema(C,P1), "이동평균1",rgb(119,108,217));
if ema(c,p2)>ema(c,p2)[1] Then
Plot2(Ema(C,P2), "이동평균2",rgb(242,115,60));
Else
Plot2(Ema(C,P2), "이동평균2",rgb(119,108,217));
if ema(c,p3)>ema(c,p3)[1] Then
Plot3(Ema(C,P3), "이동평균3",rgb(242,115,60));
Else
Plot3(Ema(C,P3), "이동평균3",rgb(119,108,217));
if ema(c,p4)>ema(c,p4)[1] Then
Plot4(Ema(C,P4), "이동평균4",rgb(242,115,60));
Else
Plot4(Ema(C,P4), "이동평균4",rgb(119,108,217));
if ema(c,p5)>ema(c,p5)[1] Then
Plot5(Ema(C,P5), "이동평균5",rgb(242,115,60));
Else
Plot5(Ema(C,P5), "이동평균5",rgb(119,108,217));
if ema(c,p6)>ema(c,p6)[1] Then
Plot6(Ema(C,P6), "이동평균6",rgb(242,115,60));
Else
Plot6(Ema(C,P6), "이동평균6",rgb(119,108,217));
if ema(c,p7)>ema(c,p7)[1] Then
Plot7(Ema(C,P7), "이동평균7",rgb(242,115,60));
Else
Plot7(Ema(C,P7), "이동평균7",rgb(119,108,217));
if ema(c,p8)>ema(c,p8)[1] Then
Plot8(Ema(C,P8), "이동평균8",rgb(242,115,60));
Else
Plot8(Ema(C,P8), "이동평균8",rgb(119,108,217));
if ema(c,p9)>ema(c,p9)[1] Then
Plot9(Ema(C,P9), "이동평균9",rgb(242,115,60));
Else
Plot9(Ema(C,P9), "이동평균9",rgb(119,108,217));
if ema(c,p10)>ema(c,p10)[1] Then
Plot10(Ema(C,P10), "이동평균10",rgb(242,115,60));
Else
Plot10(Ema(C,P10), "이동평균10",rgb(119,108,217));
if ema(c,p11)>ema(c,p11)[1] Then
Plot11(Ema(C,P11), "이동평균11",rgb(242,115,60));
Else
Plot11(Ema(C,P11), "이동평균11",rgb(119,108,217));
if ema(c,p12)>ema(c,p12)[1] Then
Plot12(Ema(C,P12), "이동평균12",rgb(242,115,60));
Else
Plot12(Ema(C,P12), "이동평균12",rgb(119,108,217));
if ema(c,p13)>ema(c,p13)[1] Then
Plot13(Ema(C,P13), "이동평균13",rgb(242,115,60));
Else
Plot13(Ema(C,P13), "이동평균13",rgb(119,108,217));
if ema(c,p14)>ema(c,p14)[1] Then
Plot14(Ema(C,P14), "이동평균14",rgb(242,115,60));
Else
Plot14(Ema(C,P14), "이동평균14",rgb(119,108,217));
if ema(c,p15)>ema(c,p15)[1] Then
Plot15(Ema(C,P15), "이동평균15",rgb(242,115,60));
Else
Plot15(Ema(C,P15), "이동평균15",rgb(119,108,217));
2,2번지표
input : P1(10),P2(20),P3(60),P4(120),P5(240);
var1 = ma(C,P1);
var2 = ma(C,P2);
var3 = ma(C,P3);
var4 = ma(C,P4);
var5 = ma(C,P5);
value1 = max(var1,var2,var3,var4,var5);
value2 = min(var1,var2,var3,var4,var5);
if value1 <= value2*1.10 then{
plot1(var1,"이평1",BLACK);
plot2(var2,"이평2",BLACK);
plot3(var3,"이평3",BLACK);
plot4(var4,"이평4",BLACK);
plot5(var5,"이평5",BLACK);
}
Else
{
plot1(var1,"이평1",iff(var1>var1[1],red,blue));
plot2(var2,"이평2",iff(var2>var2[1],red,blue));
plot3(var3,"이평3",iff(var3>var3[1],red,blue));
plot4(var4,"이평4",iff(var4>var4[1],red,blue));
plot5(var5,"이평5",iff(var5>var5[1],red,blue));
}
3번, 60이평 120 이평 두
이평은 상승은 레드 하락은 블루 선으로 표현 부탁 드려요
60 ,120 이평을 추가 하여 부탁드려요
input : P(20);
var1 = ma(C,P);
var2 = var1-var1[1];
if var2 > 0 Then
plot1(var2,"등락",RED);
Else
plot1(var2,"등락",blue);