커뮤니티
부탁드립니다. 감사합니다
2018-07-12 12:57:49
144
글번호 120496
감사합니다
선 3개만 추가 부탁드립니다
Plot 1과 Plot2의 중간값 선: Plot12
Plot10과의 Plot11의 중간값 선: Plot13
Plot12, Plot13의 중간값 선 : Plot14
input : Period(12), Period1(5), Period2(5);
input : short(12), long(26), sig(9);
var : H1(0),L1(0),H2(0),L2(0);
var : macdv(0),macdo(0);
var : H3(0),L3(0),H4(0),L4(0);
var : H5(0),L5(0),H6(0),L6(0);
macdV = MACD(short,long);
macdO = MACD_OSC(short,long,sig);
Value1 = StochasticsD(Period,Period1,PEriod2);
Value2 = StochasticsK(Period,Period1);
Condition1 = value1 > 80;
Condition2 = value1 < 20;
if Condition1 == true and Condition1[1] == false Then
{
H1 = H;
L1 = L;
}
if Condition1 == true then
{
if h > H1 Then
H1 = h;
if l < L1 Then
L1 = l;
}
if Condition1 == false and Condition1[1] == true Then
{
var1 = (H1+L1)/2;
}
if Condition2 == true and Condition2[1] == false Then
{
H2 = H;
L2 = L;
}
if Condition2 == true then
{
if h > H2 Then
H2 = h;
if l < L2 Then
L2 = l;
}
if Condition2 == false and Condition2[1] == true Then
{
var2 = (H2+L2)/2;
}
if var1 > 0 then
plot1(var1);
if var2 > 0 then
plot2(var2);
if H1 > 0 then
plot5(H1);
if L2 > 0 then
plot6(L2);
plot7(DayClose(1),"전일종가");
Condition3 = MACDV > 0;
Condition4 = MACDV < 0;
if Condition3 == true and Condition3[1] == false Then
{
H3 = H;
L3 = L;
}
if Condition3 == true then
{
if h > H3 Then
H3 = h;
if l < L3 Then
L3 = l;
}
if Condition3 == false and Condition3[1] == true Then
{
var3 = (H3+L3)/2;
}
if Condition4 == true and Condition4[1] == false Then
{
H4 = H;
L4 = L;
}
if Condition4 == true then
{
if h > H4 Then
H4 = h;
if l < L4 Then
L4 = l;
}
if Condition4 == false and Condition4[1] == true Then
{
var4 = (H2+L2)/2;
}
if var3 > 0 Then
plot8(var3);
if var4 > 0 Then
plot9(var4);
Condition5 = MACDO > 0;
Condition6 = MACDO < 0;
if Condition5 == true and Condition5[1] == false Then
{
H5 = H;
L5 = L;
}
if Condition5 == true then
{
if h > H5 Then
H5 = h;
if l < L5 Then
L5 = l;
}
if Condition5 == false and Condition5[1] == true Then
{
var5 = (H5+L5)/2;
}
if Condition6 == true and Condition6[1] == false Then
{
H6 = H;
L6 = L;
}
if Condition6 == true then
{
if h > H6 Then
H6 = h;
if l < L6 Then
L6 = l;
}
if Condition6 == false and Condition6[1] == true Then
{
var6 = (H6+L6)/2;
}
if var5 > 0 Then
plot10(var5);
if var6 > 0 Then
plot11(var6);
답변 1
예스스탁 예스스탁 답변
2018-07-12 14:19:03
안녕하세요
예스스탁입니다.
input : Period(12), Period1(5), Period2(5);
input : short(12), long(26), sig(9);
var : H1(0),L1(0),H2(0),L2(0);
var : macdv(0),macdo(0);
var : H3(0),L3(0),H4(0),L4(0);
var : H5(0),L5(0),H6(0),L6(0);
macdV = MACD(short,long);
macdO = MACD_OSC(short,long,sig);
Value1 = StochasticsD(Period,Period1,PEriod2);
Value2 = StochasticsK(Period,Period1);
Condition1 = value1 > 80;
Condition2 = value1 < 20;
if Condition1 == true and Condition1[1] == false Then
{
H1 = H;
L1 = L;
}
if Condition1 == true then
{
if h > H1 Then
H1 = h;
if l < L1 Then
L1 = l;
}
if Condition1 == false and Condition1[1] == true Then
{
var1 = (H1+L1)/2;
}
if Condition2 == true and Condition2[1] == false Then
{
H2 = H;
L2 = L;
}
if Condition2 == true then
{
if h > H2 Then
H2 = h;
if l < L2 Then
L2 = l;
}
if Condition2 == false and Condition2[1] == true Then
{
var2 = (H2+L2)/2;
}
if var1 > 0 then
plot1(var1);
if var2 > 0 then
plot2(var2);
if H1 > 0 then
plot5(H1);
if L2 > 0 then
plot6(L2);
plot7(DayClose(1),"전일종가");
Condition3 = MACDV > 0;
Condition4 = MACDV < 0;
if Condition3 == true and Condition3[1] == false Then
{
H3 = H;
L3 = L;
}
if Condition3 == true then
{
if h > H3 Then
H3 = h;
if l < L3 Then
L3 = l;
}
if Condition3 == false and Condition3[1] == true Then
{
var3 = (H3+L3)/2;
}
if Condition4 == true and Condition4[1] == false Then
{
H4 = H;
L4 = L;
}
if Condition4 == true then
{
if h > H4 Then
H4 = h;
if l < L4 Then
L4 = l;
}
if Condition4 == false and Condition4[1] == true Then
{
var4 = (H2+L2)/2;
}
if var3 > 0 Then
plot8(var3);
if var4 > 0 Then
plot9(var4);
Condition5 = MACDO > 0;
Condition6 = MACDO < 0;
if Condition5 == true and Condition5[1] == false Then
{
H5 = H;
L5 = L;
}
if Condition5 == true then
{
if h > H5 Then
H5 = h;
if l < L5 Then
L5 = l;
}
if Condition5 == false and Condition5[1] == true Then
{
var5 = (H5+L5)/2;
}
if Condition6 == true and Condition6[1] == false Then
{
H6 = H;
L6 = L;
}
if Condition6 == true then
{
if h > H6 Then
H6 = h;
if l < L6 Then
L6 = l;
}
if Condition6 == false and Condition6[1] == true Then
{
var6 = (H6+L6)/2;
}
if var5 > 0 Then
plot10(var5);
if var6 > 0 Then
plot11(var6);
plot12((var1+var2)/2);
plot13((var5+var6)/2);
plot14(((var1+var2)/2+(var5+var6)/2)/2);
즐거운 하루되세요
> 라떼처럼 님이 쓴 글입니다.
> 제목 : 부탁드립니다. 감사합니다
> 감사합니다
선 3개만 추가 부탁드립니다
Plot 1과 Plot2의 중간값 선: Plot12
Plot10과의 Plot11의 중간값 선: Plot13
Plot12, Plot13의 중간값 선 : Plot14
input : Period(12), Period1(5), Period2(5);
input : short(12), long(26), sig(9);
var : H1(0),L1(0),H2(0),L2(0);
var : macdv(0),macdo(0);
var : H3(0),L3(0),H4(0),L4(0);
var : H5(0),L5(0),H6(0),L6(0);
macdV = MACD(short,long);
macdO = MACD_OSC(short,long,sig);
Value1 = StochasticsD(Period,Period1,PEriod2);
Value2 = StochasticsK(Period,Period1);
Condition1 = value1 > 80;
Condition2 = value1 < 20;
if Condition1 == true and Condition1[1] == false Then
{
H1 = H;
L1 = L;
}
if Condition1 == true then
{
if h > H1 Then
H1 = h;
if l < L1 Then
L1 = l;
}
if Condition1 == false and Condition1[1] == true Then
{
var1 = (H1+L1)/2;
}
if Condition2 == true and Condition2[1] == false Then
{
H2 = H;
L2 = L;
}
if Condition2 == true then
{
if h > H2 Then
H2 = h;
if l < L2 Then
L2 = l;
}
if Condition2 == false and Condition2[1] == true Then
{
var2 = (H2+L2)/2;
}
if var1 > 0 then
plot1(var1);
if var2 > 0 then
plot2(var2);
if H1 > 0 then
plot5(H1);
if L2 > 0 then
plot6(L2);
plot7(DayClose(1),"전일종가");
Condition3 = MACDV > 0;
Condition4 = MACDV < 0;
if Condition3 == true and Condition3[1] == false Then
{
H3 = H;
L3 = L;
}
if Condition3 == true then
{
if h > H3 Then
H3 = h;
if l < L3 Then
L3 = l;
}
if Condition3 == false and Condition3[1] == true Then
{
var3 = (H3+L3)/2;
}
if Condition4 == true and Condition4[1] == false Then
{
H4 = H;
L4 = L;
}
if Condition4 == true then
{
if h > H4 Then
H4 = h;
if l < L4 Then
L4 = l;
}
if Condition4 == false and Condition4[1] == true Then
{
var4 = (H2+L2)/2;
}
if var3 > 0 Then
plot8(var3);
if var4 > 0 Then
plot9(var4);
Condition5 = MACDO > 0;
Condition6 = MACDO < 0;
if Condition5 == true and Condition5[1] == false Then
{
H5 = H;
L5 = L;
}
if Condition5 == true then
{
if h > H5 Then
H5 = h;
if l < L5 Then
L5 = l;
}
if Condition5 == false and Condition5[1] == true Then
{
var5 = (H5+L5)/2;
}
if Condition6 == true and Condition6[1] == false Then
{
H6 = H;
L6 = L;
}
if Condition6 == true then
{
if h > H6 Then
H6 = h;
if l < L6 Then
L6 = l;
}
if Condition6 == false and Condition6[1] == true Then
{
var6 = (H6+L6)/2;
}
if var5 > 0 Then
plot10(var5);
if var6 > 0 Then
plot11(var6);