커뮤니티
시스템식으로 부탁드립니다.
2013-11-07 13:36:09
152
글번호 69273
1번에서 12번까지 청색일경우매도 1번에서 12번까지 적색일경우 매수 식 부탁드립니다
1번 에서 12번까지 폭이줄어들면서 색상이 청색에서 적색일경우 매수 식
input : P(5),간격(1);
array : mav[12](0);
mav[1] = ma(c,P+간격*1);
mav[2] = ma(c,P+간격*2);
mav[3] = ma(c,P+간격*3);
mav[4] = ma(c,P+간격*4);
mav[5] = ma(c,P+간격*5);
mav[6] = ma(c,P+간격*6);
mav[7] = ma(c,P+간격*7);
mav[8] = ma(c,P+간격*8);
mav[9] = ma(c,P+간격*9);
mav[10] = ma(c,P+간격*10);
mav[11] = ma(c,P+간격*11);
mav[12] = ma(c,P+간격*12);
plot1(mav[1],"1",iff(mav[1] > mav[1][1],iff(V< 1400,red,red),iff(V<300,blue,blue)));
plot2(mav[2],"2",iff(mav[2] > mav[2][1],iff(V< 1300,red,red),iff(V<400,blue,blue)));
plot3(mav[3],"3",iff(mav[3] > mav[3][1],iff(V< 1200,red,red),iff(V<500,blue,blue)));
plot4(mav[4],"4",iff(mav[4] > mav[4][1],iff(V< 1100,red,red),iff(V<600,blue,blue)));
plot5(mav[5],"5",iff(mav[5] > mav[5][1],iff(V< 1000,red,red),iff(V<700,blue,blue)));
plot6(mav[6],"6",iff(mav[6] > mav[6][1],iff(V< 900,red,red),iff(V<800,blue,blue)));
plot7(mav[7],"7",iff(mav[7] > mav[7][1],iff(V< 800,red,red),iff(V<900,blue,blue)));
plot8(mav[8],"8",iff(mav[8] > mav[8][1],iff(V< 700,red,red),iff(V<1000,blue,blue)));
plot9(mav[9],"9",iff(mav[9] > mav[9][1],iff(V< 600,red,red),iff(V<1100,blue,blue)));
plot10(mav[10],"10",iff(mav[10] > mav[10][1],iff(V< 500,red,red),iff(V<1200,blue,blue)));
plot11(mav[11],"11",iff(mav[11] > mav[11][1],iff(V< 400,red,red),iff(V<1300,blue,blue)));
plot12(mav[12],"12",iff(mav[12] > mav[12][1],iff(V< 300,red,red),iff(V<1400,blue,blue)));
답변 1
예스스탁 예스스탁 답변
2013-11-07 16:02:15
안녕하세요
예스스탁입니다.
1.
input : P(5),간격(1);
array : mav[12](0);
mav[1] = ma(c,P+간격*1);
mav[2] = ma(c,P+간격*2);
mav[3] = ma(c,P+간격*3);
mav[4] = ma(c,P+간격*4);
mav[5] = ma(c,P+간격*5);
mav[6] = ma(c,P+간격*6);
mav[7] = ma(c,P+간격*7);
mav[8] = ma(c,P+간격*8);
mav[9] = ma(c,P+간격*9);
mav[10] = ma(c,P+간격*10);
mav[11] = ma(c,P+간격*11);
mav[12] = ma(c,P+간격*12);
Condition1 = mav[1] > mav[1][1] and
mav[2] > mav[2][1] and
mav[3] > mav[3][1] and
mav[4] > mav[4][1] and
mav[5] > mav[5][1] and
mav[6] > mav[6][1] and
mav[7] > mav[7][1] and
mav[8] > mav[8][1] and
mav[9] > mav[9][1] and
mav[10] > mav[10][1] and
mav[11] > mav[11][1] and
mav[12] > mav[12][1];
Condition2 = mav[1] <= mav[1][1] and
mav[2] <= mav[2][1] and
mav[3] <= mav[3][1] and
mav[4] <= mav[4][1] and
mav[5] <= mav[5][1] and
mav[6] <= mav[6][1] and
mav[7] <= mav[7][1] and
mav[8] <= mav[8][1] and
mav[9] <= mav[9][1] and
mav[10] <= mav[10][1] and
mav[11] <= mav[11][1] and
mav[12] <= mav[12][1];
value1 = max(mav1[1]
if Condition1 == true and Condition1[1] == false Then
buy();
if Condition2 == true and Condition2[1] == false Then
sell();
2.
input : P(5),간격(1);
array : mav[12](0);
mav[1] = ma(c,P+간격*1);
mav[2] = ma(c,P+간격*2);
mav[3] = ma(c,P+간격*3);
mav[4] = ma(c,P+간격*4);
mav[5] = ma(c,P+간격*5);
mav[6] = ma(c,P+간격*6);
mav[7] = ma(c,P+간격*7);
mav[8] = ma(c,P+간격*8);
mav[9] = ma(c,P+간격*9);
mav[10] = ma(c,P+간격*10);
mav[11] = ma(c,P+간격*11);
mav[12] = ma(c,P+간격*12);
Condition1 = mav[1] > mav[1][1] and
mav[2] > mav[2][1] and
mav[3] > mav[3][1] and
mav[4] > mav[4][1] and
mav[5] > mav[5][1] and
mav[6] > mav[6][1] and
mav[7] > mav[7][1] and
mav[8] > mav[8][1] and
mav[9] > mav[9][1] and
mav[10] > mav[10][1] and
mav[11] > mav[11][1] and
mav[12] > mav[12][1];
Condition2 = mav[1] <= mav[1][1] and
mav[2] <= mav[2][1] and
mav[3] <= mav[3][1] and
mav[4] <= mav[4][1] and
mav[5] <= mav[5][1] and
mav[6] <= mav[6][1] and
mav[7] <= mav[7][1] and
mav[8] <= mav[8][1] and
mav[9] <= mav[9][1] and
mav[10] <= mav[10][1] and
mav[11] <= mav[11][1] and
mav[12] <= mav[12][1];
value1 = max(mav[1],mav[2],mav[3],mav[4],mav[5],mav[6],mav[7],mav[8],mav[9],mav[10],mav[11],mav[12]);
value2 = min(mav[1],mav[2],mav[3],mav[4],mav[5],mav[6],mav[7],mav[8],mav[9],mav[10],mav[11],mav[12]);
value3 = value1-value2;
if Condition1 == true and Condition1[1] == false and value3 < value3[1] Then
buy();
if Condition2 == true and Condition2[1] == false and value3 < value3[1] Then
sell();
즐거운 하루되세요
> 외국인 님이 쓴 글입니다.
> 제목 : 시스템식으로 부탁드립니다.
> 1번에서 12번까지 청색일경우매도 1번에서 12번까지 적색일경우 매수 식 부탁드립니다
1번 에서 12번까지 폭이줄어들면서 색상이 청색에서 적색일경우 매수 식
input : P(5),간격(1);
array : mav[12](0);
mav[1] = ma(c,P+간격*1);
mav[2] = ma(c,P+간격*2);
mav[3] = ma(c,P+간격*3);
mav[4] = ma(c,P+간격*4);
mav[5] = ma(c,P+간격*5);
mav[6] = ma(c,P+간격*6);
mav[7] = ma(c,P+간격*7);
mav[8] = ma(c,P+간격*8);
mav[9] = ma(c,P+간격*9);
mav[10] = ma(c,P+간격*10);
mav[11] = ma(c,P+간격*11);
mav[12] = ma(c,P+간격*12);
plot1(mav[1],"1",iff(mav[1] > mav[1][1],iff(V< 1400,red,red),iff(V<300,blue,blue)));
plot2(mav[2],"2",iff(mav[2] > mav[2][1],iff(V< 1300,red,red),iff(V<400,blue,blue)));
plot3(mav[3],"3",iff(mav[3] > mav[3][1],iff(V< 1200,red,red),iff(V<500,blue,blue)));
plot4(mav[4],"4",iff(mav[4] > mav[4][1],iff(V< 1100,red,red),iff(V<600,blue,blue)));
plot5(mav[5],"5",iff(mav[5] > mav[5][1],iff(V< 1000,red,red),iff(V<700,blue,blue)));
plot6(mav[6],"6",iff(mav[6] > mav[6][1],iff(V< 900,red,red),iff(V<800,blue,blue)));
plot7(mav[7],"7",iff(mav[7] > mav[7][1],iff(V< 800,red,red),iff(V<900,blue,blue)));
plot8(mav[8],"8",iff(mav[8] > mav[8][1],iff(V< 700,red,red),iff(V<1000,blue,blue)));
plot9(mav[9],"9",iff(mav[9] > mav[9][1],iff(V< 600,red,red),iff(V<1100,blue,blue)));
plot10(mav[10],"10",iff(mav[10] > mav[10][1],iff(V< 500,red,red),iff(V<1200,blue,blue)));
plot11(mav[11],"11",iff(mav[11] > mav[11][1],iff(V< 400,red,red),iff(V<1300,blue,blue)));
plot12(mav[12],"12",iff(mav[12] > mav[12][1],iff(V< 300,red,red),iff(V<1400,blue,blue)));
다음글
이전글