커뮤니티

문의드립니다.

프로필 이미지
호시우보
2016-03-08 15:26:53
62
글번호 96089
답변완료
1- 아래 일목 신호에 2- 스토케스틱 크로스 방향과 일치하는 신호만 진입하고 싶습니다. (일목신호) ================================================ Input : P(60); var : T(0),Bcond(false),Scond(false); var1 = ma(c,20); var2 = (Highest(High, 25)[5] + Lowest(Low, 25)[5]) / 2; if crossup(C,var1) Then{ T = 1; Bcond = false; } if CrossDown(C,var1) Then{ T = -1; Scond = false; } if T == 1 Then{ if L >= var2+PriceScale*2 Then Bcond = true; if Bcond == true and C > value3 then buy("b",atlimit,var1); } if T == -1 Then{ if H <= var2-PriceScale*2 Then Scond = true; if Scond == true and C < value3 then sell("s",atlimit,var1); } (스토케스틱 신호) ================================ Input : Period(25), Period1(5), Period2(5); value1 = StochasticsK(Period,Period1); value2 = StochasticsD(Period,Period1,Period2); If stime >= 090000 and stime < 143000 and CrossUP(value1, value2) Then { Buy(); } If stime >= 090000 and stime < 143000 and CrossDown(value1, value2) Then { sell(); } 위의 2개 조건이 맞을 때 신호가 나오도록 부탁드립니다. 감사합니다..
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-03-08 15:56:16

안녕하세요 예스스탁입니다. Input : P(60); Input : Period(25), Period1(5), Period2(5); var : T(0),Bcond(false),Scond(false); var1 = ma(c,20); var2 = (Highest(High, 25)[5] + Lowest(Low, 25)[5]) / 2; value1 = StochasticsK(Period,Period1); value2 = StochasticsD(Period,Period1,Period2); if crossup(C,var1) Then{ T = 1; Bcond = false; } if CrossDown(C,var1) Then{ T = -1; Scond = false; } if T == 1 Then{ if L >= var2+PriceScale*2 Then Bcond = true; if Bcond == true and C > value3 and stime >= 090000 and stime < 143000 and CrossUP(value1, value2) then buy("b",atlimit,var1); } if T == -1 Then{ if H <= var2-PriceScale*2 Then Scond = true; if Scond == true and C < value3 and stime >= 090000 and stime < 143000 and CrossDown(value1, value2) then sell("s",atlimit,var1); } plot1(diff); 즐거운 하루되세요 > 호시우보 님이 쓴 글입니다. > 제목 : 문의드립니다. > 1- 아래 일목 신호에 2- 스토케스틱 크로스 방향과 일치하는 신호만 진입하고 싶습니다. (일목신호) ================================================ Input : P(60); var : T(0),Bcond(false),Scond(false); var1 = ma(c,20); var2 = (Highest(High, 25)[5] + Lowest(Low, 25)[5]) / 2; if crossup(C,var1) Then{ T = 1; Bcond = false; } if CrossDown(C,var1) Then{ T = -1; Scond = false; } if T == 1 Then{ if L >= var2+PriceScale*2 Then Bcond = true; if Bcond == true and C > value3 then buy("b",atlimit,var1); } if T == -1 Then{ if H <= var2-PriceScale*2 Then Scond = true; if Scond == true and C < value3 then sell("s",atlimit,var1); } (스토케스틱 신호) ================================ Input : Period(25), Period1(5), Period2(5); value1 = StochasticsK(Period,Period1); value2 = StochasticsD(Period,Period1,Period2); If stime >= 090000 and stime < 143000 and CrossUP(value1, value2) Then { Buy(); } If stime >= 090000 and stime < 143000 and CrossDown(value1, value2) Then { sell(); } 위의 2개 조건이 맞을 때 신호가 나오도록 부탁드립니다. 감사합니다..