답변완료
수정요청
30분봉에서
아래 수식의 신호발생을 두 경우에만 나올 수 있도록 수정하고 싶습니다.
1.지수이평이 120>240>480이고 1봉전대비 0봉가격이 1%이상 상승하고 종가는 지수120선 위.
or
2.지수이평이 120<240<480이고 1봉전대비 0봉가격이 5%이상 상승.
(다른 경우의 지수이평배열 시에는 신호발생 X)
3.공통: 일봉 0봉종가>240지수이평
================================================================================
Input : shortPeriod(5), longPeriod(20),기간1(50);
var : M1(0),M2(0),a(0),a1(0),eq(0),ZL(0),B(0),B1(0),B2(0),PB(0);
M1 = ma(C, shortPeriod);
M2 = ma(C, longPeriod);
A = LRL(C,기간1);
A1 = LRL(A,기간1);
eq= A-A1;
ZL =A+eq;
PB=SAR(0.02,0.2);
if C>=O && C>=M1 && M1>M1[1] && M1[1]<=M1[2] && C>=M2 && M2>M2[1] && M2[1]<=M2[2] && C>=ZL && ZL>ZL[1] && ZL[1]<=ZL[2] && PB<=C Then
Find(1);
2024-01-18
838
글번호 175849
종목검색
답변완료
부탁드립니다
키움식인데 예스로 전환 할려고 하니, valuewhen 2번째, barsince, highestsince 가 어려워서 염치 불구하고 부탁 드리려고 합니다
aa=stochasticsslow(12,5);
조건=aa(2)>=aa(1)&&aa(1)<aa;
bb=valuewhen(1,조건 && aa(1)<20,aa(1));
cc=valuewhen(2,조건 && aa(1)<20,aa(1));
dd=bb(1)<bb && bb>cc;
ee=barssince(조건 && aa<20)+1;
kk=dd && ee(1)<=15;
ff=valuewhen(1,조건 && aa(1)<20,c(1));
gg=valuewhen(2,조건 && aa(1)<20,c(1));
hh=ff<gg && kk==1;
ii=highestsince(1,조건 && aa(1)<20,aa);
jj=kk && hh && ii(1)>20;
jj(1)==1
2024-01-17
916
글번호 175847
종목검색
답변완료
문의드립니다
1.
Input : Period(14),sig(9);
var : Relative(0),signal(0);
Relative = RSI(Period);
signal = ma(Relative,sig);
if crossup(Relative,signal) Then
buy();
if CrossDown(Relative,signal) Then
sell();
상기식을 데이타2용으로 수정해주셨으면합니다
....................................................................
2.
Input : Period(14),sig(9);
var : Relative(0),signal(0);
Relative = RSI(Period);
signal = ma(Relative,sig);
if crossup(Relative,signal) Then
plot1(H,"검색",RED);
if CrossDown(Relative,signal) Then
plot1(L,"검색",blue);
상기식을 데이타2용으로 수정해 주세요
............................................................................
3.
input : P1(7),P2(14),P3(21);
var : R1(0),R2(0),R3(0),TX(0);
R1 = RSI(P1);
R2 = RSI(P2);
R3 = RSI(P3);
Condition1 = R1 > R2 and R2 > R3;
Condition2 = R1 < R2 and R2 < R3;
if Condition1 == true and Condition1 != Condition1[1] Then
{
Buy();
}
if Condition2 == true and Condition2 != Condition2[1] Then
{
Sell();
}
상기식을 데이타2용으로 수정해 주세요
.......................................................................
4. 종가저가인 음봉 캔들에는 파란색 엑스자를, 종가고가인 양봉 캔들에는 빨간색 엑스자를 검색식으로 표기 부탁드립니다.
엑스자 표기가 힘들다면 그냥 검색식으로 부탁 드립니다
...........................................................................
매번 감사드립니다
2024-01-18
644
글번호 175845
시스템
답변완료
부탁합니다
미리 감사드립니다.
a1= crossup(h,bbandsup(40,2));
a2= crossup(macd(short,long),0);
a3= crossup(macd(short,long),
eavg(macd(short,long),sig));
a4= crossup(stochasticsslow(period1,
period2),
eavg(stochasticsslow(period1,period2),
period3));
a5= crossup(macd(shortperiod,sig),
eavg(macd(shortperiod,sig),short));
a6= Crossup(CCI(20),0);
(a1+a2+a3>=2) and (a4+a5+a6>=2
변수
short 9
long 52
sig 26
period1 20
period2 12
period3 12
shortperiod 12
2024-01-17
804
글번호 175840
종목검색
답변완료
문의드립니다
Input:계산시작일(20230101), // 차트 처음부터 계산하려면 0을 입력
차트반영일(20240101),
연장여부(1), // 연장여부가 0이면 차트반영일까지만 계산한다.
// 연장여부가 1이면 현재일까지 누적 계산한다.
// 추세선을 계속 지우고 다시 그리기를 반복하므로 연장여부를 1로 하려면
// 차트반영일을 현재일에 가깝게 입력한다. 연산시간과 관련있음
매물대개수(10),
수치표시(1),
추세선간격(4);
Var:j(0),jj(0),Continue(True),sBar(0),eBar(0),출력매물대개수(0),sIndex(0),Length(0),
TitleBar(0), // 차트제목을 화면에 출력하기 위한 좌표
TitlePrice(0), // 거래량이 가장 많은 매물대의 중간 가격
TitleName(""); // 차트 제목
Array:VolProfileArr[100,5](0), // 열번호 1:가격이상,2:가격미만,3:sBar,4:수량,5:비율
TL[100,4](0),Text[101](0);
#==========================================#
IF 매물대개수 > 98 Then {
Alert("매물대개수는 98까지만 허용합니다.");
Continue = False;
}
If Continue Then {
#----------------------------------------------------------------------------------#
# 시작하기
#----------------------------------------------------------------------------------#
Value1 = 0;
If (Date[1] < 계산시작일 and Date >= 계산시작일) or // 계산시작일이 있으면 날짜 통과 시점에
(계산시작일 == 0 and Index == 0) Then { // 계산시작일이 0이면 첫번째 봉부터
sIndex = Index; // 계산시작일로부터의 봉개수를 계산하기 위해 Index를 저장
}
If (Date[1] < 차트반영일 and Date >= 차트반영일) or
(Date >= 차트반영일 and 연장여부 > 0) Then {
Length = Index - sIndex + 1;
출력매물대개수 = 매물대개수;
// 매물대 개수를 입력하면 적당한 가격단위로 자른 뒤 출력할 매물대개수를 리턴한다.
Value1 = VolumeProfile(Length,출력매물대개수,VolProfileArr,TitleBar,TitlePrice,TitleName);
// 여기 지표식에서는 계산시작일과 차트반영일을 입력받아서 처리했지만
// 조건에 맞는 MRO 값을 Length 대신에 써도 된다.
}
If Value1 == 1 Then {
For j = 1 To 출력매물대개수[1] { // 싹다 지우고 다시 그린다.
// 출력매물대개수는 구간에 따라 바뀌기 때문에 입력값 기준으로 지운다.
For jj = 1 To 4 {
TL_Delete(TL[j,jj]);
}
If 수치표시 > 0 Then Text_Delete(Text[j]);
}
For j = 1 To 출력매물대개수 { // 리턴받은 매물대 개수만큼 그린다.
If VolProfileArr[j,4] > 0 Then {
sBar = VolProfileArr[j,3];
eBar = 0;
TL[j,1] = TL_New(sDate[sBar],sTime[sBar],VolProfileArr[j,1] + 추세선간격 * PriceScale,sDate[eBar],sTime[eBar],VolProfileArr[j,1] + 추세선간격 * PriceScale);
TL[j,2] = TL_New(sDate[sBar],sTime[sBar],VolProfileArr[j,2] - 추세선간격 * PriceScale,sDate[eBar],sTime[eBar],VolProfileArr[j,2] - 추세선간격 * PriceScale);
TL[j,3] = TL_New(sDate[sBar],sTime[sBar],VolProfileArr[j,1] + 추세선간격 * PriceScale,sDate[sBar],sTime[sBar],VolProfileArr[j,2] - 추세선간격 * PriceScale);
}
TL[j,4] = TL_New(sDate[0],sTime[0],VolProfileArr[j,1] + 추세선간격 * PriceScale,
sDate[0],sTime[0],VolProfileArr[j,2] - 추세선간격 * PriceScale);
If 수치표시 > 0 Then {
Text[j] = Text_New(sDate[0],stime[0],(VolProfileArr[j,1] + VolProfileArr[j,2]) / 2, NumToStr(VolProfileArr[j,4],0) + " (" + NumToStr(VolProfileArr[j,5],2) + "%)(" + NumToStr(VolProfileArr[j,1],0) + " ~ " + NumToStr(VolProfileArr[j,2],0) + ")");
Text_SetStyle(Text[j], 1, 2);
}
}
Text_Delete(Text[0]);
sBar = TitleBar;
Text[0] = Text_New(sDate[sBar], stime[sBar],TitlePrice,TitleName);
Text_SetStyle(Text[0], 2, 1);
}
}
plot1(Value1);
위수식을 바탕으로 아래와 같은 지표수식을 추가 부탁드립니다
MavH :최대 매물대의 상한벽의 가격
MavL: 최대 매물대의 하한벽의 가격
2024-01-17
808
글번호 175836
지표