커뮤니티

부탁드립니다.

프로필 이미지
미카엘
2014-11-08 21:52:03
138
글번호 80208
답변완료
데이터2와 데이타3의 RSI 침체LPercent(32)와 과열SPercent(70)을 사용하려 합니다. 아래 주종목의 선언부와 식에 맞게 데이타2와 데이타 3의 RSI침체LPercent(32)와 RSI과열SPercent(70)을 추가해 주세요. Input : Period(12), LPercent(32), SPercent(70); Var : value(0); var : EntryCnt(0),entry(0),ST(0); # 진입 시간 제한 if stime == 090000 or (stime > 090000 and stime[1] < 090000) Then{ entry = 0; ST = TimeToMinutes(stime); } # 진입횟수 if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then entry = entry+1; value = RSI(Period); # 첫봉 종가 급등 관련 조치(var1) if dayindex+1 == 1 Then var1 = C; # 매수 If (entry < 1 and TimeToMinutes(stime) < ST+126 ) then { if (dayindex+1 <= 5 and A매수조건 ) or (dayindex+1 >= 6 and B매수조건 ) Then { if (var1 < DayClose(1)*1.9 and dayindex+1 >= 1) Or (var1 >= DayClose(1)*1.9 and dayindex+1 >= 3) Then buy(); } }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-11-10 11:11:57

안녕하세요 예스스탁입니다. Input : Period1(12),LPercent1(32), SPercent1(70); Input : Period2(12),LPercent2(32), SPercent2(70); Input : Period3(12),LPercent3(32), SPercent3(70); Var : RSIV1(0,data1),RSIV2(0,data2),RSIV3(0,data3); var : EntryCnt(0,data1),entry(0,data1),ST(0,data1); # 진입 시간 제한 if data1(stime == 090000 or (stime > 090000 and stime[1] < 090000)) Then{ entry = 0; ST = TimeToMinutes(stime); } # 진입횟수 if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then entry = entry+1; RSIV1 = data1(RSI(Period1)); RSIV2 = data2(RSI(Period2)); RSIV3 = data3(RSI(Period3)); # 첫봉 종가 급등 관련 조치(var1) if data1(dayindex+1 == 1) Then var1 = C; # 매수 If (entry < 1 and TimeToMinutes(stime) < ST+126 ) then { if (dayindex+1 <= 5 and A매수조건 ) or (dayindex+1 >= 6 and B매수조건 ) Then { if (var1 < DayClose(1)*1.9 and dayindex+1 >= 1) Or (var1 >= DayClose(1)*1.9 and dayindex+1 >= 3) Then buy(); } } 즐거운 하루되세요 > 미카엘 님이 쓴 글입니다. > 제목 : 부탁드립니다. > 데이터2와 데이타3의 RSI 침체LPercent(32)와 과열SPercent(70)을 사용하려 합니다. 아래 주종목의 선언부와 식에 맞게 데이타2와 데이타 3의 RSI침체LPercent(32)와 RSI과열SPercent(70)을 추가해 주세요. Input : Period(12), LPercent(32), SPercent(70); Var : value(0); var : EntryCnt(0),entry(0),ST(0); # 진입 시간 제한 if stime == 090000 or (stime > 090000 and stime[1] < 090000) Then{ entry = 0; ST = TimeToMinutes(stime); } # 진입횟수 if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then entry = entry+1; value = RSI(Period); # 첫봉 종가 급등 관련 조치(var1) if dayindex+1 == 1 Then var1 = C; # 매수 If (entry < 1 and TimeToMinutes(stime) < ST+126 ) then { if (dayindex+1 <= 5 and A매수조건 ) or (dayindex+1 >= 6 and B매수조건 ) Then { if (var1 < DayClose(1)*1.9 and dayindex+1 >= 1) Or (var1 >= DayClose(1)*1.9 and dayindex+1 >= 3) Then buy(); } }