커뮤니티

부탁드립니다

프로필 이미지
크라켄
2021-12-27 09:14:19
776
글번호 154865
답변완료
$,안녕하세요 아래식은 옵션월물만기후 첫날부터 만기시까지 등분한식입니다, 여기에 아래조건 추가해서 도움부탁드립니다. 1, 전월물만기후 당월물 첫날의 시가,고가,저가를 당월물만기시까지 오른쪽으로 연장하여 추세선으로 그리고 싶습니다 2, 전월물 전체 고가,저가,중심가를 당월물만기시까지 오른쪽으로 연장하여 추세선으로 그리고 싶습니다 var : month(0),nday(0),week(0); var :EX(false),HH(0),LL(0); var : t1(0),t2(0),t3(0),t4(0),t5(0),t6(0),t7(0),t8(0),t9(0),t10(0); month = int(date/100)-int(date/10000)*100; nday = date - int(date/100)*100; week = DayOfWeek(date); #선물만기 #if Month%3 == 0 and nday >= 8 and nday <= 14 and week == 4 then if nday >= 8 and nday <= 14 and week == 4 then#옵션만기 EX = true; Else EX = false; if EX == false and EX[1] == true Then{ Condition1 = true; HH = H; LL = L; } if Condition1 == true then{ if H > HH Then HH = H; if L < LL Then LL = L; var1 = HH; var2 = LL; var3 = var1-var2; plot1(var1,"Maxi"); plot2(var2+var3*0.618,"되돌림"); plot3(var2+var3*0.500,"중심"); plot4(var2+var3*0.382,"축소"); plot5(var2,"Mini"); } $$,고맙습니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-12-27 15:14:12

안녕하세요 예스스탁입니다. var : month(0),nday(0),week(0); var :EX(false),HH(0),LL(0),DD(0),HH1(0),LL1(0); var : t1(0),t2(0),t3(0),t4(0),t5(0),t6(0),t7(0),t8(0),t9(0),t10(0); month = int(date/100)-int(date/10000)*100; nday = date - int(date/100)*100; week = DayOfWeek(date); #선물만기 #if Month%3 == 0 and nday >= 8 and nday <= 14 and week == 4 then if nday >= 8 and nday <= 14 and week == 4 then#옵션만기 EX = true; Else EX = false; if EX == false and EX[1] == true Then{ Condition1 = true; DD = sDate; HH = H; LL = L; HH1 = HH[1]; LL1 = LL[1]; } if Condition1 == true then { if H > HH Then HH = H; if L < LL Then LL = L; var1 = HH; var2 = LL; var3 = var1-var2; plot1(var1,"Maxi"); plot2(var2+var3*0.618,"되돌림"); plot3(var2+var3*0.500,"중심"); plot4(var2+var3*0.382,"축소"); plot5(var2,"Mini"); if sDate == DD Then { Var4 = DayOpen; Var5 = DayHigh; Var6 = DayLow; } Plot6(Var4,"첫날시가"); Plot7(Var5,"첫날고가"); Plot8(Var6,"첫날저가"); if HH1 > 0 and LL1 > 0 Then { Plot9(HH1,"전월물최고"); Plot10(LL1,"전월물최저"); Plot11((HH1+LL1)/2,"전월물중간"); } } 즐거운 하루되세요 > 크라켄 님이 쓴 글입니다. > 제목 : 부탁드립니다 > $,안녕하세요 아래식은 옵션월물만기후 첫날부터 만기시까지 등분한식입니다, 여기에 아래조건 추가해서 도움부탁드립니다. 1, 전월물만기후 당월물 첫날의 시가,고가,저가를 당월물만기시까지 오른쪽으로 연장하여 추세선으로 그리고 싶습니다 2, 전월물 전체 고가,저가,중심가를 당월물만기시까지 오른쪽으로 연장하여 추세선으로 그리고 싶습니다 var : month(0),nday(0),week(0); var :EX(false),HH(0),LL(0); var : t1(0),t2(0),t3(0),t4(0),t5(0),t6(0),t7(0),t8(0),t9(0),t10(0); month = int(date/100)-int(date/10000)*100; nday = date - int(date/100)*100; week = DayOfWeek(date); #선물만기 #if Month%3 == 0 and nday >= 8 and nday <= 14 and week == 4 then if nday >= 8 and nday <= 14 and week == 4 then#옵션만기 EX = true; Else EX = false; if EX == false and EX[1] == true Then{ Condition1 = true; HH = H; LL = L; } if Condition1 == true then{ if H > HH Then HH = H; if L < LL Then LL = L; var1 = HH; var2 = LL; var3 = var1-var2; plot1(var1,"Maxi"); plot2(var2+var3*0.618,"되돌림"); plot3(var2+var3*0.500,"중심"); plot4(var2+var3*0.382,"축소"); plot5(var2,"Mini"); } $$,고맙습니다.