커뮤니티
시스템 수식 부탁
2019-06-30 23:25:51
133
글번호 129880
<1>아래 시스템식에서 positive가 positivesig를 상향돌파하면 매수
하향돌파하면 매도 수식부탁드립니다.
Input : Period(52);
var : Positive(0),PositiveSig(0);
Positive = PVI();
PositiveSig = ma(PVI(),Period);
Plot1(Positive, "PVI");
Plot2(PositiveSig, "PVISIG");
<2>아래시스템 식에서 결과값이 0을 상향돌파하면 매수, 0을 하향돌파하면 매도
수식부탁드립니다.
Input: shortPeriod(12), longPeriod(26), Period(9),
maPeriod(20), ROCPeriod(10), stoPeriod1(10),
stoPeriod2(6), CCIPeriod(10);
var: value(0);
if ema(C,shortPeriod)-ema(C,longPeriod) >= ema(ema(C,shortPeriod)-ema(C,longPeriod),Period) then
value = 1;
else
value = -1;
if C >= ma(C, maPeriod) then
value = value + 1;
else
value = value - 1;
if (C - C[ROCPeriod]) / C[ROCPeriod] * 100 >= 0 then
value = value + 1;
else
value = value - 1;
if ema((C-lowest(L, stoPeriod1)) / (highest(H, stoPeriod1) - lowest(L, stoPeriod1)) * 100, stoPeriod2)>=50 then
value = value + 1;
else
value = value - 1;
if CCI(CCIPeriod) > 0 then
value = value + 1;
else
value = value - 1;
if ema(accum(((C -L)-(H- C))/ (H-L)*V), 3) - ema(accum(((C -L)-(H- C))/(H-L)*V), 10) >=0 then
value = value + 1;
else
value = value - 1;
if SAR(0.02,0.2) < C then
value = value + 1;
else
value = value - 1;
plot1(value);
plot2(0);
답변 1
예스스탁 예스스탁 답변
2019-07-01 13:11:43
안녕하세요
예스스탁입니다.
1
Input : Period(52);
var : Positive(0),PositiveSig(0);
Positive = PVI();
PositiveSig = ma(PVI(),Period);
if crossup(Positive,PositiveSig) Then
buy();
if CrossDown(Positive,PositiveSig) Then
sell();
2
Input: shortPeriod(12), longPeriod(26), Period(9),
maPeriod(20), ROCPeriod(10), stoPeriod1(10),
stoPeriod2(6), CCIPeriod(10);
var: value(0);
if ema(C,shortPeriod)-ema(C,longPeriod) >= ema(ema(C,shortPeriod)-ema(C,longPeriod),Period) then
value = 1;
else
value = -1;
if C >= ma(C, maPeriod) then
value = value + 1;
else
value = value - 1;
if (C - C[ROCPeriod]) / C[ROCPeriod] * 100 >= 0 then
value = value + 1;
else
value = value - 1;
if ema((C-lowest(L, stoPeriod1)) / (highest(H, stoPeriod1) - lowest(L, stoPeriod1)) * 100, stoPeriod2)>=50 then
value = value + 1;
else
value = value - 1;
if CCI(CCIPeriod) > 0 then
value = value + 1;
else
value = value - 1;
if ema(accum(((C -L)-(H- C))/ (H-L)*V), 3) - ema(accum(((C -L)-(H- C))/(H-L)*V), 10) >=0 then
value = value + 1;
else
value = value - 1;
if SAR(0.02,0.2) < C then
value = value + 1;
else
value = value - 1;
if crossup(value,0) Then
buy();
if CrossDown(value,0) Then
sell();
즐거운 하루되세요
> 이대표 님이 쓴 글입니다.
> 제목 : 시스템 수식 부탁
> <1>아래 시스템식에서 positive가 positivesig를 상향돌파하면 매수
하향돌파하면 매도 수식부탁드립니다.
Input : Period(52);
var : Positive(0),PositiveSig(0);
Positive = PVI();
PositiveSig = ma(PVI(),Period);
Plot1(Positive, "PVI");
Plot2(PositiveSig, "PVISIG");
<2>아래시스템 식에서 결과값이 0을 상향돌파하면 매수, 0을 하향돌파하면 매도
수식부탁드립니다.
Input: shortPeriod(12), longPeriod(26), Period(9),
maPeriod(20), ROCPeriod(10), stoPeriod1(10),
stoPeriod2(6), CCIPeriod(10);
var: value(0);
if ema(C,shortPeriod)-ema(C,longPeriod) >= ema(ema(C,shortPeriod)-ema(C,longPeriod),Period) then
value = 1;
else
value = -1;
if C >= ma(C, maPeriod) then
value = value + 1;
else
value = value - 1;
if (C - C[ROCPeriod]) / C[ROCPeriod] * 100 >= 0 then
value = value + 1;
else
value = value - 1;
if ema((C-lowest(L, stoPeriod1)) / (highest(H, stoPeriod1) - lowest(L, stoPeriod1)) * 100, stoPeriod2)>=50 then
value = value + 1;
else
value = value - 1;
if CCI(CCIPeriod) > 0 then
value = value + 1;
else
value = value - 1;
if ema(accum(((C -L)-(H- C))/ (H-L)*V), 3) - ema(accum(((C -L)-(H- C))/(H-L)*V), 10) >=0 then
value = value + 1;
else
value = value - 1;
if SAR(0.02,0.2) < C then
value = value + 1;
else
value = value - 1;
plot1(value);
plot2(0);
다음글
이전글