커뮤니티

문의 드립니다..

프로필 이미지
호시우보
2016-03-07 21:10:20
58
글번호 96062
답변완료
아래 일목과 + 스토케스틱 2가지 조건이 충족할 때 신호가 발생하도록 부탁드립니다. 계속 에러가 나오네요.. 감사합니다... input : P(60); var : T(0),Bcond(false),Scond(false); value3 = ma(C,P); var1 = ma(c,20); var2 = (Highest(High, 25)[5] + Lowest(Low, 25)[5]) / 2; Input : Period(25), Period1(5), Period2(5); value4 = StochasticsK(Period,Period1); value5 = StochasticsD(Period,Period1,Period2); if stime >= 090000 and stime < 145000 and crossup(C,var1) Then{ T = 1; Bcond = false; } if stime >= 090000 and stime < 145000 and CrossDown(C,var1) Then{ T = -1; Scond = false; } if stime < 145000 and T == 1 and CrossUP(value4, value5) Then{ if L >= var2+PriceScale*2 Then Bcond = true; if Bcond == true and C > value3 then buy("b",atlimit,var1); } if stime < 145000 and T == -1 and CrossDown(value4, value5) Then{ if H <= var2-PriceScale*2 Then Scond = true; if Scond == true and C < value3 then sell("s",atlimit,var1); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-03-08 09:07:53

안녕하세요 예스스탁입니다. 올려주신 식 문법적으로 오류가 나는 부분이 없고 차트에 적용하면 신호도 작성하신 내용을 나오고 있습니다. 오떤 오류이신지 좀더 자세한 내용 올려주시기 바랍니다. 즐거운 하루되세요 > 호시우보 님이 쓴 글입니다. > 제목 : 문의 드립니다.. > 아래 일목과 + 스토케스틱 2가지 조건이 충족할 때 신호가 발생하도록 부탁드립니다. 계속 에러가 나오네요.. 감사합니다... input : P(60); var : T(0),Bcond(false),Scond(false); value3 = ma(C,P); var1 = ma(c,20); var2 = (Highest(High, 25)[5] + Lowest(Low, 25)[5]) / 2; Input : Period(25), Period1(5), Period2(5); value4 = StochasticsK(Period,Period1); value5 = StochasticsD(Period,Period1,Period2); if stime >= 090000 and stime < 145000 and crossup(C,var1) Then{ T = 1; Bcond = false; } if stime >= 090000 and stime < 145000 and CrossDown(C,var1) Then{ T = -1; Scond = false; } if stime < 145000 and T == 1 and CrossUP(value4, value5) Then{ if L >= var2+PriceScale*2 Then Bcond = true; if Bcond == true and C > value3 then buy("b",atlimit,var1); } if stime < 145000 and T == -1 and CrossDown(value4, value5) Then{ if H <= var2-PriceScale*2 Then Scond = true; if Scond == true and C < value3 then sell("s",atlimit,var1); }