커뮤니티

질문입니다..

프로필 이미지
회원
2004-07-26 14:21:57
1193
글번호 4627
답변완료
input : sp(5), mp(20), startTime(90000), endTime(92959); var : short(0), mid(0); short=ma(C,sp); mid=ma(C,mp); if short>mid and stime>93000 and stime<143000 and C>timehigh(startTime,endTime) then buy(); if crossdown(short,mid*0.998) or crossdown(C,timeHigh(startTime,endTime)) or stime==150000 then exitlong(); 신규 매수조건은 위의식대로 설정하면 됩니다만.. 재진입시 저 조건외에 이전 매수단가를 넘어서는 가격일경우에 재진입을 허용하는 조건을 추가 하고 싶습니다.. 그럼 부탁드리겠습니다.. 수고하십시오..
기타
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2004-07-27 13:09:16

안녕하세요 예스스탁입니다. 문의하신 식은 다음과 같습니다. input : sp(5), mp(20), startTime(90000), endTime(92959); var : short(0), mid(0), BuyVal(0); short=ma(C,sp); mid=ma(C,mp); if short > mid and stime > 93000 and stime < 143000 and C > timehigh(startTime,endTime) then{ Buy("매수"); BuyVal = c; } if C > BuyVal then Buy("재매수"); if crossdown(short, mid*0.998) or crossdown(C, timeHigh(startTime,endTime)) or stime == 145000 then Exitlong(); 감사합니다. > HH_biami74 님이 쓴 글입니다. > 제목 : 질문입니다.. > input : sp(5), mp(20), startTime(90000), endTime(92959); var : short(0), mid(0); short=ma(C,sp); mid=ma(C,mp); if short>mid and stime>93000 and stime<143000 and C>timehigh(startTime,endTime) then buy(); if crossdown(short,mid*0.998) or crossdown(C,timeHigh(startTime,endTime)) or stime==150000 then exitlong(); 신규 매수조건은 위의식대로 설정하면 됩니다만.. 재진입시 저 조건외에 이전 매수단가를 넘어서는 가격일경우에 재진입을 허용하는 조건을 추가 하고 싶습니다.. 그럼 부탁드리겠습니다.. 수고하십시오..