답변완료
키움에서 2개 신호가 떳을때 예스로 검색하고싶습니다.
1번수식 NCO
input : Period(10);
var1 = C-C[Period];
if CrossUp(var1,0) Then
Find(1);
2번 수식 Sonar Momentum
input : Period(14);
var1 = SONAR(Period);
if CrossUp(var1,0) Then
Find(1);
사진에서 처럼 연두색(NCO신호), 분홍색(Sonar Momentum)신호가 검색하고 싶습니다.
키움에서 1번과 2번 신호가 떳을때를 예스에서 검색하고 싶어서
키움 수식 2개를 예스 종목검색을 요청해서 파워검색에서 만들어봤는대
다 뜨지가 맞지가 않아서 요청드립니다ㅠㅠ
1번과2번신호가 뜰때 예스검색이 될수 있도록 부탁드립니다.
장중이나 장이 끝난후 모두 검색되게 부탁드립니다,
혹시 장중검색식과 장이끝난후검색식 수식이 다르다면
장중검색과 장후검색 2개로 부탁드립니다.
2023-11-20
1492
글번호 174198
종목검색
답변완료
문의합니다...
수고가 많으십니다...
아래 신호수식은 키움에서 작성한신호 수식입니다.(일봉기준)
예스트레이더 강조로 변환가능한지요..
도움 청합니다...
AA=date/100%100;
대금=(H+O+L+C)/4*V/100000000;
A=IF(C>O,대금,0);
B=SUM(A);
D=ValueWhen(1,AA(1)!=AA,B(1));
양대금=B-D;
A1=IF(C<O,대금,0);
B1=SUM(A1);
D1=ValueWhen(1,AA(1)!=AA,B1(1));
음대금=B1-D1;
CROSSUP(양대금,음대금)
2023-11-19
872
글번호 174194
강조
답변완료
부탁드립니다
안녕하세요.
아래의 TV수식을 YS수식으로 바꿀 수 있을까요?
부탁드립니다.
수식명 : Gaussian Moving Average (GA)
//@version=5
indicator("GA", overlay = true)
// Define a function to calculate the Gaussian weight for a given 'k' and 'smooth_per'
gaussian_weight(k, smooth_per) =>
// Calculate the standard deviation (sigma) based on the smoothing period
sigma = smooth_per / 2.0
// Calculate the exponent part of the Gaussian function
exponent = -0.5 * math.pow(k / sigma, 2)
// Calculate and return the Gaussian weight
math.exp(exponent)
// Define a function that takes an array of values as input
// and returns the Gaussian moving average of the data
gaussianma(values, length) =>
// Create an array to store the Gaussian weights
weights_array = array.new_float(length)
for i = 0 to length - 1
array.set(weights_array, i, gaussian_weight(i, length))
// Create an array to store the values
values_array = array.new_float(length)
for i = 0 to length - 1
array.set(values_array, i, values[length - 1 - i])
// Calculate the weighted sum of the values and weights
sum = 0.0
sumw = 0.0
for i = 0 to length - 1
sum += array.get(values_array, i) * array.get(weights_array, i)
sumw += array.get(weights_array, i)
// Return the moving average
sum / sumw
source = input.source(close, "Source")
length = input.int(20, "Length", 1)
// Plot the Gaussian moving average on the chart
plot(gaussianma(source, length), color = color.orange)
2023-11-19
1278
글번호 174189
지표