커뮤니티

수정문의 드립니다.

프로필 이미지
뉴스타트
2012-06-11 12:33:24
300
글번호 51873
답변완료
수고하십니다. 24920 수정문의 드렸습니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2012-06-12 10:45:24

안녕하세요 예스스탁입니다. 수정한 식입니다. input : Previous(1),Period(10); var : Xclose(0),xOpen(0),Xhigh(0),Xlow(0); if dayindex == 0 Then{ xClose=(Open+High+Low+Close)/4; xOpen=Open; xHigh=Max(High,xOpen,xClose); xLow =Min(Low, xOpen,xClose); } Else{ xClose=(Open+High+Low+Close)/4; xOpen=(xOpen[1]+xClose[1])/2; xHigh=Max(High,xOpen,xClose); xLow =Min(Low,xOpen,xClose); } if ma(Xclose,Period) > ma(Xopen,Period) Then{ plot1((Xhigh-Xclose)+ma(Xclose,Period)); plot2(ma(Xclose,Period)); plot3(ma(Xopen,Period)); plot4(ma(Xopen,Period)); plot5(ma(xopen,Period)-(Xopen-Xlow)); plot6(ma(xopen,Period)-(Xopen-Xlow)); } Else if ma(Xclose,Period) < ma(Xopen,Period) Then{ plot1((Xhigh-Xopen)+ma(xopen,period)); plot2(ma(Xopen,Period)); plot3(ma(Xclose,Period)); plot4(ma(Xclose,Period)); plot5(ma(Xclose,Period)-(Xclose-Xlow)); plot6(ma(Xclose,Period)-(Xclose-Xlow)); } Else{ noplot(1); noplot(2); noplot(3); noplot(4); noplot(5); noplot(6); } if (ma(xclose,Period) > ma(xopen,period) and C < ma(xclose,period)) or (ma(xclose,Period) < ma(xopen,period) and C > ma(xclose,period)) Then { if ma(xclose,Period) > ma(xopen,Period) Then { plot7((Xhigh-Xclose)+ma(Xclose,Period)); plot8(ma(Xclose,Period)); plot9(ma(Xopen,Period)); plot10(ma(Xopen,Period)); plot11(ma(xopen,Period)-(Xopen-Xlow)); plot12(ma(xopen,Period)-(Xopen-Xlow)); } Else { plot7((Xhigh-Xopen)+ma(xopen,Period)); plot8(ma(Xopen,Period)); plot9(ma(Xclose,Period)); plot10(ma(Xclose,Period)); plot11(ma(Xclose,Period)-(Xclose-Xlow)); plot12(ma(Xclose,Period)-(Xclose-Xlow)); } } else{ noplot(7); noplot(8); noplot(9); noplot(10); noplot(11); noplot(12); } 즐거운 하루되세요 > 뉴스타트 님이 쓴 글입니다. > 제목 : 수정문의 드립니다. > 수고하십니다. 24920 수정문의 드렸습니다.