커뮤니티

수식 좀 변경 부탁드립니다.

프로필 이미지
쌀사비팔
2010-01-18 11:27:21
706
글번호 27509
답변완료
매수할 때 조건을 추가해 주십시오. *전일 날짜 다음날에 최초 매수가 되는데요... -전일 종가 대비 당일 시가가 4%초과 상승하면 매수하지 않음. (즉, 4%를 초과하는 갭상승 일때는 매수 제외) 감사합니다. -------------------------------- input : 전일날짜(20100114); if stime == 150000 and MarketPosition == 0 and sdate == 전일날짜 Then buy("b1",AtMarket); if MarketPosition == 1 Then{ if CurrentEntries == 1 Then buy("b2",atlimit,EntryPrice*0.8); if CurrentEntries == 2 Then buy("b3",atlimit,EntryPrice*0.6); if CurrentEntries == 3 Then buy("b4",atlimit,EntryPrice*0.4); if CurrentEntries == 4 Then buy("b5",atlimit,EntryPrice*0.2); exitlong("bx",atlimit,AvgEntryPrice*1.05); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2010-01-18 16:35:53

안녕하세요 예스스탁입니다. input : 전일날짜(20100114); if stime == 150000 and MarketPosition == 0 and sdate == 전일날짜 and NextBarOpen < C*1.04 Then buy("b1",AtMarket); if MarketPosition == 1 Then{ if CurrentEntries == 1 Then buy("b2",atlimit,EntryPrice*0.8); if CurrentEntries == 2 Then buy("b3",atlimit,EntryPrice*0.6); if CurrentEntries == 3 Then buy("b4",atlimit,EntryPrice*0.4); if CurrentEntries == 4 Then buy("b5",atlimit,EntryPrice*0.2); exitlong("bx",atlimit,AvgEntryPrice*1.05); } 즐거운 하루되세요 > 쌀사비팔 님이 쓴 글입니다. > 제목 : 수식 좀 변경 부탁드립니다. > 매수할 때 조건을 추가해 주십시오. *전일 날짜 다음날에 최초 매수가 되는데요... -전일 종가 대비 당일 시가가 4%초과 상승하면 매수하지 않음. (즉, 4%를 초과하는 갭상승 일때는 매수 제외) 감사합니다. -------------------------------- input : 전일날짜(20100114); if stime == 150000 and MarketPosition == 0 and sdate == 전일날짜 Then buy("b1",AtMarket); if MarketPosition == 1 Then{ if CurrentEntries == 1 Then buy("b2",atlimit,EntryPrice*0.8); if CurrentEntries == 2 Then buy("b3",atlimit,EntryPrice*0.6); if CurrentEntries == 3 Then buy("b4",atlimit,EntryPrice*0.4); if CurrentEntries == 4 Then buy("b5",atlimit,EntryPrice*0.2); exitlong("bx",atlimit,AvgEntryPrice*1.05); }