커뮤니티
문의 드립니다.
2018-04-23 22:38:09
100
글번호 118401
타주기 시스템식 부탁드립니다...
Input : Period(20), Period1(10);
var : Sigma(0);
Sigma = (C-ma(C,Period))/STD(C,Period);
if crossup(Sigma,-2) Then
buy();
if MarketPosition == 1 and countif(crossup(sigma,2),BarsSinceEntry) < 1 and
CrossDown(sigma,-2) Then
ExitLong();
if CrossDown(Sigma,2) Then
Sell();
if MarketPosition == 1 and countif(crossup(sigma,-2),BarsSinceEntry) < 1 and
CrossDown(sigma,2) Then
ExitShort();
답변 1
예스스탁 예스스탁 답변
2018-04-24 17:24:56
안녕하세요
예스스탁입니다.
참조데이터 이용해 기본차트에 신호를 발생하는 식으로 변경해 드립니다.
참조데이터는 차트왼쪽 상단의 종목선택 버튼 중 오른쪽 클릭하시면 추가 가능합니다.
참조데이터는 기본차트와 같은종목을 다른 주기로 추가도 가능합니다.
Input : Period(20), Period1(10);
var : Sigma(0);
Sigma = data2((C-ma(C,Period))/STD(C,Period));
if crossup(Sigma,-2) Then
buy();
if MarketPosition == 1 and
data1(countif(crossup(sigma,2),BarsSinceEntry) < 1) and
CrossDown(sigma,-2) Then
ExitLong();
if CrossDown(Sigma,2) Then
Sell();
if MarketPosition == 1 and
data1(countif(crossup(sigma,-2),BarsSinceEntry) < 1) and
CrossDown(sigma,2) Then
ExitShort();
즐거운 하루되세요
> 오마쥬 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
>
타주기 시스템식 부탁드립니다...
Input : Period(20), Period1(10);
var : Sigma(0);
Sigma = (C-ma(C,Period))/STD(C,Period);
if crossup(Sigma,-2) Then
buy();
if MarketPosition == 1 and countif(crossup(sigma,2),BarsSinceEntry) < 1 and
CrossDown(sigma,-2) Then
ExitLong();
if CrossDown(Sigma,2) Then
Sell();
if MarketPosition == 1 and countif(crossup(sigma,-2),BarsSinceEntry) < 1 and
CrossDown(sigma,2) Then
ExitShort();