커뮤니티

문의

프로필 이미지
레전드
2021-06-21 20:20:52
1937
글번호 150154
답변완료
외부변수 Period1 ,p1,period3 수식1 LT=lowest(L,P1); HT=highest(H,P1); NewH=valuewhen(1,H>HT(1),H); NewL=valuewhen(1,L<LT(1),L); T=ma(c,period3); Z=(NewL==low(1)&&NewL<low) or (NewH== high(1) && NewH>high); SL=valuewhen(1,Z,T); valuewhen(1,SL!=SL(1),ma(c,period3)) 수식2 t1=ma(c,period1); x=valuewhen(1,crossdown(c,t1), highestsince(1,crossup(c,t1),t1)); 수식3 t1=ma(c,period1); x=valuewhen(1,crossup(c,t1), lowestsince(1,crossdown(c,t1),t1)); 부탁드립니다
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2021-06-22 09:13:13

안녕하세요 예스스탁입니다. input : Period1(5),P1(10),Period3(20); var : LT(0),HT(0),newH(0),newL(0),T(0),Z(false),SL(0); var : t1(0),x(0),highestsince(0),y(0),lowestsince(0); LT = lowest(L,P1); HT = highest(H,P1); if H > HT[1] Then newH = H; if L < LT[1] Then newL = l; T = ma(c,period3); Z = (NewL==low[1]&&NewL<low) or (NewH== high[1] && NewH>high); if Z == true Then SL = T; SL = valuewhen(1,Z,T); if SL != SL[1] Then var1 = T; t1 = ma(c,period1); if CrossUp(C,t1) Then highestsince = t1; if highestsince > 0 and t1 > highestsince Then highestsince = t1; if CrossDown(C,t1) Then lowestsince = t1; if lowestsince > 0 and t1 < lowestsince Then lowestsince = t1; if CrossDown(c,t1) Then Var2 = highestsince; if CrossUp(c,t1) Then Var3 = lowestsince; if var1 > 0 Then Plot1(var1,"수식1"); if var2 > 0 Then Plot2(var2,"수식2"); if var3 > 0 Then Plot3(var3,"수식3"); 즐거운 하루되세요 > 레전드 님이 쓴 글입니다. > 제목 : 문의 > 외부변수 Period1 ,p1,period3 수식1 LT=lowest(L,P1); HT=highest(H,P1); NewH=valuewhen(1,H>HT(1),H); NewL=valuewhen(1,L<LT(1),L); T=ma(c,period3); Z=(NewL==low(1)&&NewL<low) or (NewH== high(1) && NewH>high); SL=valuewhen(1,Z,T); valuewhen(1,SL!=SL(1),ma(c,period3)) 수식2 t1=ma(c,period1); x=valuewhen(1,crossdown(c,t1), highestsince(1,crossup(c,t1),t1)); 수식3 t1=ma(c,period1); x=valuewhen(1,crossup(c,t1), lowestsince(1,crossdown(c,t1),t1)); 부탁드립니다