커뮤니티

모의투자 문의드립니다.

프로필 이미지
감자골2
2011-05-14 14:58:03
652
글번호 38616
답변완료
제가 모의투자에 적용할때 매수포지션일때는 input : 조건(1); //조건1이면 첫봉에서 매수, 조건0이면 첫봉에서 매도 if 조건 == 1 Then if dayindex == 0 then buy(); if CrossUp( C, ma(C,10)) and C > O then exitshort("bx",AtMarket); if CrossDown(C, ma(C,10)) and C < O then exitlong("sx",AtMarket); SetStopEndofday(150000); 매도포지션일때는 input : 조건(1); //조건1이면 첫봉에서 매수, 조건0이면 첫봉에서 매도 if 조건 == 0 Then if dayindex == 0 then buy(); if CrossUp( C, ma(C,10)) and C > O then exitshort("bx",AtMarket); if CrossDown(C, ma(C,10)) and C < O then exitlong("sx",AtMarket); SetStopEndofday(150000); 이렇게따로따로 만들어서 매수포지션일때는조건1을쓰고, 매도포지션일때는조건0을 선물3분봉차트를 띄어놓고 ,시스템적용을 하면되는겁니까?
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-05-16 11:17:07

안녕하세요 예스스탁입니다. 매수와 매도를 분리하실 경우는 따로 작성해 주시면 됩니다. 1. 매수-매수청산 if dayindex == 0 then buy(); if CrossDown(C, ma(C,10)) and C < O then exitlong("sx",AtMarket); SetStopEndofday(150000); 2. 매도-매도청산 if dayindex == 0 then sell(); if CrossUp( C, ma(C,10)) and C > O then exitshort("bx",AtMarket); SetStopEndofday(150000); 즐거운 하루되세요 > 감자골2 님이 쓴 글입니다. > 제목 : 모의투자 문의드립니다. > 제가 모의투자에 적용할때 매수포지션일때는 input : 조건(1); //조건1이면 첫봉에서 매수, 조건0이면 첫봉에서 매도 if 조건 == 1 Then if dayindex == 0 then buy(); if CrossUp( C, ma(C,10)) and C > O then exitshort("bx",AtMarket); if CrossDown(C, ma(C,10)) and C < O then exitlong("sx",AtMarket); SetStopEndofday(150000); 매도포지션일때는 input : 조건(1); //조건1이면 첫봉에서 매수, 조건0이면 첫봉에서 매도 if 조건 == 0 Then if dayindex == 0 then buy(); if CrossUp( C, ma(C,10)) and C > O then exitshort("bx",AtMarket); if CrossDown(C, ma(C,10)) and C < O then exitlong("sx",AtMarket); SetStopEndofday(150000); 이렇게따로따로 만들어서 매수포지션일때는조건1을쓰고, 매도포지션일때는조건0을 선물3분봉차트를 띄어놓고 ,시스템적용을 하면되는겁니까?