커뮤니티

조건검색문의드립니다

프로필 이미지
해피럭키
2025-11-17 11:19:57
57
글번호 228084
답변완료

첨부 이미지

첨부파일 수식오류 정정 요청드립니다 input: BBperiod(20), dv(2), Period(120), RSIPeriod(14); var: BBdn(0), t(0), R(0), var1(0), MinVolLine(0), Signal(0), LowestVol(0); BBdn := BollingerBandDown(BBPeriod, dv); R := RSI(RSIPeriod); MinVolLine := Lowest(V, Period); if CurrentBar > 1 then LowestVol := Lowest(V, Period)[1] else LowestVol := V; if V < LowestVol then begin var1 := C; if t < 1 then t := 1; end; if (t = 1) and (C < var1) and (C[1] >= var1[1]) then t := 2; if (t = 2) and (L < BBdn) and (L[1] >= BBdn[1]) then t := 3; if (t = 3) and (C > O) and (C >= var1) and (R >= 40) then t := 4; Signal := 0; if (t = 4) then begin if (C <= MinVolLine) or ((L <= MinVolLine) and (C >= MinVolLine)) or ((H >= MinVolLine) and (L <= MinVolLine)) then Signal := 1; end; Signal = 1;

종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-11-17 16:15:48

안녕하세요 예스스탁입니다. input: BBperiod(20), dv(2), Period(120), RSIPeriod(14); var: BBdn(0), t(0), R(0), var1(0), MinVolLine(0), Signal(0), LowestVol(0); BBdn = BollBandDown(BBPeriod, dv); R = RSI(RSIPeriod); MinVolLine = Lowest(V, Period); if CurrentBar > 1 then LowestVol = Lowest(V, Period)[1]; else LowestVol = V; if V < LowestVol then begin var1 = C; if t < 1 then t = 1; end; if (t == 1) and (C < var1) and (C[1] >= var1[1]) then t = 2; if (t == 2) and (L < BBdn) and (L[1] >= BBdn[1]) then t = 3; if (t == 3) and (C > O) and (C >= var1) and (R >= 40) then t = 4; Signal = 0; if (t = 4) then begin if (C <= MinVolLine) or ((L <= MinVolLine) and (C >= MinVolLine)) or ((H >= MinVolLine) and (L <= MinVolLine)) then Signal = 1; end; if Signal == 1 Then Find(1); 즐거운 하루되세요