예스스탁
예스스탁 답변
2023-02-27 12:04:43
안녕하세요
예스스탁입니다.
1
input : PriceSmoothing(15),Filter(0);
var : cHigh(0),cLow(0),cOpen(0),cClose(0),pClose(0);
var : tr(0),rrange(0),vqi(0),sumVqi(0),color(0);
cHigh = wma(H,PriceSmoothing);
cLow = wma(L,PriceSmoothing);
cOpen = wma(O,PriceSmoothing);
cClose = wma(C,PriceSmoothing);
pClose = cClose[1];
tr = max(cHigh,cClose) - min(cLow,pClose);
rrange = cHigh-cLow;
if rrange<>0 and tr <> 0 then
vqi = ((cClose-pClose)/tR + (cClose-cOpen)/rrange)*0.5;
else
vqi = vqi;
vqi = abs(vqi)*(cClose-pClose+cClose-cOpen)*0.5;
sumVqi = vqi;
if Filter>0 then
{
if abs(sumVqi-sumVqi[1]) < (Filter*PriceScale) then
sumVqi = sumVqi[1];
}
if sumVqi > 0 then
Buy();
else
Sell();
2
input : len(10),offset(1);
var : sma_high(0),sma_low(0),hlv(0),ssld(0),sslu(0);
sma_high = ma(high,len);
sma_low = ma(low,len);
hlv = iff(close > sma_high[1] , 1 , iff(close < sma_low[1] , -1 , hlv[1]));
ssld = iff(hlv == -1 , sma_high[offset] , sma_low[offset]);
sslu = iff(hlv == -1 , sma_low[offset] , sma_high[offset]);
if CrossUp(sslu,ssld) Then
Buy();
if CrossDown(sslu,ssld) Then
Sell();
즐거운 하루되세요
> 새벽에 님이 쓴 글입니다.
> 제목 : 문의드립니다
> 안녕하세요?
아래의 두가지 지표 수식을 시스템식으로 원합니다
감사드립니다
1.(선의 기울기에 따라 신호가 발생되는 시스템식)
input : PriceSmoothing(15),Filter(0);
var : cHigh(0),cLow(0),cOpen(0),cClose(0),pClose(0);
var : tr(0),rrange(0),vqi(0),sumVqi(0),color(0);
cHigh = wma(H,PriceSmoothing);
cLow = wma(L,PriceSmoothing);
cOpen = wma(O,PriceSmoothing);
cClose = wma(C,PriceSmoothing);
pClose = cClose[1];
tr = max(cHigh,cClose) - min(cLow,pClose);
rrange = cHigh-cLow;
if rrange<>0 and tr <> 0 then
vqi = ((cClose-pClose)/tR + (cClose-cOpen)/rrange)*0.5;
else
vqi = vqi;
vqi = abs(vqi)*(cClose-pClose+cClose-cOpen)*0.5;
sumVqi = vqi;
if Filter>0 then
{
if abs(sumVqi-sumVqi[1]) < (Filter*PriceScale) then
sumVqi = sumVqi[1];
}
if sumVqi > 0 then
color = red;
else
color = blue;
plot1(sumVqi,"sumVqi",color);
2.(골든과 데드에 따른 씨스템식)
input : len(10),offset(1);
var : sma_high(0),sma_low(0),hlv(0),ssld(0),sslu(0);
sma_high = ma(high,len);
sma_low = ma(low,len);
hlv = iff(close > sma_high[1] , 1 , iff(close < sma_low[1] , -1 , hlv[1]));
ssld = iff(hlv == -1 , sma_high[offset] , sma_low[offset]);
sslu = iff(hlv == -1 , sma_low[offset] , sma_high[offset]);
plot1(ssld,"Down",red);
plot2(sslu,"Up",green);