커뮤니티

문의드립니다

프로필 이미지
회원
2005-08-24 06:29:27
1167
글번호 8083
답변완료
안녕하세요? 시스템 업그레이드에 감사드립니다. 저는 30분 챠트입니다. 챠트 주기가 맞는지 체크할려면 프로그램에서 다음 문장이 어느 위치에 있어야 하는지 알려주세요. 또 문장이 맞습니까? If BarInterval() == 30 and DataCompress() == 2 then (저의 프로그램형태) var:ma5(0),ma20(0),ma30(0),ma60(0); ma5= ma(c,5);ma20= ma(c,20); ma60= ma(c,60); if date != date[1] then{ //전일변수값 초기화 atmarket ambandup=0; Hma60dn=0; } ///조건문/// if stime==140000&&accumn(iff(ma13[1]>ma13,1,0),22)>12&&ma20>ma60 then sell("매도",onclose,def,cts);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2005-08-25 14:29:46

안녕하세요 예스스탁입니다. 차트의 주기를 확인하는 식을 조건문에 삽입하면 현재차트 주기가 설정된 주기와 맡는지 확인 후 진입하게 됩니다. var : ma5(0),ma20(0),ma30(0),ma60(0),ambandup(0),Hma60dn(0),ma13(0),cts(0); ma5 = ma(c,5); ma20 = ma(c,20); ma60= ma(c,60); if date != date[1] then{ //전일변수값 초기화 atmarket ambandup=0; Hma60dn=0; } ///조건문/// If BarInterval() == 30 and DataCompress() == 2 then { if stime==140000 && accumn(iff(ma13[1]>ma13,1,0),22) >12 && ma20>ma60 then sell("매도",onclose,def,cts); } 즐거운 하루되세요 > CJ_bilgu 님이 쓴 글입니다. > 제목 : 문의드립니다 > 안녕하세요? 시스템 업그레이드에 감사드립니다. 저는 30분 챠트입니다. 챠트 주기가 맞는지 체크할려면 프로그램에서 다음 문장이 어느 위치에 있어야 하는지 알려주세요. 또 문장이 맞습니까? If BarInterval() == 30 and DataCompress() == 2 then (저의 프로그램형태) var:ma5(0),ma20(0),ma30(0),ma60(0); ma5= ma(c,5);ma20= ma(c,20); ma60= ma(c,60); if date != date[1] then{ //전일변수값 초기화 atmarket ambandup=0; Hma60dn=0; } ///조건문/// if stime==140000&&accumn(iff(ma13[1]>ma13,1,0),22)>12&&ma20>ma60 then sell("매도",onclose,def,cts);