커뮤니티

문의드립니다

프로필 이미지
처음처럼22
2025-10-17 08:44:59.0
49
글번호 226971
답변완료


Inputs: Period(240), Smooth(5), Thr(0.95), UseAutoScale(true), ScaleFix(10000);

Vars: U(0), D(0), SU(0), SD(0),

FlowRaw(0), Flow(0), Slope(0), Col(magenta), Scale(0);


If C > C[1] Then begin

U = V; D = 0;

end

Else If C < C[1] Then begin

U = 0; D = V;

end

Else begin

U = V * 0.95;

D = V * 0.95;

end;


SU = SummationRec(U, Period);

SD = SummationRec(D, Period);


If (SU + SD) <> 0 Then

FlowRaw = (SU - SD) / (SU + SD);

Else

FlowRaw = 0;


Flow = TXAverage(Upvol/DownVol,5,20,60);


Slope = Flow - Flow[1];

If Slope > 0 Then Col = Magenta;

buy();

Else If Slope < 0 Then Col = Cyan;

sell();

조건이 갖춰졌을때 처음에만 신호가나올수있게 해주세요


시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-10-17 13:13:28.0

안녕하세요
예스스탁입니다.

SU = SummationRec(U, Period); SD = SummationRec(D, Period);

올리신 수식에 위 내용이 맞는지 모르겠습니다. 일정봉수 값을 합산하는 함수는 AccumN입니다.
SummationRec은 역수를 취해 합하는 함수입니다. 일정봉수 U와 D를 합하는 내용이 맞으시면 AccumN으로 변경하시기 바랍니다.
수식은 그대로 작성해 드립니다.

Inputs: Period(240), Smooth(5), Thr(0.95), UseAutoScale(true), ScaleFix(10000); Vars: U(0), D(0), SU(0), SD(0), FlowRaw(0), Flow(0), Slope(0), Col(magenta), Scale(0); If C > C[1] Then begin U = V; D = 0; end Else If C < C[1] Then begin U = 0; D = V; end Else begin U = V * 0.95; D = V * 0.95; end; SU = SummationRec(U, Period); SD = SummationRec(D, Period); If (SU + SD) <> 0 Then FlowRaw = (SU - SD) / (SU + SD); Else FlowRaw = 0; Flow = TXAverage(Upvol/DownVol,5,20,60); Slope = Flow - Flow[1]; if CrossUp(Slope,0) Then Buy(); if CrossDown(slope,0) Then Sell();

즐거운 하루되세요