커뮤니티

수식부탁드립니다

프로필 이미지
뎅이요
2019-06-12 05:29:19
329
글번호 129354
답변완료
예스스탁에 사용가능 하도록 변경 부탁 드립니다 Params : Price(close), Length(14), nAtrs(2), Mult(1), nEff(5), nTrail(5); Vars : UpBand(0), DownBand(0), HighV(0), LowV(0), Cnt(0); UpBand = Ma(Price, Length) + Ma(TrueRange, Length) * nAtrs; DownBand = Ma(Price, Length) - Ma(TrueRange, Length) * nAtrs; HighV = abs(UpBand - Ma(Price, Length)); LowV = abs(Ma(Price, Length) - DownBand); Cnt = Cnt + 1; IF CrossUp(Price, UpBand) or CrossDown(Price, DownBand) Then Cnt = 1; IF Price > UpBand and Cnt <= nEff Then Buy("BUY", AtStop, H[Cnt] + (HighV * Mult), DEF);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-06-12 13:28:51

안녕하세요 예스스탁입니다. input : Price(close), Length(14), nAtrs(2), Mult(1), nEff(5), nTrail(5); Vars : UpBand(0), DownBand(0), HighV(0), LowV(0), Cnt(0); UpBand = Ma(Price, Length) + Ma(TrueRange, Length) * nAtrs; DownBand = Ma(Price, Length) - Ma(TrueRange, Length) * nAtrs; HighV = abs(UpBand - Ma(Price, Length)); LowV = abs(Ma(Price, Length) - DownBand); Cnt = Cnt + 1; IF CrossUp(Price, UpBand) or CrossDown(Price, DownBand) Then Cnt = 1; IF Price > UpBand and Cnt <= nEff Then Buy("BUY", AtStop, H[Cnt] + (HighV * Mult)); 즐거운 하루되세요 > 뎅이요 님이 쓴 글입니다. > 제목 : 수식부탁드립니다 > 예스스탁에 사용가능 하도록 변경 부탁 드립니다 Params : Price(close), Length(14), nAtrs(2), Mult(1), nEff(5), nTrail(5); Vars : UpBand(0), DownBand(0), HighV(0), LowV(0), Cnt(0); UpBand = Ma(Price, Length) + Ma(TrueRange, Length) * nAtrs; DownBand = Ma(Price, Length) - Ma(TrueRange, Length) * nAtrs; HighV = abs(UpBand - Ma(Price, Length)); LowV = abs(Ma(Price, Length) - DownBand); Cnt = Cnt + 1; IF CrossUp(Price, UpBand) or CrossDown(Price, DownBand) Then Cnt = 1; IF Price > UpBand and Cnt <= nEff Then Buy("BUY", AtStop, H[Cnt] + (HighV * Mult), DEF);