커뮤니티

분봉거래 차트에서 일봉 조건을 입력하는 식 요청

프로필 이미지
이형지
2019-11-11 20:04:22
132
글번호 133556
답변완료
아래 해외선물(쿠르드오일) 분봉으로 매매하고 있습니다. 일봉 기준 투자심리도 기간(20) 퍼센트(40) 이하일때는 진입금지 조건을 넣고 싶습니다. ----------------------------------------------------------------------------- Input : RSIPeriod(14),RSI매수값(30),SimPeriod(14),심리도값(20); Input : N1(1); Input : EPeriod(50), EPercent(0.3); Input : RSIPeriod2(14),RSI청산값(76),M1(2); Input : 즉시익절1(115),즉시손절1(165); input : 진입횟수(2); var : BBmd(0),BBup(0),BBdn(0),CCIv(0),entry(0); var :DNline1(0),RSIV(0),Simri(0),RSIVV(0); RSIV = RSI(RSIPeriod); RSIVV = RSI(RSIPeriod2); Simri = Simrido(SimPeriod); Dnline1 = EnvelopeDown(EPeriod, EPercent); if bdate != bdate[1] Then Entry = 0; if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then entry = entry+1; if entry < 진입횟수 then { if data2(countif( RSIV < RSI매수값 and Simri < 심리도값 ,N1 ) == N1 and C < dnline1) Then buy("매수"); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-11-12 15:34:05

안녕하세요 예스스탁입니다. 올려주신 수식에 각 지표들(RSIV,RSIVV,simri,Dnline1)은 data1기준이고 조건은 data2함수로 묶여 있습니다. data2(countif( RSIV < RSI매수값 and Simri < 심리도값 ,N1 ) == N1 and C < dnline1) 내용 확인이 어렵습니다. 올려주신 수식에서 data2가 일봉이시면 data2(Simrido(20) > 40) 조건을 if문에 추가하시면 됩니다. data2가 일봉이 아니면 일봉데이타를 data3으로 추가하시고 data3(Simrido(20) > 40) 조건을 추가하시면 됩니다. 즐거운 하루되세요 > 이형지 님이 쓴 글입니다. > 제목 : 분봉거래 차트에서 일봉 조건을 입력하는 식 요청 > 아래 해외선물(쿠르드오일) 분봉으로 매매하고 있습니다. 일봉 기준 투자심리도 기간(20) 퍼센트(40) 이하일때는 진입금지 조건을 넣고 싶습니다. ----------------------------------------------------------------------------- Input : RSIPeriod(14),RSI매수값(30),SimPeriod(14),심리도값(20); Input : N1(1); Input : EPeriod(50), EPercent(0.3); Input : RSIPeriod2(14),RSI청산값(76),M1(2); Input : 즉시익절1(115),즉시손절1(165); input : 진입횟수(2); var : BBmd(0),BBup(0),BBdn(0),CCIv(0),entry(0); var :DNline1(0),RSIV(0),Simri(0),RSIVV(0); RSIV = RSI(RSIPeriod); RSIVV = RSI(RSIPeriod2); Simri = Simrido(SimPeriod); Dnline1 = EnvelopeDown(EPeriod, EPercent); if bdate != bdate[1] Then Entry = 0; if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then entry = entry+1; if entry < 진입횟수 then { if data2(countif( RSIV < RSI매수값 and Simri < 심리도값 ,N1 ) == N1 and C < dnline1) Then buy("매수"); }