커뮤니티
시초가주문2
2011-08-19 20:39:55
892
글번호 42071
> https://www.yesstock.com/SystemTrading/Example/board/view.asp?db=board100044&num=205&pageno=1&startpage=1&Site=&L_Code=14&M_Code=9
if index >= 0 then 문장을 삭제해도 결과는 같지 않나요?
========== 원본 예제=========
var : maV(0);
maV = ma(C,20);
if index >= 0 then {
if maV > maV[1] then
buy("매수", atmarket);
}
if barssinceentry() >= 0 then
exitlong("매수청산", atmarket);
=========== 수정본 ==========
var : maV(0);
maV = ma(C,20);
if maV > maV[1] then
buy("매수", atmarket);
if barssinceentry() >= 0 then
exitlong("매수청산", atmarket);
답변 1
예스스탁 예스스탁 답변
2011-08-22 09:21:48
안녕하세요
예스스탁입니다.
해당 문장 삭제해도 결과는 같습니다.
즐거운 하루되세요
> 행복충전 님이 쓴 글입니다.
> 제목 : 시초가주문2
> > https://www.yesstock.com/SystemTrading/Example/board/view.asp?db=board100044&num=205&pageno=1&startpage=1&Site=&L_Code=14&M_Code=9
if index >= 0 then 문장을 삭제해도 결과는 같지 않나요?
========== 원본 예제=========
var : maV(0);
maV = ma(C,20);
if index >= 0 then {
if maV > maV[1] then
buy("매수", atmarket);
}
if barssinceentry() >= 0 then
exitlong("매수청산", atmarket);
=========== 수정본 ==========
var : maV(0);
maV = ma(C,20);
if maV > maV[1] then
buy("매수", atmarket);
if barssinceentry() >= 0 then
exitlong("매수청산", atmarket);