커뮤니티
문의드립니다
2013-12-03 13:46:51
145
글번호 70074
수고 많으세요
33695 답변 감사드립니다
분봉에는 적용하지 않습니다.
예스글로벌 일봉차트에서 서버시간기준 적용가능한 주간,월간피봇(3차)을
부탁드립니다.
답변 1
예스스탁 예스스탁 답변
2013-12-03 14:30:20
안녕하세요
예스스탁입니다.
1.
Var : Pivot(0),R1(0),R2(0),R3(0),S1(0),S2(0),S3(0);
var : WeekH(0),WeekL(0),WeekC(0);
var : PreWeekH(0),PreWeekL(0),PreWeekC(0);
if DayOfWeek(sdate) < DayOfWeek(sdate[1]) Then{
WeekH = H;
WeekL = L;
PreWeekH = WeekH[1];
PreWeekL = WeekL[1];
PreWeekC = WeekC[1];
}
if H > WeekH Then
WeekH = H;
if L < WeekL Then
WeekL = L;
WeekC = c;
Pivot = (PreWeekH+PreWeekL+PreWeekC)/3;
R1 = 2*Pivot-PreWeekL;
R2 = Pivot+PreWeekH-PreWeekL;
R3 = PreWeekH+2*(Pivot-PreWeekL);
S1 = 2*Pivot-PreWeekH;
S2 = Pivot-PreWeekH+PreWeekL;
S3 = PreWeekL-2*(PreWeekH-Pivot);
Plot1(Pivot, "피봇포인트");
Plot2(R1, "1차저항");
Plot3(R2, "2차저항");
Plot4(S1, "1차지지");
Plot5(S2, "2차지지");
2.
Var : Pivot(0),R1(0),R2(0),R3(0),S1(0),S2(0),S3(0);
var : MonthH(0),MonthL(0),MonthC(0);
var : PreMonthH(0),PreMonthL(0),PreMonthC(0);
if date > date[1]+30 Then{
MonthH = H;
MonthL = L;
PreMonthH = MonthH[1];
PreMonthL = MonthL[1];
PreMonthC = MonthC[1];
}
if H > MonthH Then
MonthH = H;
if L < MonthL Then
MonthL = L;
MonthC = c;
Pivot = (PreMonthH+PreMonthL+PreMonthC)/3;
R1 = 2*Pivot-PreMonthL;
R2 = Pivot+PreMonthH-PreMonthL;
R3 = PreMonthH+2*(Pivot-PreMonthL);
S1 = 2*Pivot-PreMonthH;
S2 = Pivot-PreMonthH+PreMonthL;
S3 = PreMonthL-2*(PreMonthH-Pivot);
Plot1(Pivot, "피봇포인트");
Plot2(R1, "1차저항");
Plot3(R2, "2차저항");
Plot4(S1, "1차지지");
Plot5(S2, "2차지지");
3
수식은 차트의 데이터를 이용해 계산합니다.
차트의 데이트는 차트창속성에서 지정한 기준시간으로 만들어 지므로
차트창속성에서 기준시간을 시장시간이나 혹은 한국시간으로 설정하시면 됩니다.
즐거운 하루되세요
> 뉴스타트 님이 쓴 글입니다.
> 제목 : 문의드립니다
> 수고 많으세요
33695 답변 감사드립니다
분봉에는 적용하지 않습니다.
예스글로벌 일봉차트에서 서버시간기준 적용가능한 주간,월간피봇(3차)을
부탁드립니다.