커뮤니티
수식부탁드립니다---------
2012-03-15 08:54:27
478
글번호 48955
//(1)
Condition11 == true and sTime>090100 and sTime<143000
and dayPL > -(당일손절/BigPointValue) Then{
if MarketPosition == 0 and Condition1==True Then{
buy("b1",AtStop,상상기준);
sell("s1",AtStop,하하기준);
//(2)
Condition11 == true and sTime>090100 and sTime<143000 and highest(H,20)-lowest(L,20) >= C*0.003
and dayPL > -(당일손절/BigPointValue) Then{
if MarketPosition == 0 and Condition1==True Then{
buy("b1",AtStop,상상기준);
sell("s1",AtStop,하하기준);
1) 과 2)가 다른점은 2)에서는 " highest(H,20)-lowest(L,20) >= C*0.003"조건을 추가하여
추가조건에 해당안되면 진입을 안해야되는데 왜 첨부처럼 늦게 진입하죠?
수정해주시면 감사하겠습니다
- 1. 진입지점.xls (0.02 MB)
답변 1
예스스탁 예스스탁 답변
2012-03-15 14:37:54
안녕하세요
예스스탁입니다.
문의하신 내용을 정확히 이해하지 못했습니다.
어떤 내용을 수정해 드려야 할지 모르겠습니다.
1)번식은 highest(H,20)-lowest(L,20) >= C*0.003 조건이 없기에
20개봉 진동폭이 C*0.003보다 작아도 진입을 하며
2)번식은 highest(H,20)-lowest(L,20) >= C*0.003 조건으로
20개봉 진동폭이 C*0.003이상일때만 진입하게 하므로
1)에서 못나오고 이후에 전체 조건이 모두 만족할때 발생한것 뿐입니다.
즐거운 하루되세요
> leekss1 님이 쓴 글입니다.
> 제목 : 수식부탁드립니다---------
>
//(1)
Condition11 == true and sTime>090100 and sTime<143000
and dayPL > -(당일손절/BigPointValue) Then{
if MarketPosition == 0 and Condition1==True Then{
buy("b1",AtStop,상상기준);
sell("s1",AtStop,하하기준);
//(2)
Condition11 == true and sTime>090100 and sTime<143000 and highest(H,20)-lowest(L,20) >= C*0.003
and dayPL > -(당일손절/BigPointValue) Then{
if MarketPosition == 0 and Condition1==True Then{
buy("b1",AtStop,상상기준);
sell("s1",AtStop,하하기준);
1) 과 2)가 다른점은 2)에서는 " highest(H,20)-lowest(L,20) >= C*0.003"조건을 추가하여
추가조건에 해당안되면 진입을 안해야되는데 왜 첨부처럼 늦게 진입하죠?
수정해주시면 감사하겠습니다
다음글
이전글