커뮤니티
질문드립니다...
2013-01-11 17:31:29
262
글번호 58077
Condition1 = ExitDate(1) ==sdate and PositionProfit(1) >= PriceScale*N ;
Condition2= sTime>090113;
if MarketPosition == 0 and
Condition1 == false and Condition2 and
(crossup(c,value2) and crossup(c,ma(c,20)) and
(crossup(c,value10[4])
or crossup(c,value4[10]))) Then
buy("a",AtStop,Value2);
매일 2시45분 청산이고요 이봉 처럼 시가 첫봉에 매수가 가끔되는 이유가 궁금합니다.
첨부의 그림 첫봉은 09시35초가 첫봉입니다.
stime 090113 초 이후 매수이면 신호가 안나가야 하지않나요?
수식이 잘못된거 같기도 하구요..암튼 당일 첫봉에 진입하지 않는 명령어나 조건
부탁드립니다..감사합니다..
- 1. 58467_사본 -캡처.jpg (0.01 MB)
답변 1
예스스탁 예스스탁 답변
2013-01-11 18:43:49
안녕하세요
예스스탁입니다.
atstop신호타입은 if조건이 만족하면
atstop뒤의 가격으로 다음봉의 시세를 감시해 나가게 되므로
당일 마지막봉에서 if조건이 만족하면
다음날 시가에 신호가 발생하게 됩니다.
아래와 같이 시간조건을 추가하시면 첫봉에 신호가 발생하는것을
막으실수 있습니다.
Condition1 = ExitDate(1) ==sdate and PositionProfit(1) >= PriceScale*N ;
Condition2= sTime>090113;
if stime < 150000 and
MarketPosition == 0 and Condition1 == false and Condition2 and
(crossup(c,value2) and crossup(c,ma(c,20)) and
(crossup(c,value10[4])
or crossup(c,value4[10]))) Then
buy("a",AtStop,Value2);
즐거운 하루되세요
> 어게인1999 님이 쓴 글입니다.
> 제목 : 질문드립니다...
> Condition1 = ExitDate(1) ==sdate and PositionProfit(1) >= PriceScale*N ;
Condition2= sTime>090113;
if MarketPosition == 0 and
Condition1 == false and Condition2 and
(crossup(c,value2) and crossup(c,ma(c,20)) and
(crossup(c,value10[4])
or crossup(c,value4[10]))) Then
buy("a",AtStop,Value2);
매일 2시45분 청산이고요 이봉 처럼 시가 첫봉에 매수가 가끔되는 이유가 궁금합니다.
첨부의 그림 첫봉은 09시35초가 첫봉입니다.
stime 090113 초 이후 매수이면 신호가 안나가야 하지않나요?
수식이 잘못된거 같기도 하구요..암튼 당일 첫봉에 진입하지 않는 명령어나 조건
부탁드립니다..감사합니다..
이전글