답변완료
수식어 부탁드립니다
input : StartTime(160000),EndTime(055000),xtime(055500);
var : 전환선(0),기준선(0),선행스팬1(0),선행스팬2(0);
var : Tcond(false);
if sDate != sDate[1] then
SetStopEndofday(xtime);
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
}
전환선 = (highest(H,9)+lowest(L,9))/2;
기준선 = (highest(H,26)+lowest(L,26))/2;
선행스팬1 = (전환선[25]+기준선[25])/2;
선행스팬2 = (highest(H,52)[25]+lowest(L,52)[25])/2;
var1 = Disparity(60);
if Tcond == true Then
{
if 전환선 > 기준선 and crossup(전환선,선행스팬1) and var1 >= 99 Then
buy("b");
if MarketPosition == 1 then
{
if 전환선 < 기준선 and CrossDown(전환선,선행스팬2) and var1 >= 99 Then
exitlong();
}
if 전환선 < 기준선 and CrossDown(전환선,선행스팬1) and var1 <= 100 Then
sell("s");
if MarketPosition == -1 then
{
if 전환선 > 기준선 and CrossUp(전환선,선행스팬2) and var1 <= 100 Then
ExitShort();
}
}
-----------------------------
수식어 추가입니다
buy
1.진입신호후 이동평균선 276선 crossup시 30분내 진입가격 되돌림시 자동청산
2.진입신호후 이동평균선 276선 crossdown시 자동청산
sell
1.진입신호후 이동평균선 276선 crossdown시 30분내 진입가격 되돌림시 자동청산
2.진입신호후 이동평균선 276선 crossdown시 자동청산
2021-04-01
948
글번호 147587
시스템
답변완료
수식어 부탁드립니다
input : StartTime(100000),EndTime(055000),xtime(055500);
var : 전환선(0),기준선(0),선행스팬1(0),선행스팬2(0);
var : Tcond(false);
if sDate != sDate[1] then
SetStopEndofday(xtime);
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
SetStopEndofday(0);
}
INPUT : LENGTH(60);
VAR : upv(0), dnv(0);
upv = HIGHEST(HIGH, LENGTH);
dnv = LOWEST(LOW, LENGTH);
if MarketPosition <= 0 and L > dnv Then
ExitShort("dsp",AtLimit,dnv);
if MarketPosition >= 0 and H < upv Then
Sell("s",AtLimit,upv);
-------------------------------------------------------
이동평균선 680선 위에서 Sell신호후 10틱이상 손실인경우 buy신호로 변경되는 주문의 수식어 부탁드립니다
이동평균선 680선 아래에서 buy신호후 10틱이상 손실인경우 Sell신호로 변경되는 주문의 수식어 부탁드립니다
2021-04-01
889
글번호 147575
시스템
답변완료
자동시스템 수정
항상 감사드립니다
1. 아래자동시스템 식을 귀사의 보조도구 자동추세선과 유사하게 구현하고 싶습니다
수정부탁드립니다
자동추세선
비교고저점기준 : 5
최근만 적용
자동간격: 단기(10)
2.매수매도 시스템식에서 아래조건을 추가하고 싶습니다
빨간추세선(red) > 파란추세선(blue) 일때 매수매도 신호발생
/**************************************************************************/
input : 비교고저점기준(10);
var : cnt(0),BTL(0),STL(0);
Array : HH[20](0),HD[20](0),HT[20](0);
Array : LL[20](0),LD[20](0),LT[20](0);
if SwingHigh(1,H,비교고저점기준,비교고저점기준,비교고저점기준*2+1) != -1 Then{
HH[0] = H[비교고저점기준];
HD[0] = sdate[비교고저점기준];
HT[0] = sTime[비교고저점기준];
Condition1 = false;
for cnt = 1 to 19{
HH[cnt] = HH[cnt-1][1];
HD[cnt] = HD[cnt-1][1];
HT[cnt] = HT[cnt-1][1];
if Condition1 == false and HH[cnt] > HH[0] and HH[cnt] > 0 Then{
Condition1 = true;
TL_Delete(BTL);
BTL = TL_New(HD[cnt],HT[cnt],HH[cnt],HD[0],HT[0],HH[0]);
TL_SetExtRight(BTL,true);
TL_SetColor(BTL,RED);
}
}
}
if SwingLow(1,L,비교고저점기준,비교고저점기준,비교고저점기준*2+1) != -1 Then{
LL[0] = L[비교고저점기준];
LD[0] = sdate[비교고저점기준];
LT[0] = sTime[비교고저점기준];
Condition2 = false;
for cnt = 1 to 19{
LL[cnt] = LL[cnt-1][1];
LD[cnt] = LD[cnt-1][1];
LT[cnt] = LT[cnt-1][1];
if Condition2 == false and LL[cnt] < LL[0] and LL[cnt] > 0 Then{
Condition2 = true;
TL_Delete(STL);
STL = TL_New(LD[cnt],LT[cnt],LL[cnt],LD[0],LT[0],LL[0]);
TL_SetExtRight(STL,true);
TL_SetColor(STL,blue);
}
}
}
if C > TL_GetValue(BTL,sdate,stime) and C[1] < TL_GetValue(BTL,sdate[1],stime[1]) Then{
buy("b");
}
if C < TL_GetValue(STL,sdate,stime) and C[1] > TL_GetValue(STL,sdate[1],stime[1]) Then{
sell("s");
}
2021-04-01
1024
글번호 147574
시스템
답변완료
문의드립니다
안녕하세요
혹시
0봉전 기준 1봉이내, 1~1회 발생, 240봉 기간동안 신고가 갱신하고
0봉전 기준 20봉이내, 1~회 발생, 240봉 기간동안 신고가 갱신하고
0봉전 기준 30봉이내, 15~30회 발생, 거래량이 200,000주 이상인
종목을 검색할수 있는 식을 만들고 싶은데 가능한가요?
과거일자 기준으로 이 조건들을 만족하는 종목도 검색하고 싶은데 어떻게 해야하나요?
감사합니다ㅜㅜ
2021-03-31
1182
글번호 147571
검색